Repository navigation
[DSA] Fix pooled page table refresh for target verify CUDA graph replay - #42750
Merged
Merged
Conversation
mmangkad
requested review from
1am9trash,
Fridge003,
HaiShaw,
YAMY1234,
hubertlu-tw,
kkHuang-amd and
rainj-me
as code owners
October 6, 2026 10:17
Contributor
Author
|
/rerun-test test/registered/e2e/models/test_glm53_flash_b200.py test/registered/e2e/models/test_glm53_flash_h200.py test/registered/kernels/ops/attention/test_dsa_metadata_replay.py |
Contributor
|
🚀 🚀 🚀 |
4 of 5 tasks
Collaborator
|
Force merge to unblock CI |
nvpohanh
added a commit
to elvischenv/sglang
that referenced
this pull request
Oct 6, 2026
Picks up sgl-project#42750, which fixes the unrelated CI failure https://github.com/sgl-project/sglang/actions/runs/37420417346/job/112193725209 (TestGLM53FlashB200DFlash2 GSM8K below threshold, tracked in sgl-project#42749). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nvpohanh
added a commit
to peilii/sglang
that referenced
this pull request
Oct 6, 2026
Picks up sgl-project#42750, which fixes the unrelated CI failure https://github.com/sgl-project/sglang/actions/runs/37420426706/job/112192530393 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nvpohanh
added a commit
to ajit283/sglang
that referenced
this pull request
Oct 6, 2026
Picks up sgl-project#42750, which fixes the unrelated CI failure https://github.com/sgl-project/sglang/actions/runs/37431477801/job/112163452489 (test_dsa_metadata_replay TARGET_VERIFY mismatch). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
nvpohanh
added a commit
to nvjullin/sglang
that referenced
this pull request
Oct 6, 2026
Picks up sgl-project#42750, which fixes the unrelated CI failure https://github.com/sgl-project/sglang/actions/runs/37420476949/job/112196076546 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
5 tasks
4 of 5 tasks
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
Fixes wrong DSA indexer page ids in speculative verify under CUDA graphs, which dropped
TestGLM53FlashB200DFlash2below its GSM8K threshold. Caused by a semantic conflict between two PRs:build_pooled_page_table_64to return logical page ids (real page id // pool_size).update_pooled_paged_mqa_metadatathat writes the undividedreal_page_table[:, ::pool_size].On main, target-verify replay therefore passes page ids
pool_size× too large (4× for GLM-5.3-Flash).Modifications
Refresh the table with
torch.floor_divide(real_page_table[:, ::pool_size], pool_size, out=pooled_real_page_table). This matchesbuild_pooled_page_table_64exactly and writes in place into the captured buffer in a single kernel.Accuracy Tests
test_glm53_flash_b200.py::TestGLM53FlashB200DFlash2, 4× GB300, GSM8K (500 questions, 20-shot, threshold 0.93):test_dsa_metadata_replay.pyfails on main (1596/12288 mismatched pooled page-table entries inTARGET_VERIFY) and passes after.Speed Tests and Profiling
Per-call cost of the refresh on GB300 (24×2048 int32 table,
pool_size=4):build_pooled_page_table_64+copy_floor_divide(..., out=)(this PR)CI States
Latest PR Test (Base): ❌ Run #37448838203
Latest PR Test (Extra): ❌ Run #37448837937
Latest PR Test (AMD ROCm 10): ❌ Run #37448838279