Hugging Face Transformers Model Development Training Course

5 days Artificial Intelligence Certificate on completion
Course codeSD-AI-007
Duration5 days
LevelIntermediate
CategoryArtificial Intelligence
DeliveryClassroom or live online
LanguageEnglish
CertificateCertificate of completion

Course overview

Pre-trained transformer models can shorten the path from an AI use case to a working capability, but teams often struggle to turn a promising notebook into a reliable, measurable solution. Selecting an unsuitable checkpoint, preparing inconsistent labels, using weak evaluation metrics, or fine-tuning without attention to compute cost can produce models that look convincing in demonstrations but fail under business conditions. This course equips practitioners to develop task-specific NLP and multimodal transformer models with the Hugging Face ecosystem, using disciplined data, training, evaluation and deployment practices.

Participants work directly with Hugging Face Transformers to load pipelines and checkpoints, inspect tokenizers and model configurations, prepare datasets, fine-tune models with the Trainer API, and evaluate results using task-appropriate metrics. The course covers text classification, token classification, question answering and text generation workflows, alongside parameter-efficient fine-tuning with PEFT concepts, experiment configuration, model documentation and inference optimisation. Participants learn how to diagnose overfitting, class imbalance, poor label quality and unsuitable metrics before those issues become expensive production problems.

Instruction combines focused technical demonstrations with guided coding labs in Python. Each participant builds a documented transformer-model development workflow around a realistic business dataset, progressing from data profiling and baseline inference to fine-tuning, evaluation and inference packaging. They leave with a reusable project structure containing preprocessing code, training configuration, metric reports, an evaluation checklist and a model card suitable for internal review. This course is particularly valuable for teams building customer-service classification, document extraction, search, knowledge-assistance, moderation or domain-specific language AI capabilities.

Course objectives

By the end of this course, participants will be able to:

  • Select Hugging Face checkpoints by comparing model architecture, task head, licence, size and inference constraints
  • Prepare versioned training and validation datasets with Hugging Face Datasets, tokenizers and reproducible preprocessing functions
  • Build baseline inference workflows using the Transformers pipeline API and task-specific model classes
  • Fine-tune sequence classification and token classification models with the Trainer API and TrainingArguments
  • Configure tokenisation, padding, truncation and data collators for efficient batched model training
  • Evaluate transformer models using precision, recall, F1, confusion matrices and error-slice analysis
  • Apply parameter-efficient fine-tuning methods to adapt larger models within constrained GPU budgets
  • Produce a model card, inference script and acceptance checklist for a reviewed transformer-model release

Benefits of attending

For you

  • Build credible hands-on experience with the Hugging Face workflows widely used for applied NLP development
  • Gain the ability to challenge unsuitable model choices using evidence on task fit, licence, size and evaluation results
  • Create a reusable fine-tuning project portfolio artefact rather than leaving with isolated notebook examples
  • Improve collaboration with MLOps and platform teams by understanding training artefacts, model cards and inference requirements
  • Position yourself for AI engineering and applied machine learning assignments involving domain-adapted language models

For your organisation

  • Reduce wasted experimentation by giving staff a structured checkpoint-selection, baseline and evaluation process
  • Improve model reliability through consistent dataset splits, task-specific metrics and documented error analysis
  • Control compute expenditure by teaching efficient batching, training configuration and parameter-efficient adaptation methods
  • Strengthen model governance with model cards, reproducible training settings and explicit release acceptance criteria
  • Accelerate delivery of internal NLP use cases such as ticket routing, document tagging, entity extraction and content classification

Target competencies

Transformer model selectionDataset tokenisationFine-tuning workflowsMetric-based evaluationEfficient inferenceModel documentation

Who should attend

  • Machine Learning Engineers — who need to fine-tune, evaluate and package transformer models for business applications
  • Data Scientists — who need a repeatable route from labelled text data to validated NLP model performance
  • AI Engineers — who build retrieval, classification, extraction or generative AI components using open-source models
  • Python Developers — who need to integrate Hugging Face models into internal services and product features
  • Data and Analytics Leads — who must assess the feasibility, cost and evaluation evidence for transformer initiatives
  • MLOps Engineers — who support reproducible training runs, model artefacts and controlled handover to deployment teams

