Check my levelCoursesProgramsFor teamsPricing
UKSign inSign up
Check my levelCoursesProgramsFor teamsPricingClaude quizPromptsBlogFAQSearchSign upUK
AcademlCoursesHugging Face Transformers Course
Get started free

Online course, Engineering, Open weights

Hugging Face Transformers Course: From Pipeline to LoRA and Spaces

9 lessons, about 6 hours of Python practice: each one has working code, a task and a quiz.

Start: 7 days freePreview the first lesson, no sign-in

No card needed. The first two lessons are free after sign-up, all lessons come with Pro at $9 a month.

LoRA tuning: a large weight matrix plus two thin onesLesson 1, 35 minPipeline API: Run Models in Three Lines
  • Intermediatelevel
  • 6 h 15 min9 lessons, 3 modules
  • At your own paceupdated Dec 2, 2026
  • Certificatewith a check code
What you will learnLessonsCertificateQuestionsStart the course

What you will learn

  • Run ready-made models with pipeline: sentiment, NER, summarization, zero-shot, text generation
  • Tell BPE, WordPiece and SentencePiece apart and why the tokenizer must come from the same model as the weights
  • Find and download models from the Hugging Face Hub with HfApi and snapshot_download, and read the model card and license
  • Prepare a dataset with load_dataset and map, and save memory with DataCollatorWithPadding
  • Fine-tune a distilbert classifier with the Trainer API and choose TrainingArguments for your GPU
  • Fine-tune 7B models with PEFT and LoRA, including 4-bit QLoRA, then save the adapter and merge it into the model
  • Call models without your own server through InferenceClient and handle rate limits (429)
  • Publish a demo with Gradio on Hugging Face Spaces and run your own inference server

What the Hugging Face course covers

The course teaches you to work with open models through the Hugging Face libraries: run them with pipeline, understand BPE, WordPiece and SentencePiece tokenizers, find models on the Hub, fine-tune a classifier with Trainer and large models with LoRA, and publish a demo with Gradio on Spaces. 9 lessons, about 6 hours; the first two lessons are free.

Pricing and what's free →
02
Free lesson

Tokenization: BPE, WordPiece, SentencePiece

BPE, WordPiece and SentencePiece: which models use which algorithm, and what attention_mask and the special tokens [CLS], [SEP], [PAD], [MASK] do. The task: tokenize one sentence with the BERT, GPT-2 and T5 tokenizers, compare token counts and check how they handle Unicode text.

Open the lesson →

Lessons

Transformers and tokenization → fine-tuning → inference and deployment. The first two lessons, pipeline and tokenization, are free.

Module 1 · 3 lessons · 1 h 50 min

Transformers and Tokenization

Master the pipeline API, understand tokenization, and navigate the Hugging Face Hub.

1Pipeline API: Run Models in Three Linesfree35 minHugging Face pipeline() lets you run NLP tasks without knowing the model's architecture.2Tokenization: BPE, WordPiece, SentencePiecefree40 minA tokenizer splits text into subwords and converts them to numbers the model understands.3Hugging Face Hub: Finding and Downloading Models35 minThe Hub is the main repository for open-source models, datasets, and Spaces.
Module 2 · 3 lessons · 2 h 15 min

Fine-Tuning

Prepare datasets, train with the Trainer API, and efficiently fine-tune with PEFT/LoRA.

4Dataset Preparation: load_dataset and Tokenization40 minThe datasets library lets you quickly load, process, and tokenize data for training.5Trainer API: Fine-Tuning a Classifier45 minThe Trainer class handles the training loop, logging, evaluation, and checkpoint saving.6PEFT and LoRA: Fine-Tuning Without Full Training50 minPEFT trains only a tiny fraction of parameters (adapters), keeping the base model frozen.

Who it is for

  • Python developers who want to run open models themselves instead of depending on a closed API
  • ML engineers who need to fine-tune a model for their task on limited GPU memory
  • People who want a short, practical path through the Hugging Face ecosystem with a task after every lesson
  • Engineers choosing where to run a model: locally, through Inference Providers or on their own server

How the lessons work

  1. A 30–45 minute lessonAn explanation and working Python code with transformers, datasets, peft, huggingface_hub and gradio.
  2. A hands-on task in every lessonFor example: fine-tune distilbert past 85% accuracy, or apply LoRA to a 1–3B model and compare its trainable parameters with full fine-tuning. Submit it and the AI reviews it (after sign-up).
  3. Ready-made prompt and common mistakesMost lessons include a prompt that helps you pick parameters (LoraConfig, TrainingArguments, server launch) and the mistakes that most often break the code.
  4. 2-question quiz and AI tutorThe quiz checks the key points; the lesson's AI tutor answers questions on the topic.
  5. CertificateAfter all lessons you get a certificate with a unique verification code.

Certificate of completion

You get it when you finish every lesson. Each certificate has its own code, so an employer can check it on our site. You can add it to LinkedIn.

See how a certificate is checked
Sample

Sources behind the course

Academl built this course from the Hugging Face documentation; it is not affiliated with Hugging Face, whose free LLM Course is published at huggingface.co/learn.

The ecosystem moves fast: agents moved out of transformers into the smolagents library, the serverless Inference API is now Inference Providers, and TGI is in maintenance mode, with Hugging Face recommending vLLM, SGLang, llama.cpp or MLX for new servers. Check library versions against the docs.

  • Hugging Face — summary of the tokenizers (BPE, WordPiece, SentencePiece)
  • Hugging Face — Trainer API
  • Hugging Face — PEFT and LoRA
  • Hugging Face — Inference Providers
  • Text Generation Inference — status and recommendations
  • smolagents — Hugging Face agents
  • The official free Hugging Face LLM Course

What's free and what it costs

  • The first two lessons, the Pipeline API and tokenization, are free after a free sign-up.
  • After sign-up you get 7 days of full access to all 9 lessons and the whole catalog, no card needed.
  • After that, Pro costs $9 a month or $79 a year. Online card payment is not connected yet: write to info@academl.com and we open access manually.
  • The Hugging Face libraries are open source and free. Inference Providers is pay-as-you-go (PRO accounts get monthly credits), and the GPU for fine-tuning is your own or rented.

Hugging Face course: questions

Is this the official Hugging Face course?+

Academl built it from the official documentation of the Hugging Face libraries — transformers, datasets, peft, huggingface_hub and Gradio — and it is not affiliated with the company. Hugging Face runs its own free LLM Course at huggingface.co/learn, which goes deeper into theory. This course is shorter and built around practice: every lesson has a task with AI review and a quiz.

What is the difference between BPE, WordPiece and SentencePiece?+

BPE (GPT-2, RoBERTa) repeatedly merges the most frequent pair of characters or bytes. WordPiece (BERT) picks the merge that most increases the likelihood of the corpus. SentencePiece (T5, Llama 2) works on raw text, treats the space as an ordinary character and uses BPE or Unigram inside, which is why the slow LlamaTokenizer and T5Tokenizer need the sentencepiece package. Always load the tokenizer that belongs to the model's weights.

What experience and hardware do I need?+

Solid Python and a basic grasp of machine learning. Pipeline, tokenization and the Hub run on an ordinary computer. Trainer and LoRA need a GPU, whether your own, rented or a cloud notebook; the LoRA task uses a 1–3B model so a modest GPU is enough.

How is LoRA different from full fine-tuning?+

LoRA freezes the model weights and trains small adapter matrices in selected layers such as q_proj and v_proj. Less than one percent of the parameters are trained, and the adapter for a 7B model weighs tens of megabytes. You can keep it separate or merge it into the model with merge_and_unload. QLoRA also loads the base model in 4 bits to save even more GPU memory.

Is the course up to date in 2026?+

The core — pipeline, tokenizers, datasets, Trainer and PEFT — works the same way. Three things changed: Hugging Face agents now live in the smolagents library, serverless inference is called Inference Providers, and TGI is in maintenance mode, with Hugging Face recommending vLLM or SGLang for new servers. Check library versions against the docs before you run the code.

The course in short

level
Intermediate
For whom
For developers
Task
Security and own models
Tool
Open weights
Format
Lessons, quizzes and tasks checked by AI
Lesson language
English

Is this course right for you?

Check your level in 3 minutes. We will show which course to start with.

Check my level

More courses on this topic

Full catalog
Intermediate

Local LLM: Ollama, LM Studio, private stack

Local LLM course: install Ollama and run a first model, how much memory you need, where local beats the cloud, a fully local RAG.

1 h 10 min, 4 lessonsCertificate
Intermediate, Open weights

DeepSeek, Qwen, Mistral, and Open-Source Models

Course on open-weight models DeepSeek, Qwen, Mistral and Llama: where they beat flagships on cost, running them via Ollama or an API, and when LoRA pays off.

1 h 10 min, 4 lessonsCertificate
Intermediate

AI Safety & Ethics

10 lessons, about 4 hours: prompt injection, deepfakes, your data in ChatGPT, GDPR and the EU AI Act, hallucinations, AI policy. Prompt injection lesson free.

3 h 50 min, 10 lessonsCertificate
Intermediate, Claude

Design with Claude: from idea to design system

7 lessons: how to give Claude design tasks, build a DESIGN.md with tokens and components, generate screens in Stitch and code from Figma over MCP.

3 h 12 min, 7 lessonsCertificate

Keep going

DeepSeek, Qwen, Mistral and other open-source models →Local LLMs with Ollama: hardware and private RAG →The local LLM stack track →LLM engineer: from local setup to production →RAG and vector databases →OpenAI fine-tuning: compare it with LoRA on open models →LLM courses: all stages →

Start with tokenization

The first two lessons are open after a free sign-up. Sign up with email or Google to get 7 days of full access to the whole course and catalog.

Sign up
CoursesLLM coursesFor teamsPricingFAQBlogAboutPrivacy
© 2026 AcademlDevelopment & promotion —MMIX — Marketing Mix
Module 3 · 3 lessons · 2 h 10 min

Advanced Capabilities

Serverless inference, deploying with Gradio on Spaces, and TGI with tool-using agents.

7Hugging Face Inference API: Serverless Inference40 minCall Hub models without your own GPU, over HTTP or with InferenceClient. The service is now called Inference Providers.8Gradio + Spaces: Deploy an ML Demo in 10 Minutes40 minGradio turns a Python function into a web UI, and HF Spaces publishes it for free.9TGI + Agents: Inference Server and Tool-Using Agents50 minText Generation Inference is an LLM server with streaming and tool calls. TGI is now in maintenance mode: for new servers Hugging Face recommends vLLM or SGLang.
Certificate
Your name
for the course
Hugging Face LLM Course: Practical Transformers
ACADEML · VERIFIED · ACADEML · VERIFIED · SAMPLE
How long is the course and is there a certificate?+

9 lessons, about 6 hours in total. There is no schedule and progress is saved. After all lessons you get a certificate with a unique verification code.

How much does the course cost?+

The first two lessons are always free. Signing up gives 7 days of full access with no card. Pro opens every lesson in the catalog for $9 a month or $79 a year.