Learn Hugging Face Transformers
Pretrained transformer models for text, vision and audio, plus training and generation
Transformers is Hugging Face's library of pretrained model architectures (BERT, Llama, Qwen, Whisper, ViT and hundreds more) with a uniform API to download, run, fine-tune and share them. It covers quick inference with pipelines, tokenization, the Trainer training loop, text generation for LLMs, and integrations for LoRA fine-tuning and quantization. It is the default entry point to open-weight models on the Hugging Face Hub.
Before you start
How deep do you want to go?
1. EssentialsRead and write simple code, do the everyday basics
2. PracticalUse it productively at work, with the usual idioms
3. AdvancedThe less common features, performance and trade-offs
4. ExpertInternals and the edge cases experts know