Skip to content

Preserve contained sampled-part bounds during history correction - #943

Merged
bradhilton merged 12 commits into
mainfrom
hayek/history-part-bounds-followup-03-20260923
Sep 24, 2026
Merged

bradhilton merged 12 commits into
mainfrom
hayek/history-part-bounds-followup-03-20260923

Conversation

@bradhilton

@bradhilton bradhilton commented Sep 23, 2026 •

Copy link
Copy Markdown
Collaborator

Corrected complete-message bounds can leave valid sampled parts unrecognized or replay visible content around a length stop. Preserve contained part proofs and exact sampled IDs/logprobs, reject unproven complete boundaries, and retain an independent synthetic length STOP without replaying trailing visible text, including alternate captured EOS IDs. Restore source-proven STOP flags per corrected occurrence so repeated references to one sampled source retain both stops.

Validation: 311 tokenizer tests pass against the exact branch package composed with main 376c68b83, plus configured Ruff, format and whitespace checks. Native regressions confirm the prior opening-prefix, alternate-EOS, short-capture and repeated-source failures. Fresh independent source reviews approved, and exact-head CI passed for 471b66e272db18cce2b439e0faccccd409b0cfc5. Fixtures are synthetic; the original failed R6/R7 trajectory was unavailable. No live training source was changed.

@bradhilton
bradhilton marked this pull request as ready for review September 23, 2026 18:49
@bradhilton
bradhilton merged commit 90e9944 into main Sep 24, 2026
10 checks passed
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