Transformers
Pretrained models for text, vision, audio and multimodal tasks, with one consistent API.
- Stars
- 169k
- Forks
- 35.2k
- Licence
- Apache-2.0
- Language
- Python
- Version
- 5.22.2
- Updated
At a glance
- A single API for loading, running and fine-tuning models
- Direct access to the Hugging Face Hub model catalogue
- Pipelines for common tasks in a few lines of code
Get started
pip install transformersWhat it is
Transformers is the reference implementation for a large share of today’s open models. Load a model from the Hugging Face Hub by name and run it for inference or fine-tune it on your own data.
Why it stands out
Model architectures share one interface, so code written for one model usually works for the next. The pipeline helper turns tasks such as summarisation or speech recognition into a single call.
Who it is for
Researchers and engineers who work directly with model weights rather than through a hosted API.
