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

+21 -22
View File
@@ -1,5 +1,5 @@
#!/usr/bin/env python3
"""make_demo.py - writes the synthetic DEMO result folders in results/.
"""make_demo.py - writes the synthetic DEMO result folders in <gpu>/results/.
usage: python3 tools/demo/make_demo.py [--benchmarks DIR]
@@ -61,40 +61,40 @@ SPEC5 = """ --speculative-config '{"method":"mtp","num_speculative_tokens":5}'
# decode/ttft/pp: the medians to aim for; conc: aggregate t/s at 1, 2, 4, 8; watts: decode
RUNS = [
{"recipe": "qwen3.5-9b/arc-pro-b65/llama.cpp-single-user", "date": "261019",
{"recipe": "arc-pro-b65/qwen3.5-9b/llama.cpp-single-user", "date": "261019",
"decode": 64.0, "ttft": 95, "pp": 3400, "conc": [63, 63, 64, 64], "watts": 148},
{"recipe": "qwen3.5-9b/arc-pro-b65/llama.cpp-single-user", "date": "261019", "quick": True,
{"recipe": "arc-pro-b65/qwen3.5-9b/llama.cpp-single-user", "date": "261019", "quick": True,
"sub": [("-fa on -ctk q8_0 -ctv q8_0", "-fa off")], "declare": {"kv": "f16"},
"decode": 57.1, "ttft": 118, "pp": 2650, "conc": [56, 56, 57, 57], "watts": 150},
{"recipe": "qwen3.5-9b/arc-pro-b65/llama.cpp-single-user", "date": "261019", "quick": True,
{"recipe": "arc-pro-b65/qwen3.5-9b/llama.cpp-single-user", "date": "261019", "quick": True,
"sub": [("-e ZES_ENABLE_SYSMAN=1", "-e ZES_ENABLE_SYSMAN=1 -e GGML_SYCL_DISABLE_OPT=1")],
"decode": 49.8, "ttft": 131, "pp": 2100, "conc": [49, 49, 50, 50], "watts": 139},
{"recipe": "qwen3.5-9b/arc-pro-b65/vllm-single-user", "date": "261020",
{"recipe": "arc-pro-b65/qwen3.5-9b/vllm-single-user", "date": "261020",
"decode": 118.0, "ttft": 140, "pp": 4100, "conc": [114, 115, 115, 115], "watts": 165},
{"recipe": "qwen3.8-27b/arc-pro-b65/llama.cpp-single-user", "date": "261021",
{"recipe": "arc-pro-b65/qwen3.8-27b/llama.cpp-single-user", "date": "261021",
"decode": 22.6, "ttft": 210, "pp": 980, "conc": [22, 22, 23, 23], "watts": 160},
{"recipe": "qwen3.8-27b/arc-pro-b65/llama.cpp-single-user", "date": "261021", "quick": True,
{"recipe": "arc-pro-b65/qwen3.8-27b/llama.cpp-single-user", "date": "261021", "quick": True,
"sub": [("-ub 512", "-ub 1024")],
"decode": 22.5, "ttft": 200, "pp": 1070, "conc": [22, 22, 22, 23], "watts": 161},
{"recipe": "qwen3.8-27b/arc-pro-b65/llama.cpp-single-user", "date": "261021", "quick": True,
{"recipe": "arc-pro-b65/qwen3.8-27b/llama.cpp-single-user", "date": "261021", "quick": True,
"sub": [("-ctk q8_0 -ctv q8_0", "-ctk f16 -ctv f16")], "declare": {"kv": "f16"},
"decode": 22.8, "ttft": 205, "pp": 1000, "conc": [22, 23, 23, 23], "watts": 160},
{"recipe": "qwen3.8-27b/arc-pro-b65/vllm-single-user", "date": "261022",
{"recipe": "arc-pro-b65/qwen3.8-27b/vllm-single-user", "date": "261022",
"decode": 84.5, "ttft": 190, "pp": 1520, "conc": [83, 83, 84, 84], "watts": 172},
{"recipe": "qwen3.8-27b/arc-pro-b65/vllm-single-user", "date": "261022", "quick": True,
{"recipe": "arc-pro-b65/qwen3.8-27b/vllm-single-user", "date": "261022", "quick": True,
"sub": [(SPEC5, "")], "declare": {"spec": "none"},
"decode": 31.0, "ttft": 185, "pp": 1530, "conc": [31, 31, 31, 31], "watts": 168},
{"recipe": "qwen3.8-27b/arc-pro-b65/vllm-single-user", "date": "261022", "quick": True,
{"recipe": "arc-pro-b65/qwen3.8-27b/vllm-single-user", "date": "261022", "quick": True,
"sub": [('"num_speculative_tokens":5', '"num_speculative_tokens":3')], "declare": {"spec": "mtp:3"},
"decode": 76.4, "ttft": 188, "pp": 1515, "conc": [75, 75, 76, 76], "watts": 171},
{"recipe": "qwen3.8-27b/arc-pro-b65/vllm-single-user", "date": "261022", "quick": True,
{"recipe": "arc-pro-b65/qwen3.8-27b/vllm-single-user", "date": "261022", "quick": True,
"sub": [('"num_speculative_tokens":5', '"num_speculative_tokens":7')], "declare": {"spec": "mtp:7"},
"decode": 80.2, "ttft": 192, "pp": 1520, "conc": [79, 79, 80, 80], "watts": 174},
{"recipe": "qwen3.8-27b/arc-pro-b65/vllm-throughput", "date": "261023",
{"recipe": "arc-pro-b65/qwen3.8-27b/vllm-throughput", "date": "261023",
"decode": 64.0, "ttft": 205, "pp": 1500, "conc": [62, 118, 205, 296], "watts": 170},
{"recipe": "qwen3.5-9b/arc-b580/llama.cpp-single-user", "date": "261024",
{"recipe": "arc-b580/qwen3.5-9b/llama.cpp-single-user", "date": "261024",
"decode": 48.2, "ttft": 120, "pp": 2500, "conc": [47, 48, 48, 48], "watts": 140},
{"recipe": "qwen3.8-27b/arc-pro-b65/vllm-single-user", "date": "261026", "submitter": "demo-2",
{"recipe": "arc-pro-b65/qwen3.8-27b/vllm-single-user", "date": "261026", "submitter": "demo-2",
"decode": 82.1, "ttft": 196, "pp": 1490, "conc": [81, 81, 82, 82], "watts": 175},
]
@@ -104,7 +104,7 @@ def kv_file(path, d):
def recipe_front(rid):
front, body = cookbook.split_front((ROOT / "recipes" / f"{rid}.md").read_text(encoding="utf-8"))
front, body = cookbook.split_front((ROOT / f"{rid}.md").read_text(encoding="utf-8"))
return front, cookbook.launch_block(body)
@@ -200,7 +200,7 @@ def power_rows(run, gpu, phases, t_end, t0, rng):
return rows
def make(run, out_dir, bench, ids):
def make(run, bench, ids):
front, launch = recipe_front(run["recipe"])
cmd = launch
for old, new in run.get("sub", []):
@@ -254,7 +254,7 @@ def make(run, out_dir, bench, ids):
"greedy_hash": hashlib.sha256(f"{front['model']}{front['quant']}".encode()).hexdigest()[:12],
"greedy_reasoning": "yes"}
d = out_dir / rid
d = ROOT / cookbook.slug(front["gpu"]) / "results" / rid
shutil.rmtree(d, ignore_errors=True)
d.mkdir(parents=True)
with tempfile.TemporaryDirectory() as tmp:
@@ -277,7 +277,7 @@ def make(run, out_dir, bench, ids):
config = json.loads((d / "config.json").read_text(encoding="utf-8"))
argv = ["betterbench", "run", "--no-update-check", "--endpoint", endpoint, "--model", served,
"--config", f"results/{rid}/config.json", "--name", name, "--out", f"results/{rid}/{rid}.json"]
"--config", f"{d.relative_to(ROOT)}/config.json", "--name", name, "--out", f"{d.relative_to(ROOT)}/{rid}.json"]
argv += (["--quick"] if quick else []) + ["--max-model-len", str(ctx)]
for k, v in notes.items():
argv += ["--note", f"{k}={v}"]
@@ -338,12 +338,11 @@ def main():
bench = a.benchmarks.resolve()
if not (bench / "dev" / "postrun.py").exists():
sys.exit(f"no benchmarks checkout at {bench} (pass --benchmarks DIR)")
out = ROOT / "results"
for d in out.glob("*/DEMO"):
for d in ROOT.glob("*/results/*/DEMO"):
shutil.rmtree(d.parent)
ids = set()
for run in RUNS:
make(run, out, bench, ids)
make(run, bench, ids)
if __name__ == "__main__":