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.6 KiB
2.6 KiB
Contributing
Everything here is backed by a bench-standard run. Read its README first: it has the standard models, the values you declare and the rules of a valid run. Intel Arc GPUs only.
Reproduce a recipe
The most useful contribution: a second submitter makes a recipe verified.
- Set up the host (host setup) and download the model as the recipe says. Check the hash.
- Start the server with the recipe's launch command, unchanged. Save that exact
command as
server-cmd.txt. - Run the bench.sh command at the end of the recipe's numbers block: first a quick run,
then
--full. - Copy the result folder into
<gpu>/results/unchanged, and add its name to the recipe'sresultslist (after the existing ones). python3 tools/cookbook.py build, then open a pull request.
If your numbers are more than 5% off, validate warns. Don't drop the run: open the PR
anyway and say what differs (driver, power limit, PCIe). That's how a recipe's
limits are found.
Find something faster
- Start from the recipe's launch command and change one thing: a flag, an env var, the spec decoding, the engine build. Quick runs are fine for exploring.
- Every variant that loses goes into
<gpu>/<model>/tried.mdwith its run (format). - A variant that wins needs a
--fullrun. Then:- Same engine and profile: update the recipe's launch command, replace its
resultswith the new run, and move the old reference run totried.mdas what it beat. - New engine or profile: write a new recipe (format).
- Same engine and profile: update the recipe's launch command, replace its
python3 tools/cookbook.py buildand open a pull request.
A new GPU or model
- GPU: add the Arc card to
cookbook.tomlunder[gpus], with its spec VRAM and bandwidth, and its name exactly as bench.sh records it (gpu_modelinmeta.json).buildcreates its folder and README. - Model: it must be a standard model of bench-standard first. Propose it there.
Then add it to
cookbook.tomlunder[models].
Rules
- Never edit a result folder. Never type a number into a recipe.
buildwrites them all. - Recipes cite
--fullruns only, made with an accepted bench-standard version (cookbook.toml). - Pin container images by digest.
- Before committing, check
server-cmd.txtfor paths or host names you don't want public. - CI runs
validate,build --checkand the tests. Run them before pushing:
python3 tools/cookbook.py validate && python3 tools/cookbook.py build --check
python3 -m pytest tools/tests