The model-definition library behind most open machine learning work: thousands of pretrained text, vision, audio and multimodal models with a shared API for running, fine-tuning and training them in PyTorch and other frameworks.
PythonCreated
What is huggingface/transformers?
Transformers is the model-definition library behind a large share of practical machine learning. It provides thousands of pretrained models for text, vision, audio, video and multimodal tasks, each defined once in PyTorch, and it offers a common interface for running, fine-tuning and training them. Models are published on the Hugging Face Hub, so they can be loaded in a few lines of code.
Because the model definitions are shared, other training frameworks and inference engines can build on the same code rather than reimplementing each architecture. The README translates the documentation into many languages and points to the community resources around the library.
It suits machine-learning engineers and researchers who want to use or adapt pretrained models, and developers building applications that need state-of-the-art inference without training from scratch.
The easiest way to download and run open-weight language models such as Qwen, Gemma, DeepSeek and gpt-oss on your own machine, with a simple command line and a local API that other apps can call.
An open inference engine for large language models on AWS Trainium chips from RunAnywhere, using custom NKI megakernels to serve an OpenAI-compatible API with up to a million tokens of context from one instance.
A massive, community-maintained list of legally free programming books, courses, interactive tutorials and podcasts, organized by programming language and by spoken language. A first stop when you want to learn a topic without paying.
A large educational collection of algorithms and data structures implemented in readable Python, from sorting and graph search to cryptography and machine learning. Meant for learning how they work rather than for production use.