huggingface/transformers

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

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 18 minutes ago
Added to GitGenius on April 28th, 2023
Created on October 29th, 2018
Open Issues & Pull Requests: 2,396 (+0)
Number of forks: 34,344
Total Stargazers: 164,402 (+0)
Total Subscribers: 1,226 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 12.9 hours
Mean response time: 87.2 days
90th percentile: 220.0 days
Tracked items: 5,717

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 93% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "bug" is answered fastest, typically in about 8 hours, while "Good Second Issue" waits about 2 days. 41% of tracked open issues have had no activity in three months. Only 6% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 638
New in 7 days: 43
Closed in 7 days: 63
Avg open age: 482 days
Stale 30+ days: 526
Stale 90+ days: 491

Recent activity

Opened in 7 days: 37
Closed in 7 days: 51
Comments in 7 days: 83
Events in 7 days: 266

Top labels

  • bug (2,645)
  • Feature request (831)
  • wontfix (437)
  • New model (304)
  • Vision (177)
  • WIP (169)
  • trainer (130)
  • Audio (117)

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.

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.