Transformers
One API to load and train pretrained models
What it is
Transformers is an open-source library maintained by Hugging Face, released in 2018, that loads, runs and trains pretrained models through a single interface. It began with Transformer architectures such as BERT and GPT and now spans text, vision, speech and multimodal models. It solves the problem of converging models of differing origins and implementations onto one API, reducing the cost of rewriting code when switching models.
It turned "swap the model" from rewriting training and serving code into changing a model identifier — a key layer behind the broad reuse of open models.
Key specs
- Frameworks
- PyTorch, TensorFlow, JAX
- Coverage
- Text, vision, speech and multimodal
Related concepts
NLP & Large Language Models
Transformer ArchitectureIntermediate
Replacing word-by-word relay with a room where everyone speaks at once, so long-range dependencies are one hop away
NLP & Large Language Models
Pretraining & Fine-tuningIntermediate
Learn language first from vast unlabelled text, then specialise with little data — the most data-efficient paradigm in modern AI