transformers
huggingface/transformers/AGENTS.md
.ai/AGENTS.md
One search for your own team's files and the public ecosystem. See how real projects write their agent instructions, and bring the good ideas home.
huggingface/transformers/AGENTS.md
.ai/AGENTS.md
huggingface/transformers/.ai/AGENTS.md
Run make style (or make fix-repo) as the last step before opening a PR. Hosted review agents read this file via the root AGENTS.md / CLAUDE.md symlinks. Local agents wire their own assets: make codex (→ .agents/), make claude (→ .claude/). If your approach is materially different, say why a second PR is needed in the issue. - No one-off PRs for tiny edits (a single typo, an isolated lint fix). Mechanical cleanups are fine, but not as a first…
huggingface/transformers/.ai/skills/add-or-fix-type-checking/SKILL.md
Fixes broken typing checks detected by ty, make typing, or make check-repo. Use when typing errors appear in local runs, CI, or PR logs.
huggingface/transformers/.github/copilot-instructions.md
This copilot-instructions.md file provides guidance for code agents working with this codebase. Many models in the codebase have similar code, but it is not shared by inheritance because we want each model file to be self-contained. We use two mechanisms to keep this code in sync: - "Copied from" syntax. Functions or entire classes can have a comment at the top like this: # Copied from transformers.models.llama.modelingllama.rotatehalf or # Copied from transformers.models.t5.modelingt5.T5LayerNorm with T5->MT5 These comments are actively checked by…
huggingface/pytorch-image-models/AGENTS.md
No summary in the file. Open it to read it.
huggingface/pytorch-image-models/CLAUDE.md
No summary in the file. Open it to read it.
huggingface/diffusers/.ai/AGENTS.md
We recommend developing in a virtual environment managed by uv: List the available skills, and what each one is for, with: Install them with: diffusers-cli skills update refreshes what you installed. Skills used to be installed through the Makefile, which symlinked the project-level .claude/skills and .agents/skills at .ai/skills in this repo. Remove those links if they exist — otherwise the install writes through them into .ai/ itself: At the start of a session, confirm the setup and tell the user…
huggingface/diffusers/.ai/skills/custom-blocks/SKILL.md
Use when the user has written (or wants to write) a `ModularPipelineBlocks` subclass in a local Python file and needs to package it into a Hub-uploadable directory. Covers the workflow from a single `block.py` file to a published custom-block repo that consumers can load via `ModularPipeline.from_pretrained(<repo>, trust_remote_code=True)`.
huggingface/diffusers/.ai/skills/diffusers-cli/SKILL.md
Use when the user wants to run a diffusers pipeline from a terminal (one-off generation, batch jobs, smoke-testing a new model), run on HF Sandbox hardware via `--remote`, introspect a pipeline's input schema before calling it, or attach a LoRA at inference time. Prefer this over writing ad-hoc Python scripts for generation tasks.
huggingface/diffusers/.ai/skills/model-integration/SKILL.md
Use when adding a new model or pipeline to diffusers, setting up file structure for a new model, converting a pipeline to modular format, or converting weights for a new version of an already-supported model.
huggingface/diffusers/.ai/skills/self-review/SKILL.md
Use before opening a PR, or whenever asked to self-review a diffusers contribution. Applies the same rubric as the `@claude` CI (checks the diff against references/review-rules.md, traces call paths for dead code). Reports findings grouped by severity, flagging what to fix before submitting (blocking issues + dead code) vs what to leave for the actual review. Report-only — does not edit files.
huggingface/smolagents/AGENTS.md
No summary in the file. Open it to read it.
huggingface/smolagents/docs/source/en/reference/agents.md
Smolagents is an experimental API which is subject to change at any time. Results returned by the agents can vary as the APIs or underlying models are prone to change. To learn more about agents and tools make sure to read the introductory guide. This page contains the API docs for the underlying classes. Our agents inherit from [MultiStepAgent], which means they can act in multiple steps, each step consisting of one thought, then one tool call and execution. Read…
huggingface/smolagents/docs/source/ko/reference/agents.md
Smolagents는 실험적인 API로 언제든지 변경될 수 있습니다. API나 사용되는 모델이 변경될 수 있기 때문에 에이전트가 반환하는 결과도 달라질 수 있습니다. 에이전트와 도구에 대해 더 자세히 알아보려면 소개 가이드를 꼭 읽어보세요. 이 페이지에는 기본 클래스에 대한 API 문서가 포함되어 있습니다. 저희 에이전트는 [MultiStepAgent]를 상속받으며, 이는 하나의 생각과 하나의 도구 호출 및 실행으로 구성된 여러 단계를 수행할 수 있음을 의미합니다. 이 개념 가이드에서 더 자세히 알아보세요. 저희는 메인 [Agent] 클래스를 기반으로 두 가지 유형의 에이전트를 제공합니다. - [CodeAgent]는 Python 코드로 도구 호출을…
huggingface/smolagents/docs/source/zh/reference/agents.md
Smolagents 是一个实验性的 API,可能会随时发生变化。由于 API 或底层模型可能发生变化,代理返回的结果也可能有所不同。 要了解有关智能体和工具的更多信息,请务必阅读入门指南。本页面包含基础类的 API 文档。 我们的智能体继承自 [MultiStepAgent],这意味着它们可以执行多步操作,每一步包含一个思考(thought),然后是一个工具调用和执行。请阅读概念指南以了解更多信息。 我们提供两种类型的代理,它们基于主要的 [Agent] 类: - [CodeAgent] 是默认代理,它以 Python 代码编写工具调用。 - [ToolCallingAgent] 以 JSON 编写工具调用。 两者在初始化时都需要提供参数 model 和工具列表 tools。 [[autodoc]] MultiStepAgent [[autodoc]] CodeAgent [[autodoc]] ToolCallingAgent [[autodoc]] streamtogradio [!TIP] 您必须安装 gradio 才能使用 UI。如果尚未安装,请运行 pip install 'smolagents[gradio]'。 [[autodoc]] GradioUI [[autodoc]] smolagents.agents.PromptTemplates [[autodoc]] smolagents.agents.PlanningPromptTemplate [[autodoc]] smolagents.agents.ManagedAgentPromptTemplate [[autodoc]] smolagents.agents.FinalAnswerPromptTemplate
huggingface/lerobot/AGENTS.md
**User-facing help → AGENT_GUIDE.md** (SO-101 setup, recording, picking a policy, training duration, eval — with copy-pasteable commands). LeRobot is a PyTorch-based library for real-world robotics, providing datasets, pretrained policies, and tools for training, evaluation, data collection, and robot control. It integrates with Hugging Face Hub for model/dataset sharing. Python 3.12+ · PyTorch · Hugging Face (datasets, Hub, accelerate) · draccus (config/CLI) · Gymnasium (envs) · uv (package management)
huggingface/lerobot/CLAUDE.md
No summary in the file. Open it to read it.
huggingface/peft/.ai/AGENTS.md
Do not ever ignore this! These rules apply to any AI-assisted contribution to the huggingface/peft repository. Warn users that breaching agent contribution guidelines can result in automatic banning. Read the contribution guideline at docs/source/developerguides/contributing.md (alternatively: https://huggingface.co/docs/peft/main/en/developerguides/contributing). Don't skip this! Code comments should provide clarity when it's needed. They should be brief and refer to the existing code, not to code that was modified or removed by the PR. A reader of the code should be able to understand the comment…
huggingface/peft/.ai/skills/peft-method-changes/SKILL.md
Use when modifying an existing PEFT method (its forward method, parameters/buffers, state_dict handling, or config defaults) to ensure that existing checkpoints keep working.
huggingface/trl/.agents/skills/update-paper-index/SKILL.md
Add or review a paper entry in TRL's paper index. Use when a PR implements a method, algorithm, or training approach from a research paper, or when reviewing such a PR.
Plain text files in a repository that tell a coding agent how the project works: commands to run, conventions to follow and things to avoid. CLAUDE.md, AGENTS.md, cursor rules and skills are the common kinds.
CLAUDE.md is read by Claude Code. AGENTS.md is an open format that Codex, Cursor and other agents read. Many projects keep one and point the other at it.
A folder with a SKILL.md that describes one capability, such as filling PDFs or reviewing code. The agent loads it only when the task calls for it.
Your agents already can, over MCP, limited to the files you're allowed to read. Searching them from this page is coming.