← Software

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.

License: Apache-2.0

Category: AI / ML

Website: https://huggingface.co/docs/transformers

Install

pip install transformers

Authors

  • Hugging Face Inc.
Previoushtop NextHugo
Textbook of Linux — Learn Linux on iPhone — Download on the App Store