Files
cookbook/AGENTS.md
T
ClaudeandClaude Opus 5.5 4673f0afb6
ci / check (push) Successful in 32s
Arc LLM Cookbook: recipes, validator, site, demo content
Recipes for running the bench-standard models fastest on Intel Arc GPUs,
each backed by a bench.sh result folder in results/. tools/cookbook.py
validates recipes against their runs and generates the number tables
and site/index.html. All results are synthetic DEMO data so far, made by
tools/demo/make_demo.py; nothing has been measured yet.

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

49 lines
2.6 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. Pick the recipe from the index in [README.md](README.md) by GPU,
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 [hardware/host-setup.md](hardware/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 `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 `tried/<model>/<gpu>.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.