Files
cookbook/AGENTS.md
T
ClaudeandClaude Opus 5.5 562c7f2fb8
ci / check (push) Successful in 10s
One folder per GPU, with a GPU index in the top-level README
Recipes, tried logs and result folders move under <gpu>/: recipes at
<gpu>/<model>/<engine>-<profile>.md, tried logs at <gpu>/<model>/tried.md,
runs at <gpu>/results/<run>/. build generates a README for every GPU in
cookbook.toml and the GPU table in README.md. validate checks that a run
sits in the folder of the GPU it ran on and warns about stray top-level
folders. Format docs and host setup move to docs/.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-29 15:38:54 +01:00

50 lines
2.7 KiB
Markdown

# AGENTS.md
Instructions for a coding agent working in the Arc LLM Cookbook. The human guide is
[CONTRIBUTING.md](CONTRIBUTING.md). Benchmarks run with bench-standard; follow **its**
[AGENTS.md](https://git.linxweiler.xyz/miga/benchmarks/src/branch/main/AGENTS.md) for
every benchmark step. This file covers only what the cookbook adds.
There are two jobs. Ask your human which one, if it isn't clear.
## A. Set up a recipe for your human
1. Find the GPU: `xpu-smi discovery` or `lspci | grep -i vga`. The cookbook covers
Intel Arc only. Open that GPU's folder from the index in [README.md](README.md),
and pick the recipe in its README by model and profile. ★ marks the fastest. Ask
which profile if unsure: one user → `single-user`, several users or agents →
`throughput`.
2. Check the host against [docs/host-setup.md](docs/host-setup.md). Changing
groups, BIOS or power limits is your human's call: tell them, don't do it.
3. Download the model as the recipe says and **check the hash**.
4. Run the launch command **unchanged**. Ask before stopping another server on the GPU.
5. Run the recipe's "Check it" request, then tell your human the endpoint and model ID.
6. Offer to benchmark it (job B): that makes the recipe verified.
## B. Contribute a run
1. Start the server with the recipe's launch command (or the variant you test). Write
that exact command to `server-cmd.txt`.
2. Benchmark with bench.sh, following its AGENTS.md: dry run, quick run, then `--full`
only after your human agrees. Use the bench.sh command in the recipe's numbers
block. Its declared values are the recipe's.
3. Copy the result folder into `<gpu>/results/` **unchanged**.
4. Then one of:
- **Reproduction:** append the folder name to the recipe's `results`.
- **A variant that lost:** add a `[[tried]]` entry to `<gpu>/<model>/tried.md`.
- **A variant that won (a `--full` run):** follow CONTRIBUTING.md, "Find something
faster". Show your human the comparison before changing a recipe.
5. Run `python3 tools/cookbook.py build`, then `validate`. Fix every error. Don't
silence one by editing results or `cookbook.toml`.
6. Report: the result folder, the headline number against the recipe's, the warnings,
and what goes in the pull request.
## Rules
- **Never edit a result folder**, and never type numbers into a recipe or tried log.
- **Never change a recipe's launch command** without a `--full` run that shows it's faster.
- **Change one thing per variant**, so the result says what made the difference.
- **Ask before** `--full` runs, before restarting or stopping a server, and before
committing or pushing.
- Check `server-cmd.txt` for private paths or host names, and tell your human what you saw.