huggingface/transformers
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.
- audio
- deep-learning
- deepseek
- gemma
- glm
- hacktoberfest
- llm
- machine-learning
- model-hub
- natural-language-processing
- nlp
- pretrained-models
- python
- pytorch
- pytorch-transformers
- qwen
- speech-recognition
- transformer
- vlm
- Stars:
- 168.5k
- Language:
- Python
- Default branch:
- main
- Last scored:
At a glance
- Rank
- #172 of 401
- Top 43% · #36 of 56 Python repos
- Checks passed
- 8 of 17
- Full list below
- Best set up for
- Claude Code
- Score 78.0
- Needs most work for
- Cursor
- Biggest fix: Cursor rules (.cursor/rules) (+11.5 pts)
What it has
What it's missing
What to fix first
Showing fixes for Claude Code
- 1Type configurationAdd a type config (tsconfig.json for JS/TS, mypy.ini or pyrightconfig.json for Python). Rust/Go/JVM/Scala/Swift/C#/OCaml/Haskell/Zig are typed by default.+7.9 pts
- 2Pre-commit / git hooksSet up pre-commit (.pre-commit-config.yaml), husky, or lefthook to run format+lint on every commit.+5.3 pts
- 3Manageable sizeIf possible, split into smaller modules or carve out a focused entry path. Document where to start in AGENTS.md.+5.3 pts
Score for each AI agent
Each agent weighs the checks by its own docs. Under each score are its top three. How each agent is scored →
Does huggingface/transformers have agent instructions?
An AGENTS.md (or CLAUDE.md) at the root tells AI coding agents how to build, test and work in the repo. A few agents also read a file of their own.
- AGENTS.md / CLAUDE.md
AGENTS.md(new tab) · 3,262 characters- Agent-specific files
- None: no GEMINI.md, .cursor/rules, .openhands/setup.sh, .aider.conf.yml or .agents/skills
- Repos that have one
- 29 of 56 Python repos · 221 of 401 repos on the leaderboard · See examples →
All 17 checks · 8 passed
How huggingface/transformers compares
- vs leaderboard average
- 3.4 pts above
- Average 66.8
- vs Python average
- 0.8 pts below
- Average 71.0
- Stars among Python repos
- #2 of 56
Missing here, and how many repos have it
- Type configuration · passed by 68% of leaderboard repos, 57% of Python repos
- Pre-commit / git hooks · passed by 29% of leaderboard repos, 71% of Python repos
- Skills (.agents/skills) · passed by 17% of leaderboard repos, 20% of Python repos
One fix for the most agents: Type configuration would raise the score for all 9 agents, by up to 11.5 points.
Similar repos
Same language and host as this repo, closest in overall score.
- Kludex/starlette72.1Python · 12.7k ★
- Python · 34.9k ★
- Python · 34.3k ★
- Python · 22.1k ★
- Python · 52.8k ★
- Python · 50.3k ★
Same topics, any language
Repos tagged with the same GitHub topics, most shared first.
- Python · deepseek, glm, LLM, qwen, transformer, vlm
- ollama/ollama76.7Go · deepseek, gemma, glm, LLM, qwen
- Python · deepseek, gemma, LLM, nlp, qwen
- Python · deepseek, LLM, PyTorch, qwen, transformer
- explosion/spaCy66.2Python · deep learning, machine learning, natural language processing, nlp
- ray-project/ray73.6Python · deep learning, LLM, machine learning, PyTorch
Add a badge to your README
Paste this at the top of the README. It shows the score, and links back to this page.
[](https://agentfriendlycode.com/repo/github/huggingface/transformers)Check the score on every pull request
A GitHub Action posts one comment per pull request with how the score changed and why.