# AGENTS.md

🤗 Diffusers: State-of-the-art diffusion models for image, video, and audio generation in PyTorch.

## Setup

```
# TODO: the install command. No lockfile was found, so this could not be inferred.
```

## Commands

```
make check_dirs
make modified_only_fixup
make deps_table_update
make autogenerate_code
make repo-consistency
make quality
```

## Layout

- `src/`        1031 source files
- `tests/`      621 source files
- `examples/`   304 source files
- `scripts/`    95 source files
- `utils/`      30 source files
- `benchmarks/` 8 source files

## Conventions

- Tests live alongside the code they cover, following `.github/workflows/pr_dependency_test.yml`.
- CI defines what passing means. See `.github/workflows/benchmark.yml`, and keep it green.
- TODO: add the two or three conventions a newcomer always gets wrong here.

## Gotchas

- `src/diffusers/loaders/lora_pipeline.py` is 297KB. It will not fit comfortably in context, so read it in parts.
- No lockfile is committed, so an install here may not match what CI produced.

---

Drafted by agentreadme.com from what is in this repository. Everything marked TODO
needs a human. Check it in as AGENTS.md at the root.