Requirements and prerequisites

Participants should be comfortable writing and running Python code, including functions, dictionaries, lists and package imports. They should understand the purpose of training, validation and test datasets, and have basic familiarity with supervised machine learning concepts such as features, labels, overfitting and evaluation metrics. Experience with PyTorch, Jupyter notebooks or command-line Git is helpful but not essential; required commands and APIs are introduced during the course. Participants do not need prior Hugging Face experience, advanced deep-learning mathematics, transformer architecture implementation experience or prior GPU administration knowledge.

Training methodology

The five days alternate instructor-led technical walkthroughs with guided Python labs using realistic labelled-text scenarios. Participants inspect datasets, run baseline pipelines, fine-tune models through the Hugging Face Trainer API, compare evaluation outputs and investigate failure cases such as ambiguous labels and class imbalance. Short case discussions address model choice, licensing, compute limits and release evidence. Working pairs review each other’s metric reports and model cards. On the final day, participants complete an application plan that maps their own use case to data requirements, model options, evaluation criteria and operational handover steps.

Course outline

Day 1: Hugging Face foundations and model selection

  • Transformer architecture concepts: encoders, decoders and task heads
  • Hugging Face Hub model repositories, revisions and model metadata
  • Pipeline API for rapid baseline inference
  • AutoTokenizer, AutoModel and task-specific AutoModel classes
  • Checkpoint selection by task, parameter count, language coverage and licence
  • Tokenizer vocabulary, subword tokenisation and special tokens
  • Model configuration, maximum sequence length and inference constraints

Workshop: Participants evaluate several Hub checkpoints against a business text-classification scenario and produce a justified model-selection recommendation.

Day 2: Datasets and preprocessing for transformer training

  • DatasetDict structure and split management with Hugging Face Datasets
  • Loading CSV, JSON and Parquet data into Arrow-backed datasets
  • Label schema design for classification and token classification tasks
  • Batched mapping functions for reproducible tokenisation
  • Truncation, padding and attention-mask configuration
  • Dynamic padding with DataCollatorWithPadding
  • Data quality checks for duplicates, leakage, imbalance and annotation inconsistency

Workshop: Participants transform a raw labelled dataset into tokenised train, validation and test splits and deliver a data-quality findings log.

Day 3: Fine-tuning task-specific transformer models

  • Sequence classification fine-tuning with AutoModelForSequenceClassification
  • TrainingArguments for epochs, batch size, learning rate and checkpointing
  • Trainer API training loops and callback behaviour
  • Validation strategy, early stopping and best-model selection
  • GPU memory management through gradient accumulation and mixed precision
  • Parameter-efficient fine-tuning concepts with adapters and LoRA
  • Training run reproducibility using seeds, saved configurations and dataset versions

Workshop: Participants fine-tune a sequence classifier with the Trainer API and produce a saved checkpoint with its training configuration.

Day 4: Evaluation, error analysis and inference design

  • Hugging Face Evaluate metrics and compute functions
  • Precision, recall, F1 and support for imbalanced classification
  • Confusion matrices and class-level performance interpretation
  • Error-slice analysis by text length, source, label and confidence
  • Token classification evaluation with sequence-alignment considerations
  • Batch inference, device placement and pipeline configuration
  • Latency, throughput and model-size trade-offs for operational inference

Workshop: Participants create an evaluation report that identifies high-risk error categories and recommends threshold, data or model changes.

Day 5: Release readiness and workplace application

  • Model cards for intended use, limitations, data and evaluation evidence
  • Inference scripts and serialisable tokenizer-model artefacts
  • Safetensors, model revisions and controlled artefact retrieval
  • Licensing and usage considerations for Hub models and datasets
  • Bias, harmful output and sensitive-data risk assessment
  • Acceptance criteria for model release and monitoring handover
  • Use-case planning from business objective to data, metric and deployment decision

Workshop: Participants assemble and present a release-ready transformer-model package containing an inference script, model card, metric summary and implementation plan.

Tools & standards covered

Hugging Face Transformers, Hugging Face Datasets, Hugging Face Evaluate, Hugging Face Accelerate

