33rd of 433 in ML frameworks and libraries
transformers
Model-definition library for pretrained text, vision, audio and multimodal models
Run it:Vast.ai ↗ (opens in a new tab)Clore.ai ↗ (opens in a new tab)Affiliate links, no effect on a rank.
Watch puts transformers on your watch list: its new releases and known problems since your last visit. Kept in this browser, no account.transformers is on your watch list. Its new releases and problems show there.
- Stars
- 169.4k
- License
- Apache-2.0
- Last commit
- Nov 2026
- Last release
- Nov 2026
- Language
- Python
156,729 on 24 Mar 2026169,373 on 24 Nov 2026
From GitHub's daily star counts.
Checked on GitHub.
- Transformers V5 is out! (opens in a new tab) (10 points, Jan 2026)
- HuggingFace releases support for tool-use and RAG models (opens in a new tab) (59 points, Jul 2024)
- Transformers 2.0: Deep interoperability between TensorFlow 2.0 and PyTorch (opens in a new tab) (103 points, Sep 2019)
Overview
Transformers defines model architectures for text, vision, audio, video and multimodal models, and loads checkpoints from the Hugging Face Hub (README cites 1M+). It offers a high-level Pipeline API for inference, a training API built for PyTorch, and a `transformers chat` and `transformers serve` CLI. Other training frameworks and inference engines reuse its model definitions.
Who it is for: Python ML engineers and researchers running or fine-tuning open models
Strengths
- Pipeline API covers text, audio, vision and multimodal tasks in a few lines
- Model definitions are reused by vLLM, SGLang, TGI, Axolotl, Unsloth and DeepSpeed
- Loads from 1M+ Hub checkpoints across hundreds of architectures
- Apache-2.0, with frequent releases and recent commits
Weaknesses
- Not a modular toolbox for neural nets; model files avoid shared abstractions on purpose
- Training API targets its own PyTorch models; generic loops need Accelerate
- Requires Python 3.11+ and PyTorch 2.6+
- Pipeline inference is not a production server; serving needs `transformers serve` or another engine
What it needs
- GPU optional
- Docker
- Needs Python 3.11+, PyTorch 2.6+, Hugging Face Hub
- Models: PyTorch, Hugging Face Hub checkpoints
What changed
- v5.24.0 ↗ (opens in a new tab)Breaking
- v5.23.0 ↗ (opens in a new tab)Breaking
“🚨 Remove the ep_router expert-parallel style (#49615) by @IlyasMoutawwakil”
From the release notes. No flag means the note does not say so, not that the upgrade is safe. Releases and problems by RSS
Head to head
Also in ML frameworks and libraries
See all 433| Rank | Project | Score |
|---|---|---|
| 1 | ultralyticsPython library and CLI for training and running YOLO vision models | 95 out of 100 |
| 2 | pytorch-image-modelsPyTorch library of image models, pretrained weights and training scripts | 95 out of 100 |
| #4 | supervisionPython toolkit for annotating detections, tracking and managing vision datasets | 94 out of 100 |
| #5 | pytorchPython tensor library with GPU support and tape-based autograd | 93 out of 100 |
| #6 | korniaDifferentiable computer vision and geometry operators for PyTorch | 92 out of 100 |