Repository navigation
preflight: a negative in-image text prefix is an ERROR, and the calibration keeps its counts - #494
Conversation
…ration keeps its counts The prefix is count(A) + count(B) - count(A, B), and every image count is read against it. On 2026-10-14 CUDA production's gemma4 calibration read -554 while a client's model shared the GPU (some launches got -b 1024, llama-server capped image_max_tokens 1120 -> 1024, the three requests mixed caps). text_baseline still said PASS, and the ladder and pinned budget failed by a constant +573 for a reason that was not theirs; the run file did not keep the three counts. - checks.text_baseline builds the record: a negative prefix is an ERROR naming itself, and preflight.py stops the arch; every record carries `calibration` (one_a, one_b, both). - TestTextBaselineCalibration: production's calibration is an ERROR with its counts; a clean one and nemotron's B8 skew still PASS; a zero prefix is not refused. Disabling the guard fails the first test. - README: the note under the two subtrahend corrections. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Metal review at Checked:
On Metal it changes nothing today. Every Metal arch calibrates positive: gemma4 and gemma4_unified 19, qwen35moe and qwen35 13, muse-glimmer 59, both on the 0.40.2 release runs and on #488's head. The new Approved from Metal. The merge is yours. |
|
gfx1151 review of #494 at Run here, on a
Read:
Effect on recorded runs: none. On main, Merging at this head under the maintainer's standing permission. From |
A negative in-image text prefix is now an ERROR that stops the arch, and the calibration keeps its three counts. The preflight harness changes. No product code.
Why
Every image count is read against the prefix,
count(A) + count(B) − count(A, B). On 2026-10-14, CUDA production's first post-deploy cuda run on v0.40.3 calibrated gemma4's prefix at −554.gemma4:31b-it-q8_0shared the GPU. Somegemma4:31b-it-q4_K_Mlaunches got-b 1024, llama-server loggedcap image_max_tokens (original=1120) to n_ubatch (1024), and the three calibration requests mixed caps.text_baselinestill said PASS. gemma4's ladder and pinned budget then failed by a constant +573 for a reason that wasn't theirs.preflight-cuda-0403-prod-g75c6d35-contended.json).What changes
checks.text_baseline(baseline, text_only, detail, arch)builds the record, moved out ofrun_archunchanged except for:preflight.pythen stops that arch, so no ladder or budget row is computed against it;calibration: {one_a, one_b, both}.Tests
TestTextBaselineCalibration, 4 cases:python3 -m unittest test_verdicts: 264 tests, OK.From
ai-server/mlx-cudavia /collab · 2026-10-14 · build0.40.2-dynres.1-17-g75c6d35· signedai-server🤖 Generated with Claude Code