
Open-source Python library for running and training pretrained text, vision, audio and multimodal models.
Transformers is Hugging Face's open-source Python library for using pretrained machine learning models. A developer loads a model from the Hub in a few lines and runs it for tasks such as text generation, image segmentation, speech recognition or document question answering, or fine-tunes it on their own data.
The docs describe it as the model-definition framework for text, vision, audio, video and multimodal models. Every model is implemented from three main classes (configuration, model and preprocessor). Pipeline is a simple, optimized inference class for many tasks; Trainer handles training and distributed training for PyTorch with mixed precision, torch.compile and FlashAttention; generate provides fast text generation for LLMs and vision language models with streaming and multiple decoding strategies.
Because it centralizes the model definition, a model supported in Transformers is compatible with most training frameworks (Axolotl, Unsloth, DeepSpeed, FSDP, PyTorch Lightning), inference engines (vLLM, SGLang, TGI) and modeling libraries such as llama.cpp and mlx. That makes it the common reference implementation across the open-model ecosystem, for developers, ML engineers and researchers. The docs note over 1M Transformers checkpoints on the Hub.
Install with pip, then start from the quickstart or Hugging Face's LLM course; the source is on GitHub.
Key features
Transformers is a AI Research project. Open-source Python library for running and training pretrained text, vision, audio and multimodal models.
Transformers is built by Hugging Face. The product is at the mainnet stage.
Transformers is categorized under huggingface, transformers and python on Dapping.
Transformers has no builder reviews on Dapping yet, so it carries no rating. Reviews are written by individual builders, and moderated or removed reviews are excluded from the rating.
Transformers is not currently marked verified on Dapping. Any token or contract details shown for Transformers are inspection context only. Verification is an identity signal, not an audit, an endorsement, or investment advice. Check official links, contract addresses, permissions and audits independently before interacting.