Repository navigation
Fix flaky decode cache-hit check in Inkling test - #34405
Merged
Merged
Conversation
Collaborator
Author
|
/rerun-test test/registered/models_e2e/test_inkling_small_nvfp4.py |
Contributor
|
Results for 🚀 |
Collaborator
Author
|
/rerun-test test/registered/models_e2e/test_inkling_small_nvfp4.py |
Contributor
|
Results for 🚀 |
Merged
vstone-w
pushed a commit
to ClownBin/sglang
that referenced
this pull request
Aug 12, 2026
7 of 8 tasks
saturn-acc
pushed a commit
to saturn-acc/sglang
that referenced
this pull request
Aug 16, 2026
Atituiset
pushed a commit
to Atituiset/sglang
that referenced
this pull request
Sep 10, 2026
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.
Motivation
test_input_output_logprobs_match_decode_cache_hitonTestInklingSmallNvfp4Deterministicreds intermittently withToo few decode cache hits: 16/32whileavg_kl_divstays 0.0. The hit count is not noise. A decode checkpoint is reusable only when a full sliding window of live SWA data survives below it, and out-of-window SWA slots are freed a page at a time, so the deepest reusable position is the last page boundary. Withmamba_track_intervalat its default 256 and--page-size 128only every other page boundary carries a checkpoint, so a prompt hits iff(prompt_len + max_new_tokens) mod 256 < 128. That is half of them, an expected 16 of 32 against a screen needing 17, so the case has been one prompt away from red since it landed. Per-prompt agreement with that condition is 32/32, including the exactcached_tokens.Matching the interval to the page size makes every page boundary a checkpoint, so the condition becomes an identity in the sequence length: 17/32 to 32/32 decode cache hits.
min_cache_hit_ratiois then raised to require all 32, which turns a sampling floor into a guard and doubles what the case covers, since half the requests previously never reached decode-region state reuse.4xB200, tp=4, only the interval changed:
CI States
Latest PR Test (Base): ❌ Run #31481873146
Latest PR Test (Extra): ✅ Run #31481987018