A typical training day

08:30 – 10:30First session
10:30 – 10:45Refreshment break
10:45 – 12:30Second session
12:30 – 13:30Lunch and networking
13:30 – 15:00Third session
15:00 – 15:15Refreshment break
15:15 – 16:30Workshop and daily review

Live online deliveries follow the same structure in the East Africa Time zone, with shorter screen blocks and longer breaks.

What the fee includes

  • Instruction by a practitioner facilitator
  • Full course workbook and materials
  • Exercise files, templates and case studies
  • Certificate of completion
  • Refreshments and lunch (classroom deliveries)
  • Post-course application plan
  • Facilitator follow-up on request
  • Group rates from five participants

How you can take this course

Classroom

Scheduled sessions in Nairobi, Mombasa, Kigali, Dar es Salaam, Dubai and Cape Town.

Live online

The same facilitator and materials, delivered live for distributed teams and individuals.

In-house

Delivered privately for your team, at your offices or a venue of your choice, tailored to your context. Request a proposal.

Certification

Participants who complete the full five days receive the Skillset Development Certificate of Completion, stating the course title, course code, dates and delivery format — suitable for professional-development records and employer reimbursement.

Frequently asked questions

You should be able to read, adapt and run Python scripts or notebooks, and understand training versus validation data. The course explains Hugging Face APIs and practical transformer concepts, but it is not designed as a first introduction to programming or supervised machine learning.

A modern laptop capable of running Python notebooks is sufficient for the guided exercises; cloud or hosted compute arrangements can be used for heavier training tasks where available. A Hugging Face account is useful for accessing Hub resources, but participants do not need to arrive with a published model or prior account history.

It is best suited to technical professionals who need to adapt and evaluate pre-trained models for a defined NLP or text-processing use case. It is less suitable for learners seeking only prompt engineering, no-code AI tooling or deep theoretical research into transformer architecture.

This course concentrates on model development: selecting checkpoints, preparing labelled data, fine-tuning, measuring performance and packaging artefacts for release. Prompt engineering courses focus primarily on interacting with hosted foundation models rather than training and validating task-specific Hugging Face models.

You can use the workflow to build baselines and fine-tuned models for tasks such as ticket classification, sentiment analysis, document tagging, entity extraction and domain-specific question answering. The model-selection rationale, metric report and model card provide evidence for technical review and business approval.

You will leave with a structured Hugging Face project containing tokenisation and preprocessing code, training settings, a saved model artefact, evaluation results and an inference script. You will also complete a model card and an application plan that can be adapted to an internal use case.

Upcoming sessions

  • 21 – 25 Sep 2026
    Nairobi · USD 3,000
    Book
  • 28 Sep – 02 Oct 2026
    Cape Town · USD 4,200
    Book
  • 28 Sep – 02 Oct 2026
    Kigali · USD 3,500
    Book
  • 05 – 09 Oct 2026
    Nairobi · USD 3,000
    Book
  • 05 – 09 Oct 2026
    Dubai · USD 4,500
    Book
  • 05 – 09 Oct 2026
    Mombasa · USD 3,200
    Book
  • 12 – 16 Oct 2026
    Live Online · USD 1,500
    Book
  • 19 – 23 Oct 2026
    Live Online · USD 1,500
    Book

49 more dates — ask us.


Group of 5+?

Request in-house delivery or group rates →

Related courses in Artificial Intelligence

5 Days Certificate

Databricks Mosaic AI Model Serving and Governance Training Course

Teams moving generative AI and predictive models from notebooks into production need more than a working endpoint. They must control which m…

5 Days Certificate

Design Thinking for Responsible AI Product Development Training Course

AI product teams are often asked to add generative AI, predictive models or automated decisioning to existing services before they have defi…

5 Days Certificate

TensorFlow Deep Learning Model Building Training Course

Many organisations have data science teams that can explore data in notebooks but struggle to turn experiments into reliable deep learning m…

5 Days Certificate

Advanced Computer Vision Model Deployment Training Course

Computer vision models that perform well in notebooks can fail under production conditions: camera feeds vary, object sizes shift, latency e…