Files
cookbook/docs/recipe-format.md
T
ClaudeandClaude Opus 5.5 976a8b40e5
ci / check (push) Successful in 11s
Multi-GPU recipes and mixed setups
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>
2026-10-29 18:59:51 +01:00

109 lines
4.0 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# Recipes
One file per exact setup, every part slugged the way bench.sh names result folders
(`Arc Pro B65` → `arc-pro-b65`):
| setup | file |
|---|---|
| one GPU | `<gpu>/<model>/<engine>-<profile>.md` |
| N of the same GPU | `<gpu>/<model>/<N>x-<engine>-<profile>.md` |
| different GPUs | `mixed/<setup>/<model>/<engine>-<profile>.md`, the setup named `<N>x-<gpu>_<N>x-<gpu>` in name order, e.g. `1x-arc-b580_1x-arc-pro-b60` |
`tools/cookbook.py validate` rejects a file whose path doesn't match its front matter.
## Front matter
TOML between `+++` lines:
```toml
+++
title = "Qwen3.8-27B on Arc Pro B65 with vLLM, single user"
summary = "One line: what makes this setup the one to pick."
model = "Qwen3.8-27B" # a standard model in cookbook.toml
quant = "w4a16" # as declared to bench.sh (its README, Models)
kv = "fp16" # as declared to bench.sh
engine = "vllm" # what bench.sh detects: vllm or llama.cpp
gpu = "Arc Pro B65" # an Arc GPU in cookbook.toml, as bench.sh records it
profile = "single-user" # single-user, throughput, long-context or efficiency
spec = "mtp:5" # as declared to bench.sh
thinking = "default" # as declared to bench.sh
tp = 1 # optional, default 1
pp = 1 # optional, default 1
gpus = 1 # optional, default 1; must be tp × pp
results = [ # result folders in <gpu>/results/, --full runs only
"261022_pascal_qwen3.8-27b_vllm_1x-arc-pro-b65",
]
+++
```
The first result is the reference run. More results are reproductions. When their
headline metric is within `agree_pct` of the first run (5%, `cookbook.toml`) and they
come from two or more submitters, the recipe is **verified**.
## Several GPUs
```toml
gpu = "Arc B580" # N of the same GPU ...
gpus = 2
tp = 2 # tp × pp = gpus
topology = ["Gen4 x8 CPU", "Gen4 x8 CPU"] # required: PCIe link of each GPU, and what it hangs off
gpu = ["Arc Pro B60", "Arc B580"] # ... or different GPUs: one name per card
topology = ["Gen5 x8 CPU", "Gen4 x8 CPU"] # in the same order
```
bench.sh reads PCIe, power and bandwidth from one GPU only, and counts every GPU in the
machine. So the cookbook takes the GPU count from `tp × pp`, needs `topology` declared, and
leaves energy (and, for pipeline parallel or mixed setups, bandwidth) out. Declare: vLLM
`--tensor-parallel-size N` → `tp = N`; llama.cpp `-sm layer` → `pp = N`, `-sm row` → `tp = N`.
See [bench-standard gaps](bench-standard-gaps.md).
## Body
````markdown
One paragraph: who this is for, and how it compares to the other recipes.
<!-- cookbook:numbers -->
<!-- /cookbook:numbers -->
## Requirements
GPU, host setup link, how to get the standard model file and check its hash.
## Launch
```sh
the exact command, the same as server-cmd.txt in every cited result
```
## Why these flags
| flag | why |
|---|---|
## Check it
A curl that proves the server answers.
## Pitfalls
What goes wrong, and how you notice.
````
`tools/cookbook.py build` fills the `numbers` block: headline, the metrics of the
reference run, all runs with links to their reports, and the bench.sh command to
reproduce. Never type numbers into a recipe by hand.
## What validate checks
- every cited result exists, is a `--full` run of an accepted bench-standard version,
on the standard model file
- `quant`, `kv`, `spec`, `thinking`, `tp`, `pp`, GPU and engine match what the run
declared and detected; `tp × pp` is the GPU count, and the runs sit in the recipe's
own folder's `results/`
- several GPUs: `topology` lists one link per GPU; mixed setups name two or more different GPUs
- the first `sh` block under `## Launch` is word for word the `server-cmd.txt` of every
cited run (line breaks, spacing and comments don't count; secrets are redacted the
way bench.sh does it)
- a container image is pinned by digest (`image@sha256:...`)
- demo and real results are never mixed