Repository navigation
Benchmark bounded instruction prefix retention for GPT-OSS KV - #1417
Draft
Gajesh2007 wants to merge 2 commits into
Draft
Gajesh2007 wants to merge 2 commits into
Gajesh2007 wants to merge 2 commits into
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
This branch was successfully deployed
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.
This adds one fixed, GPT-OSS-only
instruction-halfcandidate to the existing selective KV benchmark. It protects the first 128 tokens, including the original four anchors, and retains the current recent512 / half-older-chunk policy. The original native andhalfcontrols remain unchanged. This is a stacked draft on #1412; it does not enable serving.The production normalizer and native tokenizer now expose a verified boundary through the first user header. A CPU-only audit preserves the actual prompt IDs and refuses unverified or over-budget headers in the candidate generation harness. The twelve new cases have headers of 64 or 118–124 tokens; the original recovery request is exactly the same 4602 tokens. The immutable preregistration fixes 128, all inputs/oracles, six recovery observations per arm, twelve new arithmetic/code/tool cases and 256-token output caps before candidate model inference. The fixed campaign is complete; no policy or case was retuned.
Fixed experiment result
Native and candidate both pass 10/12 new cases, with the same two arithmetic cap failures. Only 4/12 full generated arrays match. The original regression is not fixed: native answers correctly in 6/6 recovery observations; the protected-prefix candidate reaches the 256-token cap in 6/6. The index-47 logit margin for
seemsminuslikelychanges from +0.06152 to -0.01633 with otherwise matched capture controls. Protecting the complete audited header is therefore insufficient for this case.The candidate retains 56.45–59.28% of last-prune native KV backing. Output-8 active allocator samples are about 93 MiB lower at 4.6K and 189 MiB lower at 8.7K, while new-cohort whole-run peaks remain about 13.750 GiB. These observations are not admission credits or a speedup claim. All four cells complete strict cancellation/recovery and shutdown checks. Full raw reports, exact commands, source/binary/model hashes, preregistration and comparisons are committed in the dated report.
Before
After
Validation: rebuilt native provider 13 tests and nested SDK 2 tests pass; final CPU-only radix 33 tests pass. Rebuilt native audits preserve all 13 preregistered prompt arrays and boundaries. The mandatory dedicated refactor fixed use of the process environment during injected-session coverage validation and added fail-closed regression coverage. Strict SDK formatting, diff checks and canonical docs-impact checks pass. Both published Mermaid figures were visually verified on GitHub. Hosted provider unit, SDK and prompt-parity checks pass on both the frozen source and final evidence head. Standalone SDK checks are tracked separately. The quality oracles use native engine output; HTTP tool enforcement and response shaping are outside this cohort.
Known limitation: full docs lint has the existing frozen-report link failure in
docs/reports/2026-10-03-all-model-prefix-qualification.mdreferencing absentcoordinator/registry/cache_match_groups.go; the frozen record is unchanged. Full FP32 K-history casts and source/destination overlap remain unqualified for serving. Prefix protection also changes older chunk partitioning, so recovery would not isolate instruction loss as the unique cause. No generic quality, speedup, context-capacity or production-admission claim is made.