Skip to content

integrity: compile-aware MFU ceiling (stops the uncompiled-Muon forgery flood) - #97

Open
karpabot wants to merge 1 commit into
RalphLabsAI:mainfrom
karpabot:feat/compile-aware-mfu-ceiling
Open

integrity: compile-aware MFU ceiling (stops the uncompiled-Muon forgery flood)#97
karpabot wants to merge 1 commit into
RalphLabsAI:mainfrom
karpabot:feat/compile-aware-mfu-ceiling

Conversation

@karpabot

@karpabot karpabot commented Jul 5, 2026

Copy link
Copy Markdown

Why

The forgery flood (2026-07-04/05) exploited a gap PR #96 left open: the micro_batch MFU ceiling (70% at ubatch-128) is blind to whether the recipe actually torch.compiles. Uncompiled Muon runs declared compile-grade throughput and sailed under the cap — andreastanm 239k (37% MFU) and Kaizen 356k (54.9%), both uncompiled.

I measured the ground truth on a real H200 (ubatch-128/seq-512): Muon uncompiled = 86,436 tok/s (~13% MFU), torch.compile'd = 207,700 (~32%) — a 2.4× gap. So an uncompiled recipe claiming >35% MFU is a forged-down wall_clock_s.

What

  • UNCOMPILED_MFU_CEILING = 0.35 — uncompiled recipes are capped here (honest uncompiled tops out ~27%, verified on 5Fbh5xe); compiled recipes keep the micro_batch ceiling (up to 70%).
  • _recipe_uses_compile — a recipe counts as compiling only if config.compile is truthy AND patch.diff actually contains torch.compile. A bare config flag is a no-op (dropped by hasattr on the canonical TrainConfig) and can't be trusted to earn the higher ceiling.
  • op1 threads recipe_compiles into check_compute_plausibility.

Verified on the real bundles

bundle tok/s MFU compile verdict
Kaizen b1930c27 356k 55% no REJECT
andreastanm 239k 37% no REJECT
danielortega (legit king) 239k 37% yes PASS
5Fbh5xe (honest) 174k 27% no PASS

8 new tests; full suite green. This is the interim fix to re-enable the validator now; the durable fix (on-GPU throughput re-measurement) is the follow-up.

🤖 Generated with Claude Code

…ry flood)

The micro_batch ceiling (PR#96) still let uncompiled Muon runs declare
torch.compile-grade throughput: andreastanm 239k (37% MFU) and Kaizen 356k
(54.9% MFU) both sailed under the 70% cap because the cap is blind to whether
the recipe actually compiles. Measured on a real H200 (ubatch-128/seq-512):
Muon UNCOMPILED = 86,436 tok/s (~13% MFU); torch.compile'd = 207,700 (~32%).

- UNCOMPILED_MFU_CEILING=0.35: an uncompiled recipe declaring MFU above this is
  a forged-down wall_clock (honest uncompiled tops out ~27%, 5Fbh5xe).
- max_plausible_mfu(...recipe_compiles): compiled keeps the micro_batch ceiling
  (up to 70%); uncompiled is capped at 0.35.
- _recipe_uses_compile: config.compile truthy AND patch.diff actually contains
  torch.compile — a bare config flag is a no-op (hasattr-dropped) and can't be
  trusted to earn the higher ceiling.
- op1 threads it into check_compute_plausibility.

Verified on the real bundles: Kaizen(356k,uncompiled) + andreastanm(239k,
uncompiled) REJECTED; danielortega(239k,COMPILED) + 5Fbh5xe(174k,uncompiled,27%)
PASS. 8 new tests. Interim while the on-GPU re-measurement gate is built.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
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