Skip to content

Tests: the MOSS-Image teacher gate compares each step with the teacher, not only with a repeat (#1529) - #2291

Merged
ashhart merged 2 commits into
mainfrom
lead/teacher-gate-1529
Nov 6, 2026
Merged

ashhart merged 2 commits into
mainfrom
lead/teacher-gate-1529

Conversation

@ashhart

@ashhart ashhart commented Nov 5, 2026

Copy link
Copy Markdown
Owner

For #1529. The per-step MOSS-Image teacher gate in tests/moss_image_run.zig printed the fp32 comparison, but passed on repeatability alone: teacher returned whether a repeat repeated. It now does what its name says:

  • Every recorded step, on both branches, is compared with the teacher's fp32 values within a bound derived from bf16's own rounding at that magnitude. A step outside it fails, naming its index and its worst element.
  • Repeatability is still checked, as a separate line.
  • A missing teacher file is INCONCLUSIVE, not PASS.

Host tests on synthetic teacher data: an in-bound step passes, a planted out-of-bound element fails at its step, and a missing file is inconclusive. No engine, checkpoint, schedule or kernel changes. The real run needs the MOSS-Image checkpoint and the teacher's recorded values, which we don't hold yet.

Compare every branch and element against its recorded fp32 teacher using
twice the larger of the bf16 reference error and local rounding allowance.
Report the worst element and fail numerical misses independently of repeats.
Missing or partial teachers return INCONCLUSIVE instead of success.

Record full fp32 coverage by default in the publisher case tool and exercise
the actual CLI on synthetic host cases, without a GPU or checkpoint.

Refs #1529.
@ashhart
ashhart force-pushed the lead/teacher-gate-1529 branch from 0dc4613 to e55e964 Compare November 6, 2026 07:02
@ashhart
ashhart merged commit 3e37f94 into main Nov 6, 2026
9 of 11 checks passed
@ashhart
ashhart deleted the lead/teacher-gate-1529 branch November 10, 2026 16:35
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