Hugging Face Transformers
Model-definition library for pretrained text, vision, audio and multimodal models, with pipelines, training utilities and Hub integration.
Transformers provides reference implementations of thousands of model architectures and loads their weights directly from the Hugging Face Hub. High-level pipelines handle common tasks in a few lines, while the Trainer and model classes support fine-tuning. Many inference engines, including vLLM and llama.cpp converters, treat its model definitions as the source of truth. Recent major versions are PyTorch-first.
- Type
- Library
- Category
- AI & ML
- Maintainer
- Hugging Face
- First released
- 2018
- License
- Open source (Apache-2.0)
- Pricing
- Open source — The library is Apache-2.0; each model you load carries its own licence — check the model card.
- Level
- Intermediate
- Technologies
- python, pytorch, nlp, llm, deep-learning
- GitHub stars
- 169,664
- Weekly downloads
- 29,078,915 (pypi)
- Latest release
- [object Object]
- Last verified
- 26 Nov 2026
What Hugging Face Transformers is used for
- Loading and fine-tuning open models
- Text classification, NER, summarisation
- Speech and vision tasks
- Prototyping before moving to a serving engine
Strengths
- Largest catalogue of architectures
- Consistent APIs across modalities
- Tight Hub integration
Limitations
- Not optimised for high-throughput serving on its own
- Large dependency footprint
- Model licences vary
Hugging Face Transformers alternatives
How it relates to other tools
- Hugging Face Transformers built on PyTorch
- Hugging Face Transformers works with Hugging Face Hub
- Hugging Face Transformers works with Hugging Face Datasets
- Hugging Face Transformers works with PEFT
- Hugging Face Transformers works with Accelerate
- Hugging Face Transformers works with vLLM
- Works with Hugging Face Transformers: Gemma (Google)
- Works with Hugging Face Transformers: Haystack
- Works with Hugging Face Transformers: Hugging Face Learn
- Works with Hugging Face Transformers: Label Studio
- Built on Hugging Face Transformers: Sentence Transformers
- Works with Hugging Face Transformers: Unsloth
- Works with Hugging Face Transformers: Weights & Biases
- Works with Hugging Face Transformers: Whisper (OpenAI)
Built with the same technologies
Learn Hugging Face Transformers
Official links
- Official website
- Documentation
- Source code (huggingface/transformers)
- pypi: transformers
- npm: @huggingface/transformers