Skip to content

W5b-4: one-command M5 runbook (benchmarks/m5.py) - #43

Merged
bnsd55 merged 1 commit into
mainfrom
w5b-m5run
Sep 18, 2026
Merged

bnsd55 merged 1 commit into
mainfrom
w5b-m5run

Conversation

@bnsd55

@bnsd55 bnsd55 commented Sep 18, 2026

Copy link
Copy Markdown
Owner

python -m benchmarks.m5 --out m5- [--ab-branch ...] chains the full M5 gate sequence in order, each step logged with wall time + exit status into /RUNBOOK.md: doctor --json (gate: FAIL aborts), pytest -m slow per parity model (MODEL_ID env; Qwen3-8B/Llama-3.1-8B/Gemma-3-12B defaults, --parity-models/--models-file override), bench --model quality, invariance on quality (TypeSafe cases fetched when missing), timing --reps 5, bench --models-file for the rest, and with --ab-branch a temp worktree + own venv rerunning bench+invariance there (worktree removed after). Step 8 writes SUMMARY.md comparing main vs A/B (agreement/accuracy, flip rate, log-odds drift, time per case, peak memory) from the produced json files. Idempotent via done-markers (--fresh overrides). Planner + summary builder unit-tested with fakes (21 tests, no model loads); BENCHMARKING.md gains a 10-line section. Rebased on PR #41.

…odel slow parity, bench, invariance, timing, optional A/B worktree, summary; RUNBOOK.md logging, idempotent steps, planner+summary unit tests
@bnsd55
bnsd55 merged commit 2500cf5 into main Sep 18, 2026
2 checks passed
@bnsd55
bnsd55 deleted the w5b-m5run branch September 18, 2026 21:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant