Skip to content

[DSA] Fix pooled page table refresh for target verify CUDA graph replay - #42750

Merged
nvpohanh merged 2 commits into
mainfrom
mmangkad/fix-dsa-kpool-verify-pooled-page-table
Oct 6, 2026
Merged

nvpohanh merged 2 commits into
mainfrom
mmangkad/fix-dsa-kpool-verify-pooled-page-table

Conversation

@mmangkad

@mmangkad mmangkad commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Fixes wrong DSA indexer page ids in speculative verify under CUDA graphs, which dropped TestGLM53FlashB200DFlash2 below its GSM8K threshold. Caused by a semantic conflict between two PRs:

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 matches build_pooled_page_table_64 exactly 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):

GSM8K
Before 0.892
After 0.930

test_dsa_metadata_replay.py fails on main (1596/12288 mismatched pooled page-table entries in TARGET_VERIFY) and passes after.

Speed Tests and Profiling

Per-call cost of the refresh on GB300 (24×2048 int32 table, pool_size=4):

Variant Time
build_pooled_page_table_64 + copy_ 55.0 µs
floor_divide(..., out=) (this PR) 16.9 µs

CI States

Latest PR Test (Base): ❌ Run #37448838203
Latest PR Test (Extra): ❌ Run #37448837937
Latest PR Test (AMD ROCm 10): ❌ Run #37448838279

@mmangkad

mmangkad commented Oct 6, 2026

Copy link
Copy Markdown
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

@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

🚀 4-gpu-b200 (1 test): ✅ View workflow run

cd test/ && python3 registered/e2e/models/test_glm53_flash_b200.py

🚀 8-gpu-h200 (1 test): ✅ View workflow run

cd test/ && python3 registered/e2e/models/test_glm53_flash_h200.py

🚀 1-gpu-h100 (1 test): ✅ View workflow run

cd test/ && python3 registered/kernels/ops/attention/test_dsa_metadata_replay.py

@nvpohanh

nvpohanh commented Oct 6, 2026

Copy link
Copy Markdown
Collaborator

Force merge to unblock CI

@nvpohanh
nvpohanh merged commit 45db430 into main Oct 6, 2026
115 of 131 checks passed
@nvpohanh
nvpohanh deleted the mmangkad/fix-dsa-kpool-verify-pooled-page-table branch October 6, 2026 10:57
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>
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.

2 participants