ci / check (push) Successful in 11s
Several of one GPU: <gpu>/<model>/<N>x-<engine>-<profile>.md with gpus, tp and pp (tp × pp = gpus) and a declared PCIe topology. Different GPUs: mixed/<setup>/, named after its cards, with the same layout as a GPU folder and a generated mixed/README.md. Runs must sit in their recipe's setup folder. Energy, and bandwidth for pipeline parallel or mixed, are left out where bench-standard measures one GPU only; docs/ bench-standard-gaps.md lists those gaps for the benchmarks repo. The wanted lists take the fewest of one GPU a model fits in. Demo: 2x Arc B580 with vLLM TP 2 and llama.cpp layer split for Qwen3.8-27B, -sm row as what lost, and Arc Pro B60 + Arc B580 mixed. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
68 lines
3.1 KiB
Markdown
68 lines
3.1 KiB
Markdown
# Contributing
|
||
|
||
Everything here is backed by a [bench-standard](https://git.linxweiler.xyz/miga/benchmarks)
|
||
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**.
|
||
|
||
1. Set up the host ([host setup](docs/host-setup.md)) and download the model as the
|
||
recipe says. Check the hash.
|
||
2. Start the server with the recipe's launch command, unchanged. Save that exact
|
||
command as `server-cmd.txt`.
|
||
3. Run the bench.sh command at the end of the recipe's numbers block: first a quick run,
|
||
then `--full`.
|
||
4. Copy the result folder into `<gpu>/results/` unchanged, and add its name to the
|
||
recipe's `results` list (after the existing ones).
|
||
5. `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
|
||
|
||
1. 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.
|
||
2. Every variant that loses goes into `<gpu>/<model>/tried.md` with its run
|
||
([format](docs/tried-format.md)).
|
||
3. A variant that wins needs a `--full` run. Then:
|
||
- **Same engine and profile:** update the recipe's launch command, replace its
|
||
`results` with the new run, and move the old reference run to `tried.md` as what
|
||
it beat.
|
||
- **New engine or profile:** write a new recipe ([format](docs/recipe-format.md)).
|
||
4. `python3 tools/cookbook.py build` and open a pull request.
|
||
|
||
## Several GPUs
|
||
|
||
Same steps, three additions ([details](docs/recipe-format.md#several-gpus)):
|
||
|
||
- `gpus`, `tp` and `pp` in the front matter, with `tp × pp = gpus`. Two of the same card:
|
||
`<gpu>/<model>/2x-<engine>-<profile>.md`. Different cards: a setup folder under `mixed/`.
|
||
- `topology`: the PCIe link of each card, from `lspci -vv` ([host setup](docs/host-setup.md#5-several-gpus)).
|
||
- bench.sh sees only the first card's PCIe and power: put the others in `--special-notes`.
|
||
|
||
## A new GPU or model
|
||
|
||
- **GPU:** add the Arc card to `cookbook.toml` under `[gpus]`, with its spec VRAM and
|
||
bandwidth, and its name exactly as bench.sh records it (`gpu_model` in `meta.json`).
|
||
`build` creates its folder and README.
|
||
- **Model:** it must be a standard model of bench-standard first. Propose it there.
|
||
Then add it to `cookbook.toml` under `[models]`.
|
||
|
||
## Rules
|
||
|
||
- Never edit a result folder. Never type a number into a recipe. `build` writes them all.
|
||
- Recipes cite `--full` runs only, made with an accepted bench-standard version
|
||
(`cookbook.toml`).
|
||
- Pin container images by digest.
|
||
- Before committing, check `server-cmd.txt` for paths or host names you don't want public.
|
||
- CI runs `validate`, `build --check` and the tests. Run them before pushing:
|
||
|
||
```sh
|
||
python3 tools/cookbook.py validate && python3 tools/cookbook.py build --check
|
||
python3 -m pytest tools/tests
|
||
```
|