Repository navigation
fix(genome): a run with no held-out tokens reports no validation loss - #4523
Merged
Merged
Conversation
… (Codex on attempt 2) finish() took the last epoch's eval_loss unconditionally. With val_split 0 the engine's empty eval result is 0.0, so Some(0.0) became final_validation_loss, and the trial reported loss_source=validation for a held-out score that was never measured (#4519's validation-first gate). held_out_loss(): an engine with fork #31 reports eval_trainable_tokens, and the count decides. On an engine before it, only a run that asked for a split is believed to have one. A null eval_loss is None either way. EpochReport.eval_loss is now Option (null from #31). Co-Authored-By: Claude Opus 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo
Contributor
Author
|
APPROVED at ccad250 (Cormac). All 8 checks succeeded. |
joelteply
added a commit
that referenced
this pull request
Sep 28, 2026
…ble_tokens and a null eval loss with no held-out tokens (fork #31) (#4526) Completes #4523: with this engine the held-out count decides whether a run has a validation loss, including a split > 0 that rounds to no held-out windows or a fully masked eval. Claude-Session: https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo Co-authored-by: Claude Opus 5.5 <[email protected]>
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.
Codex, from source: with val_split 0, server-train sets idata_split=ndata and scale_eval=0, and ggml-opt's empty eval result is loss 0.0. finish() mapped it to final_validation_loss = Some(0.0), so the trial reported loss_source=validation for a held-out score never measured.
Known gap until #31 is pinned: an old engine with val_split > 0 that rounds to no held-out windows still reports 0.0. The count from #31 closes it.
🤖 Generated with Claude Code
https://claude.ai/code/session_01LoTjvf5j3Ez13g6k8mRkFo