# Transformers

> Hugging Face's Python library of model definitions for text, vision, audio and multimodal models

Source: https://talira.ai/catalog/transformers-fxs828eh
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library, Command-line tool
- Categories: [ai / ml / model libraries](https://talira.ai/categories/ai/ml/model-libraries), [ai / ml / fine tuning](https://talira.ai/categories/ai/ml/fine-tuning)
- Licence: Apache-2.0[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Backed by: [Hugging Face](https://talira.ai/orgs/hugging-face.md)

Transformers is Hugging Face's Python library that defines state-of-the-art machine learning models for text, vision, audio, video and multimodal tasks, for both inference and training, on [PyTorch](https://talira.ai/catalog/pytorch-95ycaf9h.md). It loads any of over a million compatible checkpoints from the [Hugging Face Hub](https://talira.ai/catalog/hugging-face-hub-6rnena92.md) by name, and its Pipeline API runs a task (text generation, chat, speech recognition, image classification and more) in a few lines, downloading and caching the model. Its Trainer handles training and fine-tuning, and transformers serve and transformers chat run a model from the command line. Because the model definitions are shared, training tools such as [Unsloth](https://talira.ai/catalog/unsloth-sdmq90qx.md), Axolotl and DeepSpeed and inference engines such as vLLM, SGLang and llama.cpp build on them.

## Links

- GitHub: https://github.com/huggingface/transformers
- Docs: https://huggingface.co/docs/transformers/index

## Problems it solves

- run an open source language model locally in Python
- fine-tune a pretrained model on my own text data
- transcribe audio with an open model in a Python script
- use the newest open-weights model the day it's released
- classify images with a pretrained vision model

## Features

- model definitions for text, vision, audio, video and multimodal models
- loads 1M+ checkpoints from the Hugging Face Hub
- Pipeline API for inference
- Trainer for training and fine-tuning
- transformers serve and transformers chat commands
- works with training frameworks and inference engines that reuse its model definitions

## Trust

Overall: 0.79 out of 1.
Signals: maintenance 1.00, adoption 1.00, momentum 0.98, community 1.00, backing 0.30, extensibility 0.00.

- last commit today
- 1218 commits in the last 90 days
- latest release v5.24.0 2 days ago
- 169.3k GitHub stars
- 4281 contributors
- backed by Hugging Face

## Related

- Works with [PyTorch](https://talira.ai/catalog/pytorch-95ycaf9h.md)
- Works with [Hugging Face Hub](https://talira.ai/catalog/hugging-face-hub-6rnena92.md)

## Alternatives

- [Diffusers](https://talira.ai/catalog/diffusers-38vc4bvt.md): State-of-the-art diffusion models for image, video, and audio generation in PyTorch

## Sources

[^1]: https://github.com/huggingface/transformers/blob/main/LICENSE (checked 23 Nov 2026)
