transformers
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.
Install
transformers on PyPI
pip
pip install transformersuv
uv add transformerspoetry
poetry add transformersPackage facts
| License | Apache 2.0 License (permissive) |
| Python support | supports the current Python release (>=3.10.0) |
| Install friction | low — pure-Python wheel |
| Runtime dependencies | 9 — huggingface-hub, numpy, packaging, pyyaml, regex, tokenizers, typer, safetensors, tqdm |
| Maintenance | actively maintained — 3 days since the last release |
| Last repo commit | |
| First released | |
| Popularity | one of the top 1,000 most-downloaded packages on PyPI (30-day window, as of 2026-08-13) |
| Known vulnerabilities | none known (OSV.dev, checked 2026-08-13) |
Evidence: transformers-5.15.0-py3-none-any.whl
Keywords: machine-learning, nlp, python, pytorch, transformer, llm, vlm, deep-learning, inference, training, model-hub, pretrained-models, llama, gemma, qwen
About transformers
from the package's own PyPI description — quoted content, verbatim
<!--- Copyright 2020 The HuggingFace Team. All rights reserved.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. -->
<p align="center"> <picture> <source media="(prefers-color-scheme: dark)" srcset="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/transformers-logo-dark.svg"> <source media="(prefers-color-scheme: light)" srcset="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/transformers-logo-light.svg"> <img alt="Hugging Face Transformers Library" src="https://huggingface.co/datasets/huggingface/documentation-images/raw/main/transformers-logo-light.svg" width="352" height="59" style="max-width: 100%;"> </picture> <br/> <br/> </p>
<p...
Read as markdown · JSON record · Source repository · Homepage
Similar packages
permissive · top 100 on PyPI
swebenchpermissive · top 1,000 on PyPI
browser-usepermissive · top 1,000 on PyPI
datasetspermissive · top 1,000 on PyPI
acceleratepermissive · top 1,000 on PyPI
sglangpermissive · top 1,000 on PyPI
torchvisionpermissive · top 1,000 on PyPI
sentence-transformerspermissive · top 1,000 on PyPI
hf-xetpermissive · top 1,000 on PyPI
spacypermissive · top 1,000 on PyPI