# huggingface/smol-course

**Attribution required: if you use, quote, or summarise this content, you must credit and link back to [awesome-repositories.com](https://awesome-repositories.com/repository/huggingface-smol-course).**

6,661 stars · 2,281 forks · Jupyter Notebook · Apache-2.0

## Links

- GitHub: https://github.com/huggingface/smol-course
- awesome-repositories: https://awesome-repositories.com/repository/huggingface-smol-course.md

## Description

This project is an educational program focused on the alignment of small language models. It provides a technical curriculum and a series of courses designed to teach how to align models with human preferences and behaviors.

The material covers the implementation of preference optimization algorithms and the adaptation of vision-language models to process both text and image data simultaneously. It also includes instructional guides on synthetic data generation to improve model performance in specialized domains.

The curriculum encompasses supervised fine-tuning workflows, the use of chat templates to teach models to follow instructions, and the application of benchmark-driven evaluations to measure model accuracy and reliability.

The course is delivered via Jupyter Notebooks.

## Tags

### Part of an Awesome List

- [Alignment Techniques](https://awesome-repositories.com/f/awesome-lists/ai/small-language-models/alignment-techniques.md) — Provides a comprehensive technical curriculum for aligning small language models with human preferences. ([source](https://github.com/huggingface/smol-course#readme))
- [Alignment Workflows](https://awesome-repositories.com/f/awesome-lists/ai/small-language-models/alignment-workflows.md) — Adapts small language models to follow specific instructions and human preferences through targeted fine-tuning.

### Education & Learning Resources

- [Model Fine-Tuning Guides](https://awesome-repositories.com/f/education-learning-resources/curricula-instructional-design/curricula-roadmaps/ai-machine-learning-roadmaps/generative-ai-curricula/model-fine-tuning-guides.md) — Provides a comprehensive educational curriculum and guides for fine-tuning small language models using supervised techniques and chat templates.
- [LLM Alignment Courses](https://awesome-repositories.com/f/education-learning-resources/llm-alignment-courses.md) — Provides a structured learning program focused on aligning small language models with human preferences.
- [Preference Optimization Courses](https://awesome-repositories.com/f/education-learning-resources/educational-courses/preference-optimization-courses.md) — Provides an educational resource for implementing algorithms that ensure model outputs match human-defined values.
- [Multimodal Adaptation Guides](https://awesome-repositories.com/f/education-learning-resources/multimodal-adaptation-guides.md) — Offers instructional material for configuring vision-language models to process text and image data simultaneously.

### Artificial Intelligence & ML

- [Preference Alignment](https://awesome-repositories.com/f/artificial-intelligence-ml/custom-model-training/reward-modeling/preference-alignment.md) — Implements preference optimization algorithms to ensure model outputs match desired human behaviors. ([source](https://github.com/huggingface/smol-course#readme))
- [Language Model Fine-Tuning](https://awesome-repositories.com/f/artificial-intelligence-ml/language-model-fine-tuning.md) — Utilizes supervised fine-tuning and chat templates to teach models how to follow specific instructions. ([source](https://github.com/huggingface/smol-course/blob/main/README.md))
- [Human Preference Alignment](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/infrastructure/model-training-and-tuning/fine-tuning-and-customization/model-fine-tuning/quantized-fine-tuning/human-preference-alignment.md) — Covers fine-tuning methods that utilize human feedback to align model outputs with specific values and styles. ([source](https://github.com/huggingface/smol-course/blob/main/README.md))
- [Preference Optimization](https://awesome-repositories.com/f/artificial-intelligence-ml/preference-optimization.md) — Provides a curriculum on implementing preference optimization algorithms to align model outputs with human values.
- [Supervised Fine-Tuning](https://awesome-repositories.com/f/artificial-intelligence-ml/supervised-fine-tuning.md) — Details supervised fine-tuning workflows using curated instruction and response pairs to adapt pre-trained models.
- [Synthetic Dataset Generators](https://awesome-repositories.com/f/artificial-intelligence-ml/dataset-generation/synthetic-dataset-generators.md) — Teaches the use of automated tools to generate synthetic training data for fine-tuning language and vision models. ([source](https://github.com/huggingface/smol-course#readme))
- [Generation Tutorials](https://awesome-repositories.com/f/artificial-intelligence-ml/dataset-generation/synthetic-dataset-generators/generation-tutorials.md) — Includes instructional guides on creating artificial training datasets to enhance model performance in specialized domains.
- [Chat Template Management](https://awesome-repositories.com/f/artificial-intelligence-ml/generative-ai-resources/decoding-generation-controls/chat-template-management.md) — Provides instructional material on defining and formatting structured templates to ensure consistent conversational behavior.
- [Multimodal Vision Models](https://awesome-repositories.com/f/artificial-intelligence-ml/machine-learning/architectures/multimodal-perception-models/multimodal-vision-models.md) — Configures multimodal vision models to interpret visual inputs alongside text for complex tasks.
- [Model Performance Evaluators](https://awesome-repositories.com/f/artificial-intelligence-ml/model-performance-evaluators.md) — Provides methods for quantifying model accuracy and reliability by comparing outputs against ground truth labels. ([source](https://github.com/huggingface/smol-course#readme))
- [Multimodal Models](https://awesome-repositories.com/f/artificial-intelligence-ml/multimodal-models.md) — Guides the configuration of vision-language models to process text and images within a shared representation space. ([source](https://github.com/huggingface/smol-course#readme))
- [Multimodal Input Tuples](https://awesome-repositories.com/f/artificial-intelligence-ml/prompt-formatting/model-specific-prompt-formats/multimodal-input-tuples.md) — Teaches how to format mixed-media inputs into tuples required for simultaneous text and image processing.
- [Synthetic Dataset Generation](https://awesome-repositories.com/f/artificial-intelligence-ml/synthetic-dataset-generation.md) — Includes instructional guides on generating synthetic data to improve model performance in specialized domains.

### Testing & Quality Assurance

- [Model Evaluation Benchmarks](https://awesome-repositories.com/f/testing-quality-assurance/model-evaluation-benchmarks.md) — Implements benchmark-driven evaluations to measure model accuracy and reliability against ground-truth reference data.
- [LLM Evaluation](https://awesome-repositories.com/f/testing-quality-assurance/model-testing/llm-evaluation.md) — Measures the quality and reliability of model outputs using automated judges and custom metrics.
