Resources
Transformers and Hub APIs move quickly—prefer the official docs. This page lists primary documentation, related courses on this site, and an optional path for coding agents.
Official
Skills let Cursor, Claude Code, and similar tools follow SKILL.md for Hub / training jobs. That is not the main path of this tutorial.
Docs you will reopen
Related courses on this site
A useful order: PyTorch for foundations → Transformers to load and fine-tune Hub models → Ollama for everyday chat.
Tutorial index
- Hugging Face tutorial
- Introduction
- Installation
- Quick Start
- Pipeline
- Tokenizers and Models
- Text Generation
- Datasets
- Fine-tuning
- The Hub
- Practical Examples
Suggested exercises
- Classify 10 reviews you wrote; note the score distribution
- Compare DistilGPT2 greedy vs
temperature=0.9continuations - Run
Trainer.train()on a 500-rowrotten_tomatoesslice - (GPU) Attach LoRA to Qwen 0.5B and
print_trainable_parameters() push_to_huba local folder and add one paragraph to the model card
Contribute
This tutorial lives in Kenhuang Academy. When APIs change, open an issue or PR and update both docs/zh/huggingface/ and docs/en/huggingface/.
For loading, follow the official tips: prefer device_map="auto" and dtype="auto".