Repository navigation
Fail loudly on two silent multimodal eval faults - #337
Merged
Merged
Conversation
jason718
force-pushed
the
jasonr/charxiv-judge-backoff
branch
from
August 31, 2026 06:22
97e5bd8 to
8caffe9
Compare
An untied checkpoint stores its output projection in a tensor shaped exactly like the embedding table, so a read that returns the wrong one of the pair loads cleanly with every other weight intact. The model then decodes through the wrong projection and emits noise while reporting chance-level accuracy and no error, which is indistinguishable from a genuine result. Compare the two tensors after conversion and fail the load when they match on a model the config says is untied.
Grading fans out many concurrent calls, and the retry ladder had no wait between attempts, so one transient API condition burned all ten retries within milliseconds. The call then returned the dummy score, which downstream stats count as zero — gradable responses were silently scored wrong rather than regraded. A rerun of failed gradings returned valid replies on the first try. Wait a randomized exponential backoff between attempts, and report the last raw reply when grading finally gives up.
jason718
force-pushed
the
jasonr/charxiv-judge-backoff
branch
from
August 31, 2026 06:24
8caffe9 to
d8ccfe3
Compare
jason718
added a commit
that referenced
this pull request
Sep 13, 2026
~3 of 4 Beaker loads of the untied 8B checkpoint returned the embedding table as the LM head — every other tensor correct, output noise, score at chance, nothing raised. The guard rejects a load whose untied head is bit-identical to the embeddings. Also picks up ai2/holmes in WEKA_CLUSTERS (#330).
jason718
added a commit
that referenced
this pull request
Sep 15, 2026
~3 of 4 Beaker loads of the untied 8B checkpoint returned the embedding table as the LM head — every other tensor correct, output noise, score at chance, nothing raised. The guard rejects a load whose untied head is bit-identical to the embeddings. Also picks up ai2/holmes in WEKA_CLUSTERS (#330).
jason718
added a commit
that referenced
this pull request
Sep 17, 2026
~3 of 4 Beaker loads of the untied 8B checkpoint returned the embedding table as the LM head — every other tensor correct, output noise, score at chance, nothing raised. The guard rejects a load whose untied head is bit-identical to the embeddings. Also picks up ai2/holmes in WEKA_CLUSTERS (#330).
jason718
added a commit
that referenced
this pull request
Sep 19, 2026
The official retry ladder retries with no wait, so with grading fanned out concurrently one transient API condition burned all 10 retries in milliseconds and forced dummy scores that count as zero. Retries now wait a randomized exponential backoff, and the final failure logs the last raw reply.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Both fixes come out of the Molmo2-8B sweep on the new multi-image / CharXiv benchmarks, where a job reported
Successwith a plausible score while being wrong.1. Reject a load whose LM head duplicates the embeddings
Molmo2-8Bscored 0.1223 on MMMU-Pro (chance) with zero failed instances, emitting noise ('Ψ梭梭梭…','tqdm traveled traveled').Cause: the loaded
lm.lm_head.w_out.weightcame back byte-identical tolm.embeddings.weight(md53150fdf99033instead of04d532c7137b). Every other tensor matched a good load, so the backbone ran all 36 blocks correctly and only the final projection was wrong.It is possible because the checkpoint's two largest tensors are indistinguishable except by shard filename:
both 151936x4096, replicated across 16 ranks.
Molmo2-4Bis genuinely weight-tied and ships noff_out, so it cannot hit this — hence 4B fine, 8B garbage. Reproduced on Beaker with byte-identical output across runs; local loads of the same checkpoint were fine, so the read is intermittent._verify_lm_head_is_untiedcompares the two tensors after conversion and fails the load when they match on a model the config says is untied. A trained untied head is never bit-for-bit equal to the embeddings, so there are no false positives; genuinely tied checkpoints are unaffected.2. Back off between CharXiv grading retries
charxiv_reasoningon the 8B scored 0.2410 withn_invalid= 273 — 273 of 1000 gradings exhausted all ten retries and fell back to the official dummy (score = -1), whichget_stats.pycounts as 0.The retry ladder had no wait between attempts, so with grading fanned out over many concurrent calls one transient API condition burned all ten retries in milliseconds. Replaying failed gradings against the same model and prompt returned valid replies on the first attempt, and all sampled ones deserved
score = 1— these were gradable responses scored zero.Retries now wait a randomized exponential backoff (1s base, doubling, 30s cap), and the last raw reply is logged when grading gives up. Model, prompt,
max_tokensladder, retry count and dummy fallback are unchanged, so grading stays at official parity.Rerun of the same task with the fix:
Verification
ruff check/ruff format --checkclean; 2054 tests pass, 9 skipped.tyreports 3 pre-existing diagnostics in files this PR does not touch (litellm.py,olmo_core.py,vllm_server.py).