Repository navigation
[DSA] Clarify pooled-page naming and ownership - #42671
Merged
Merged
Conversation
non_mechanical_provable: Check track intervals against the DSA logical page size after it is resolved, use the declared DCP field directly, and explain pooled-page ownership. Add startup coverage for invalid and valid intervals and cache-strategy exclusions.
mechanical_provable: Rename slots_per_page to index_page_size, real_page_size to physical_page_size, and the DSA k-pool ratio from pool_size to kpool. Update runtime consumers, host pools, metadata kernels, and fixtures together; preserve the unrelated compressed-KV slot counts.
kpham-sgl
requested review from
1am9trash,
BBuf,
DarkSharpness,
Fridge003,
HaiShaw,
HydraQYH,
Qiaolin-Yu,
YAMY1234,
Ying1123,
alphabetc1,
celve,
hanming-lu,
hebiao064,
hnyls2002,
huangtingwei9988,
hubertlu-tw,
hzh0425,
ispobock,
kkHuang-amd,
merrymercy,
rainj-me,
xiezhq-hermann,
yizhang2077 and
yuan-luo
as code owners
October 5, 2026 22:36
ispobock
approved these changes
Oct 6, 2026
non_mechanical_provable: Remove the additional pooled-DSA startup rejection and its test. mamba_track_grid already aligns decode checkpoints to the final tree page through LCM, so requiring the raw interval to divide the logical page rejects otherwise supported configurations.
Contributor
|
Heads-up from testing DSv4 on main (
python3 -m sglang.launch_server --trust-remote-code \
--model-path deepseek-ai/DeepSeek-V4-Flash-0731 --tp 2 \
--moe-runner-backend flashinfer_mxfp4 --speculative-algorithm DSPARK \
--swa-full-tokens-ratio 0.1 --mem-fraction-static 0.80 \
--disaggregation-mode prefill --disaggregation-transfer-backend mooncakeSince this PR is renaming the attribute anyway: could |
Collaborator
Author
|
/rerun-failed-ci |
4 tasks done
ormandj
added a commit
to ormandj/sglang
that referenced
this pull request
Oct 10, 2026
Main renamed fast_kpool_topk_transform_fused's pool_size to kpool (sgl-project#42671). The overflow cases pass against main's exact rescan.
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.
Follow-up to #42178 addressing Ke's naming and readability comments.
Rename DSA page geometry throughout runtime consumers and fixtures:
slots_per_page→index_page_size,real_page_size→physical_page_size, and the k-pool ratiopool_size→kpool. Also usecfg.dcp_sizedirectly and explain why a logical page must own a whole pooled index group.No additional Mamba startup rejection:
mamba_track_gridalready uses LCM with the final tree page, including DCP widening and the k-pool logical page size. Requested intervals of 64/128 can therefore produce an aligned effective interval of 256. The existing startup validator remains.Validation: pre-commit,
git diff --check, rename equivalence, 48 source-extracted configuration checks, and focused LCM checks passed. Full unit/GPU tests were not run locally.CI States
Latest PR Test (Base): ⏳ Run #37512806213
Latest PR Test (Extra): ✅ Run #37512805411
Latest PR Test (AMD ROCm 10): ⏳ Run #37512806142