ci / check (push) Successful in 10s
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>
2.7 KiB
2.7 KiB
AGENTS.md
Instructions for a coding agent working in the Arc LLM Cookbook. The human guide is CONTRIBUTING.md. Benchmarks run with bench-standard; follow its 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
- Find the GPU:
xpu-smi discoveryorlspci | grep -i vga. The cookbook covers Intel Arc only. Open that GPU's folder from the index in 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. - Check the host against docs/host-setup.md. Changing groups, BIOS or power limits is your human's call: tell them, don't do it.
- Download the model as the recipe says and check the hash.
- Run the launch command unchanged. Ask before stopping another server on the GPU.
- Run the recipe's "Check it" request, then tell your human the endpoint and model ID.
- Offer to benchmark it (job B): that makes the recipe verified.
B. Contribute a run
- Start the server with the recipe's launch command (or the variant you test). Write
that exact command to
server-cmd.txt. - Benchmark with bench.sh, following its AGENTS.md: dry run, quick run, then
--fullonly after your human agrees. Use the bench.sh command in the recipe's numbers block. Its declared values are the recipe's. - Copy the result folder into
<gpu>/results/unchanged. - 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
--fullrun): follow CONTRIBUTING.md, "Find something faster". Show your human the comparison before changing a recipe.
- Reproduction: append the folder name to the recipe's
- Run
python3 tools/cookbook.py build, thenvalidate. Fix every error. Don't silence one by editing results orcookbook.toml. - 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
--fullrun that shows it's faster. - Change one thing per variant, so the result says what made the difference.
- Ask before
--fullruns, before restarting or stopping a server, and before committing or pushing. - Check
server-cmd.txtfor private paths or host names, and tell your human what you saw.