Skip to content
AI Atlas

Transformers

One API to load and train pretrained models

Hugging Face Tool Open source

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.

Why it matters

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

Comparable products