diff --git a/bench.sh b/bench.sh index d196e3f0..96f943c2 100755 --- a/bench.sh +++ b/bench.sh @@ -178,7 +178,10 @@ for name, temp, prompt, mt in PROBES: untimed += sum(1 for x in timed if x <= 0) print(f" {name}: {' / '.join(f'{x:.1f}' if x > 0 else 'not timed' for x in speeds)} tok/s" + (" (the second one not counted)" if NGRAM_POOL else "")) - if max(timed) > 90: + # The 27B's ceiling: its dense 27B alone decodes about 11 tok/s on this box. Another lane's model has another floor: + # on the Qwen4 35B-A3B lane, 3B active per token, every greedy probe passed 90 (85 to 127, 2026-12-04) and each was + # called an artifact under its own figure (found 2026-12-04). + if LANE == "27b" and max(timed) > 90: print(" ^ above the block-8 speculative physical ceiling for this box (~9x the") print(" ~11 tok/s AR floor), almost certainly a measurement artifact, not") print(" real speed. Cross-check with bench-matrix.sh (wall-clock method).") diff --git a/tests/test_bench_lane.py b/tests/test_bench_lane.py index 314a400e..7a87eba2 100644 --- a/tests/test_bench_lane.py +++ b/tests/test_bench_lane.py @@ -222,6 +222,17 @@ def main(): if f"{spin.pid} " not in out: fails.append(f"bench did not name the busy process {spin.pid}:\n{out[:400]}") + # The physical ceiling bench.sh prints under a probe past 90 tok/s is the 27B's (about 11 tok/s alone, 8 tokens a + # step): on the Qwen4 35B-A3B lane, 3B active per token, it called each of three probes out of four an artifact + # under its own figure (2026-12-04). The fake engine's rates pass any ceiling: only the 27B lane says it. + for model in ("qwen4-35b-a3b", "qwen3.8-flash-next", "lfm2.5-24b-a2b"): + out = run_bench(model) + if "measurement artifact" in out: + fails.append(f"{model} was told the 27B's physical ceiling:\n{out[:600]}") + out = run_bench("qwen3.8-27b") + if "measurement artifact" not in out: + fails.append(f"the 27B lane no longer says its physical ceiling:\n{out[:600]}") + for f in fails: print("FAIL", f) print(f"bench lane detection: {'FAILED' if fails else 'ok'} ({len(fails)} problem(s))")