huggingface/smol-course

A course on aligning smol models.

What is it?

smol-course is a hands-on course for aligning language models — teaching them to behave the way you want (follow instructions, answer in a certain style, etc.). It focuses on small models (SmolLM3 and SmolVLM2) so everything runs on a typical laptop or workstation with minimal GPU needs. No paid cloud services are required.

Who is it for?

  • People with a basic understanding of machine learning and natural language processing.
  • Familiarity with Python, PyTorch, and the transformers library.
  • Anyone who wants to train or customize a language model without huge compute costs.

What will you learn?

The course is split into practical modules:

  1. Instruction Tuning – supervised fine-tuning and chat templates.
  2. Evaluation – testing models with benchmarks and custom domains.
  3. Preference Alignment – using algorithms like DPO to match human preferences.
  4. Vision Language Models – working with multimodal models (text + images).
  5. Reinforcement Learning (October 2025) – optimizing models with RL.
  6. Synthetic Data (November 2025) – generating datasets for your own domain.
  7. Award Ceremony (December 2025) – showcase projects, celebrate.

Why small models?

The README lists these benefits:

  • Efficiency – far fewer computational resources for training and serving.
  • Customization – easier to fine-tune for your exact domain.
  • Control – you better understand and steer behavior.
  • Cost – lower training and inference costs.
  • Privacy – can run locally; no data leaves your machine.
  • Green – smaller carbon footprint.
  • Research-friendly – easier to get started with cutting-edge LLM research.

How to participate

  • The course is open source and peer‑reviewed. You can contribute by opening a pull request.
  • Steps: follow the Hugging Face Hub org, read the material, do exercises, add your own examples, and submit a model to the leaderboard. Climbing the leaderboard is part of the fun.
  • Version 2 of the course is live now; the original version (v1) is still available in the v1 folder.
  • The course will soon be re‑released on Hugging Face Learn (future plan).

Getting started

Check the README for prerequisites and the course outline. No payment or special hardware is mentioned — just a basic ML background and a working Python/PyTorch environment. The project provides everything you need to work through the modules and submit your models for review.

Related

  • Project
  • Project
  • Project
  • Project