i ideas / repo launcher
huggingface avatar

huggingface/transformers

โ˜… 168,815PythonApache-2.098

๐Ÿค— Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training.

What it is

Transformers acts as the model-definition framework for state-of-the-art machine learning with text, computer vision, audio, video, and multimodal models, for both inference and training. It centralizes the model definition so that this definition is agreed upon across the ecosystem. transformers is the pivot across frameworks: if a model definition is supported, it will be compatible with the majority of training frameworks (Axolotl, Unsloth, DeepSpeed, FSDP, PyTorch-Lightning, ...), inference engines (vLLM, SGLang, TGI, ...), and adjacent modeling libraries (llama.cpp, mlx, ...) which leverage the model definition from transformers.

When to use it

Reach for transformers when you need to call, serve, run locally, fine-tune or chat with a language model โ€” it's written in Python and fits stacks tagged audio, deep-learning, deepseek, gemma.

Category
LLM & Inference
Also in
Generative Media
Stars
168,815
Forks
35,195
Last push
today
Created
2018-10-29
Open issues
1,077
Website
huggingface.co/transformers

Quick start

$ git clone https://github.com/huggingface/transformers.git

Hand it to your AI

Read https://ideas.asveas.com/r/huggingface/transformers.md and help me add huggingface/transformers to my project. Explain the setup steps for my stack and show the minimal code to get it working.

Alternatives to transformers

All LLM & Inference โ†’

Pairs well with

FAQ

What is transformers?

huggingface/transformers is a LLM tool on GitHub: ๐Ÿค— Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference and training. Transformers acts as the model-definition framework for state-of-the-art machine learning with text, computer vision, audio, video, and multimodal models, for both inference and training.

When should I use transformers?

Reach for transformers when you need to call, serve, run locally, fine-tune or chat with a language model โ€” it's written in Python and fits stacks tagged audio, deep-learning, deepseek, gemma.

What are the best alternatives to transformers?

Popular alternatives in LLM & Inference: ollama/ollama (187kโ˜…), open-webui/open-webui (158kโ˜…), langflow-ai/langflow (157kโ˜…), vllm-project/vllm (96.8kโ˜…), lobehub/lobehub (85kโ˜…).

Is transformers actively maintained?

huggingface/transformers looks very actively maintained: the last push was today (2026-11-11), with 168,815 stars and 1,077 open issues.

What license does transformers use?

huggingface/transformers is published under the Apache-2.0 license. Check the repository's LICENSE file before commercial use.