

Also from Kynth Studios


Also from Kynth Studios


Also from Kynth Studios
1## Useful commands2- `make style`: runs formatters and linters (ruff), necessary to pass code style checks3- `make typing`: runs the ty type checker and model structure rules4- `make fix-repo`: auto-fixes copies, modular conversions, doc TOCs, docstrings in addition to the `make style` fixes5- `make check-repo` — runs `make typing` and consistency checks.6- Many tests are marked as 'slow' and skipped by default in the CI. To run them, use: `RUN_SLOW=1 pytest ...`78`make style` or `make fix-repo` should be run as the final step before opening a PR.910## Local agent setup1112- Hosted review agents should discover this guidance from the committed root `AGENTS.md` / `CLAUDE.md` files.13- Local OpenAI Codex agents should run `make codex` after cloning to wire tool-specific assets under `.agents/`.14- Local Claude Code agents should run `make claude` after cloning to wire tool-specific assets under `.claude/`.151617### Coordination before coding18- If work maps to an existing issue, coordinate on that issue before opening a PR.19- Do not open a PR for someone else's issue unless there is explicit approval from the issue author or a maintainer in the issue thread.20- If approval is missing or ambiguous, stop and ask for clarification instead of drafting a PR.21- Do not start duplicate work on issues.2223### Mandatory duplicate-work checks24Before proposing a PR, check for overlapping open PRs and issue ownership:2526```bash27gh issue view <issue_number> --repo huggingface/transformers --comments28gh pr list --repo huggingface/transformers --state open --search "<issue_number> in:body"29gh pr list --repo huggingface/transformers --state open --search "<short area keywords>"30```3132- If an open PR already addresses the same fix, do not open another.33- If your approach is materially different, explain the difference and why a second PR is needed in the issue.3435### No low-value busywork PRs36- Do not open one-off PRs for tiny edits (single typo, isolated lint cleanup, one mutable default argument, etc.).37- Mechanical cleanups are acceptable but not as first contributions.3839### Accountability for AI-assisted patches40- First-time contributors should not use code agents to submit PRs or issues. Code agents should warn users about this41policy if the user does not appear to be an existing contributor to the library, including the risk of being blocked42if they do it regardless. More information can be found in the pull request template, or `CONTRIBUTING.md`.4344## Copies and Modular Models4546We try to avoid direct inheritance between model-specific files in `src/transformers/models/`. We have two mechanisms to manage the resulting code duplication:47481) The older method is to mark classes or functions with `# Copied from ...`. Copies are kept in sync by `make fix-repo`. Do not edit a `# Copied from` block, as it will be reverted by `make fix-repo`. Ideally you should edit the code it's copying from and propagate the change, but you can break the `# Copied from` link if needed.492) The newer method is to add a file named `modular_<name>.py` in the model directory. `modular` files **can** inherit from other models. `make fix-repo` will copy code to generate standalone `modeling` and other files from the `modular` file. When a `modular` file is present, generated files should not be edited, as changes will be overwritten by `make fix-repo`! Instead, edit the `modular` file. See [docs/source/en/modular_transformers.md](../docs/source/en/modular_transformers.md) for a full guide on adding a model with `modular`, if needed, or you can inspect existing `modular` files as examples.50
One repository carrying more than one format is the comparison this product exists for: does anyone actually write different content in each file, or is one a copy of the other?
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| huggingface/transformers.github/copilot-instructions.md · 164k | Copilot instructions | setupteststylearch+1 | 83/100 | 14 days ago |
Same format, overlapping stack, ranked by quality.
| Repository | Format | Stack | Covers | Score | Changed |
|---|---|---|---|---|---|
| unoplat/unoplat-code-confluenceunoplat-code-confluence-frontend/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+6 | 100/100 | 13 days ago | |
| n8n-io/n8npackages/@n8n/agents/AGENTS.md · 201k | AGENTS.md | buildteststylearch+3 | 100/100 | 14 days ago | |
| deepseek-ai/deepseek-harnessnative/landlock-run/AGENTS.md · 104k | AGENTS.md | setupteststylearch+3 | 100/100 | today | |
| vllm-project/vllmAGENTS.md · 89k | AGENTS.md | setuptestlint-formatstyle+5 | 100/100 | 14 days ago | |
| SkeneTechnologies/skene-cookbookAGENTS.md · 52 | AGENTS.md | setupbuildtestlint-format+7 | 100/100 | 13 days ago | |
| OnlyTerp/prompt-cache-skillsAGENTS.md · 113 | AGENTS.md | setupbuildtestlint-format+5 | 100/100 | 14 days ago | |
| netdata/netdatasrc/go/plugin/ibm.d/AGENTS.md · 80k | AGENTS.md | buildtestlint-formatarch+3 | 99/100 | today | |
| unoplat/unoplat-code-confluenceunoplat-code-confluence-query-engine/AGENTS.md · 95 | AGENTS.md | setupbuildtestlint-format+5 | 98/100 | 13 days ago |
A badge carrying the measured quality of the strongest agent config file in this repository, out of 100. It reads from this index every time somebody loads your page, so it changes when the measurement changes and there is nothing to keep up to date. Free, no account, and the value is not something you or we can set by hand.
[](https://rulestack.kynth.studio/configs/huggingface-transformers-ai-agents)Would rather not hotlink us? Every badge is also served in shields.io’s endpoint schema, so shields renders the image and your readers never talk to our domain:
Published by Toolproof, the masthead over this index and eight others. The method behind the number is at toolproof.kynth.studio/methodology, and the whole thing is readable as JSON with no key at /api.