Repository navigation
fix(training): a graph-only refusal bounds the next plan, so a refused window is never re-dispatched - #4984
Merged
Conversation
…d window is never re-dispatched On the 5090, 84 of 108 training jobs failed. Window 68,608 was re-planned 73 times because its refusals were filed graph-only (`includes_context: false`), and both the window cap and the chunk ladder read whole-run rows only (#4939). That is correct for the fit and wrong for the bound: a graph alone over what is free proves the whole run is over it too. - `choose_window` takes the whole-run `rows` to fit, plus `bounds` (every measured row) for the floor-chunk cap. - Footprints gains `bound_rows_like` and `bound` (whole-run row, else graph-only). `rows_like` and `get` are unchanged. - `choose_chunk`'s need at a chunk is max(known need, measured lower bound), so a refused chunk steps down. Card 030d70f0. Parking examples on a measured no-fit (and the wake) is the next step on the same card. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
… the 5090's default-chunk graph-only row steps the chunk Codex read the 5090's footprints file: the 68,608 row is graph-only at the engine's default chunk (18.6 GB, includesContext:false). The floor-chunk window cap never sees a default-chunk row. choose_chunk does, now that it reads the bound, where before it read None and calibrated chunk 512 again on each run. Footprints::need owns that read, and the test pins the 5090's row. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
…hat one cause explains all 73 runs (Codex's review) Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Oct 12, 2026
…own and calibrates, never leased as the need Codex on #4985: lower bounds can disqualify a shape but cannot establish that a reserve is enough. #4984 (merged 9f0f3d4) had the trainer lease a graph-only bound that sat under governed free as if it were the whole run's need. Before #4984 such a shape calibrated, leasing everything free. Need::decides returns the bytes only where the evidence decides; a bound under free returns None, so the shape calibrates as before. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE
joelteply
added a commit
that referenced
this pull request
Oct 12, 2026
…nference/planning, so serving and training read one need (#4985) * refactor(planning): the training plan and the serving floor live in inference/planning, so serving and training read one need Agreed with Codex and Fable on #4984 and 3b8fb153. The serving planner must reserve one learning context beside serving, and that reserve has to be the trainer's own calculation. Exporting it from genome::fine_tuning would add the upward edge the crate peel (#4981) is removing, so the pure planner moves to the lower owner instead: - genome/fine_tuning/engine_plan.rs -> inference/planning/training_plan.rs (git mv, unchanged apart from visibility). - MIN_SERVE_CTX, its one upward reference, moves with it to inference/planning. All ~40 callers are migrated; no alias is left behind. - training_plan::need(whole_run, lower_bound, predicted) -> Need{bytes, source}. The source (WholeRun | LowerBound | Predicted) stays explicit. Footprints::need is now storage-only and calls it. Adds no inference -> cognition/genome/modules/persona edge (training_plan references only super::MIN_SERVE_CTX). Card c8165aa6; parking and the wake come next on the same card. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE * fix(planning): a lower bound only disqualifies; under free it is unknown and calibrates, never leased as the need Codex on #4985: lower bounds can disqualify a shape but cannot establish that a reserve is enough. #4984 (merged 9f0f3d4) had the trainer lease a graph-only bound that sat under governed free as if it were the whole run's need. Before #4984 such a shape calibrated, leasing everything free. Need::decides returns the bytes only where the evidence decides; a bound under free returns None, so the shape calibrates as before. Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE --------- Co-authored-by: Claude Opus 5.5 (1M context) <[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.
On the 5090, 84 of 108 training jobs failed. Window 68,608 was re-planned 73 times
because its refusals were filed graph-only (
includes_context: false), and both thewindow cap and the chunk ladder read whole-run rows only (#4939). That is correct for
the fit and wrong for the bound: a graph alone over what is free proves the whole run is
over it too.
choose_windowtakes the whole-runrowsto fit, plusbounds(every measured row)for the floor-chunk cap.
bound_rows_likeandbound(whole-run row, else graph-only).rows_likeandgetare unchanged.choose_chunk's need at a chunk is max(known need, measured lower bound), so arefused chunk steps down.
Card 030d70f0. Parking examples on a measured no-fit (and the wake) is the next step on
the same card.
Co-Authored-By: Claude Opus 5.5 (1M context) [email protected]
Claude-Session: https://claude.ai/code/session_01FRQWzgSfo79JtnwZywHKrE