Hugging Face Transformers
Library of pretrained transformer models for NLP, vision, and speech.
The transformers library provides a unified API to thousands of
pretrained models — BERT, GPT-style, LLaMA, Whisper, Stable
Diffusion, ViT, and many more — backed by the Hugging Face Hub. It
handles tokenisation, model loading, fine-tuning, and inference, and
interoperates with PyTorch, TensorFlow, and JAX.
Combined with the Hub's model and dataset registries, it is the de-facto distribution channel for open-weight models on Linux.
Install
pip install transformers
Authors
- Hugging Face Inc.
