Skip to content

fix(genome): a run with no held-out tokens reports no validation loss - #4523

Merged
joelteply merged 1 commit into
canaryfrom
fix/no-held-out-no-validation-loss
Sep 28, 2026
Merged

joelteply merged 1 commit into
canaryfrom
fix/no-held-out-no-validation-loss

Conversation

@joelteply

Copy link
Copy Markdown
Contributor

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

… (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
@joelteply

Copy link
Copy Markdown
Contributor Author

APPROVED at ccad250 (Cormac). All 8 checks succeeded. held_out_loss() lets the engine's eval_trainable_tokens decide (fork #31: state.eval_trainable_tokens, epoch eval_loss null), and the key names match the fork. On an older engine only a run that asked for a split is believed, and a null is None either way. The test pins all four rows. Known and accepted: an OLD engine with split>0 and a fully masked eval still reads 0.0 as a validation loss until #31 is pinned; do not call that a measured held-out loss (Codex).

@joelteply
joelteply merged commit a741564 into canary Sep 28, 2026
8 checks passed
@joelteply
joelteply deleted the fix/no-held-out-no-validation-loss branch September 28, 2026 12:35
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant