transformers
by
huggingface

Description: 🤗 Transformers: the model-definition framework for state-of-the-art machine learning models in text, vision, audio, and multimodal models, for both inference...

View on GitHub ↗

Summary Information

Updated 23 minutes ago
Added to GitGenius on April 28th, 2023
Created on October 29th, 2018
Open Issues & Pull Requests: 2,475 (+0)
Number of forks: 33,857
Total Stargazers: 162,453 (+4)
Total Subscribers: 1,222 (+0)

Issue Activity (beta)

Issue API unavailable.

Repository Insights (GitGenius)

Median issue/PR response: 1288.1 days
Mean response time: 1264.7 days
90th percentile: 1843.6 days
Tracked items: 250

Most active contributors

Detailed Description

The Transformers library is a Python-based model-definition framework maintained by Hugging Face that provides unified access to state-of-the-art machine learning models across text, vision, audio, video, and multimodal domains. Licensed under Apache 2.0, it serves as a central pivot point for the machine learning ecosystem, ensuring that model definitions are standardized and compatible across multiple training frameworks like Axolotl, Unsloth, DeepSpeed, and PyTorch-Lightning, as well as inference engines including vLLM, SGLang, and TGI. The library hosts over one million pretrained model checkpoints on the Hugging Face Hub that users can immediately leverage for both inference and training tasks.

The repository operates as a highly active open-source project with substantial community engagement. GitGenius tracking shows 162,235 stargazers as of the most recent check, with the most active issue labels being bug reports (2,522 tracked items), feature requests (745 items), and new model additions (210 items). The median issue and pull request response latency is 0.0 hours, though the mean latency of 2,189.1 hours across 5,576 tracked items reflects the volume of activity. The core contributor base includes Rocketknight1 with 2,368 tracked events, ArthurZucker with 2,078 events, and zucchini-nlp with 1,946 events, indicating sustained development momentum.

The library emphasizes accessibility through its Pipeline API, a high-level inference class that abstracts away preprocessing complexity for text, audio, vision, and multimodal tasks. Users can instantiate pipelines with just a few lines of code, with models automatically downloaded and cached for reuse. The framework supports multiple modalities including automatic speech recognition, image classification, and visual question answering. Installation requires Python 3.10 or higher and PyTorch 2.4 or later, with the library designed to work seamlessly across PyTorch, JAX, and TensorFlow 2.0 frameworks.

The design philosophy prioritizes ease of use for researchers, engineers, and developers through minimal abstractions, exposing model internals consistently while keeping the API unified across all pretrained models. The library explicitly targets scenarios where practitioners want to leverage existing pretrained models rather than building neural network components from scratch, and it is optimized specifically for PyTorch training workflows. The repository maintains internationalized documentation with README files in multiple languages including Simplified Chinese, Traditional Chinese, Korean, Spanish, Japanese, Hindi, Russian, Portuguese, Telugu, French, German, Italian, Vietnamese, Arabic, Urdu, Bengali, Persian, and Turkish, reflecting its global user base.

transformers
by
huggingfacehuggingface/transformers

Repository Details

Fetching additional details & charts...