Skip to content

Practical Transformers with Hugging Face

Track 14 · Intermediate

Use transformers in practice with the Hugging Face ecosystem.

12 lessons 1.9 hours narrated Free, no account needed

Start lesson 1

The 3 phases, lesson by lesson

Phase 1 Transformers library

  1. What transformers do, and why they took over AI What a transformer is end to end (tokens in, tokens out, attention in the middle), why it beat older sequential models, the three shapes, and Hugging Face.
  2. Run a model in a few lines, pipelines Run a task with one pipeline() call, then open the box: the three steps it hides (tokenizer, model, postprocessing) rebuilt with the Auto classes.
  3. Fine-tune a pretrained model on your own data Fine-tune a pretrained model on your own labeled data with the Trainer, then measure real quality on held-out data using a compute_metrics function.
  4. Share your work on the Hub Push a model and tokenizer to the Hugging Face Hub with push_to_hub, write a model card others can use, and see why sharing powers the whole ecosystem.

Phase 2 Data, tokenizers, tasks

  1. Wrangling data with the Datasets library Load datasets from the Hub or your own files, then clean and transform them at scale with map, filter, and the batched flag that makes it fast.
  2. Tokenizers up close How a fast tokenizer turns text into tokens through a four-stage pipeline, why fast tokenizers are fast, the three subword algorithms, and training your own.
  3. The main NLP tasks, end to end The six common NLP tasks share one loop; learn to name the task and pick the right model head, data shape, and metric, plus the two recurring wrinkles.
  4. Debug your training and get unstuck How to read a Python traceback, debug a training pipeline systematically, build a minimal reproducible example, and ask for help that gets answered.

Phase 3 Demos and frontier

  1. Build and share a demo Wrap any model in a browser interface with a few lines of Gradio, share it with a public link, and publish it on Hugging Face Spaces, no frontend code.
  2. Fine-tuning LLMs: SFT and instruction tuning How supervised fine-tuning turns a base model into an instruction-following assistant: chat-formatted data, the SFTTrainer, and how LoRA keeps it affordable.
  3. Curating high-quality datasets Why data quality, not model size, often decides LLM results, and how to curate and evaluate a training dataset with Argilla, the human-in-the-loop tool.
  4. Reasoning models and the road ahead What reasoning models add over plain LLMs, how reinforcement learning trains a model to think before answering, and where the open Hugging Face ecosystem fits.

Start lesson 1

← Browse all tracks