One folder per GPU, with a GPU index in the top-level README
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>
This commit is contained in:
ClaudeandClaude Opus 5.5 committed 2026-10-29 15:38:54 +01:00
1 parent 4673f0afb6
commit 562c7f2fb8
153 files changed
+445 -288

No files matched your search

+55
View File
@@ -0,0 +1,55 @@
# Host setup for Intel Arc
What every recipe assumes on the host. The engines (llama.cpp SYCL, vLLM XPU) bring
their own oneAPI and Level Zero runtimes in their containers. The host needs the
kernel driver, device access and Docker.
## 1. Kernel driver
Battlemage (B-series) needs the `xe` driver, which ships with current kernels. Check
that the card is there:
```sh
ls /dev/dri/ # card* and renderD* entries
lspci -k | grep -A3 -i 'vga\|display' | grep -i 'driver in use' # xe (or i915 on Alchemist)
```
## 2. Device access
Your user needs the `render` group, or containers started by your user can't open
the GPU:
```sh
sudo usermod -aG render,video "$USER" # log out and in again
```
Every recipe passes `--device /dev/dri` to Docker.
## 3. Resizable BAR
ReBAR must be on (BIOS: "Above 4G decoding" and "Resizable BAR"). Without it, Arc
loses a lot of speed:
```sh
sudo lspci -vv -s "$(lspci | awk '/VGA.*Intel/ {print $1; exit}')" | grep -i -A2 'resizable bar'
```
bench.sh records ReBAR in the `pcie` note of every run.
## 4. Power limit and telemetry
`xpu-smi` reads power and energy during a benchmark, and sets the power limit:
```sh
xpu-smi discovery
xpu-smi stats -d 0 # power, clock, memory
sudo xpu-smi config -d 0 --powerlimit 200
```
The power limit changes prefill and concurrency numbers. bench.sh records it. If you
change it, say so in the result (`--special-notes`).
## 5. Models
The recipes mount `/models` into the container. Download the standard files there,
as each recipe shows, and check the hash: bench.sh rejects any other file.
+81
View File
@@ -0,0 +1,81 @@
# Recipes
One file per exact setup: `<gpu>/<model>/<engine>-<profile>.md`, every part slugged
the way bench.sh names result folders (`Arc Pro B65` → `arc-pro-b65`).
`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
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**.
## 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
- 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
+28
View File
@@ -0,0 +1,28 @@
# Results
Result folders exactly as [bench-standard](https://git.linxweiler.xyz/miga/benchmarks)'s
`bench.sh` writes them, in the folder of the GPU they ran on:
`<gpu>/results/<YYMMDD>_<submitter>_<model>_<engine>_<N>x-<gpu>[_quick][_N]/`.
| file | what |
|---|---|
| `<run>.json` | BetterBench results; the bench.sh notes are under `env.notes` |
| `<run>.html` | the standalone report |
| `meta.json` | every raw value: declared, detected, measured, launch, post-run figures |
| `server-cmd.txt` | the server launch command, secrets redacted |
| `config.json`, `power.csv`, `timeline.tsv`, `betterbench.log` | config, power samples, phase timing, full output |
## Rules
- **Never edit anything in a result folder.** Copy it in as bench.sh wrote it.
`validate` compares the notes in `meta.json` with those in the results file.
- Recipes cite **`--full` runs only**. Quick runs are welcome as evidence in `tried.md`.
- A run goes in the folder of the GPU it ran on; `validate` checks `gpu_model`.
- Check `server-cmd.txt` for anything private before committing. bench.sh redacts
tokens, keys and passwords, but not paths or host names.
- A folder nobody cites gets a warning. Cite it from a recipe or a tried log, or leave it out.
## Demo folders
Folders with a `DEMO` file are synthetic, made by `tools/demo/make_demo.py`. Nothing in
them was measured. They go once real runs replace them (see [PLAN.md](../PLAN.md)).
+29
View File
@@ -0,0 +1,29 @@
# Tried
What lost against a recipe, with the run that shows it: `<gpu>/<model>/tried.md`, one
file per GPU and model, next to its recipes. A recipe says what's fastest. This says what isn't, so nobody
has to benchmark it again.
```toml
+++
model = "Qwen3.8-27B"
gpu = "Arc Pro B65"
[[tried]]
recipe = "arc-pro-b65/qwen3.8-27b/vllm-single-user" # what it was compared to
change = "MTP with 3 draft tokens" # the one thing that differs
result = "261022_pascal_qwen3.8-27b_vllm_1x-arc-pro-b65_quick"
note = "optional: why it lost"
+++
# Qwen3.8-27B on Arc Pro B65: what lost
<!-- cookbook:tried -->
<!-- /cookbook:tried -->
```
- Change **one thing** per entry, against the recipe's launch command.
- Quick runs are fine here: they show a direction. A variant that wins needs a
`--full` run and becomes the new recipe, and the old recipe's run goes in here.
- `tools/cookbook.py build` fills the table: its numbers and the difference from the
recipe's headline metric.