Skip to content

fix(dflash): account for DCP in draft KV pool sizing - #33912

Merged
kpham-sgl merged 1 commit into
sgl-project:mainfrom
milesial:agent/fix-dspark-draft-kv-accounting-v2
Aug 11, 2026
Merged

kpham-sgl merged 1 commit into
sgl-project:mainfrom
milesial:agent/fix-dspark-draft-kv-accounting-v2

Conversation

@milesial

@milesial milesial commented Aug 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

Motivation

DFLASH-family draft pools span the allocator's widened virtual location space under DCP, so each target-pool token requires dcp_size draft-pool rows. The layer-count fallback already applies that factor, but the exact geometry/dtype path added by #34234 bypasses the fallback and previously added only one draft row's cost.

This keeps the exact and fallback paths consistent without duplicating the geometry or dtype resolution now present on main.


CI States

Latest PR Test (Base): ❌ Run #31405218997
Latest PR Test (Extra): ❌ Run #31405213096

@milesial milesial changed the title fix(dspark): use draft KV geometry for pool sizing fix(dflash): use draft KV geometry and dtype for pool sizing Aug 6, 2026
@milesial
milesial marked this pull request as ready for review August 7, 2026 00:19
@milesial
milesial force-pushed the agent/fix-dspark-draft-kv-accounting-v2 branch from 2e8a754 to d4d4461 Compare August 7, 2026 00:22
@nvpohanh

nvpohanh commented Aug 7, 2026

Copy link
Copy Markdown
Collaborator

/tag-and-run-ci

@nvpohanh

Copy link
Copy Markdown
Collaborator

@milesial could you fix the conflicts? thanks!

@milesial milesial changed the title fix(dflash): use draft KV geometry and dtype for pool sizing fix(dflash): account for DCP in draft KV pool sizing Aug 10, 2026
@milesial
milesial force-pushed the agent/fix-dspark-draft-kv-accounting-v2 branch from d4d4461 to 5cc1ed9 Compare August 10, 2026 15:42
@milesial

Copy link
Copy Markdown
Contributor Author

Rebased. #34234 landed in-between which fixed the same issue but forgot about DCP handling

@kpham-sgl kpham-sgl self-assigned this Aug 10, 2026

@kpham-sgl kpham-sgl left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch, thank you!

@kpham-sgl

Copy link
Copy Markdown
Collaborator

/rerun-test test/registered/dcp/test_kimi_linear_dcp_dspark4.py

@github-actions

github-actions Bot commented Aug 11, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/dcp/test_kimi_linear_dcp_dspark4.py:

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

cd test/ && python3 registered/dcp/test_kimi_linear_dcp_dspark4.py

@kpham-sgl
kpham-sgl merged commit d59c1dd into sgl-project:main Aug 11, 2026
103 of 119 checks passed
vstone-w pushed a commit to ClownBin/sglang that referenced this pull request Aug 12, 2026
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants