Skip to content

[kimi k3][pd disagg] support pp prefill + dcp decode with dspark - #40045

Merged
Qiaolin-Yu merged 16 commits into
mainfrom
qiaolin/dspark-pd-prefill-pp
Sep 20, 2026
Merged

Qiaolin-Yu merged 16 commits into
mainfrom
qiaolin/dspark-pd-prefill-pp

Conversation

@Qiaolin-Yu

@Qiaolin-Yu Qiaolin-Yu commented Sep 18, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

Input length / Concurrency TP8 PP1 input tokens/s TP4 PP2 input tokens/s Throughput change
8k / C16 9,667 11,654 +20.6%
8k / C64 9,658 11,556 +19.6%

Modifications

Accuracy Tests

aime26 verified

Speed Tests and Profiling

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
    • Common commands include /tag-and-rerun-ci, /tag-run-ci-label, /rerun-failed-ci
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): 🚫 Run #35496307454
Latest PR Test (Extra): ❌ Run #35496307325
Latest PR Test (AMD ROCm 10): 🚫 Run #35496307450

@Qiaolin-Yu Qiaolin-Yu changed the title [kimi k3][pd disagg] support prefill pp + dcp decode with dspark [kimi k3][pd disagg] support pp prefill + dcp decode with dspark Sep 18, 2026

@YAMY1234 YAMY1234 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.

Went through the three parts (K3/kimi_linear PP-aware aux capture, non-last-rank DSparkWorkerV2, draft-head slicing in send_kvcache_dcp). The logic looks consistent for prefill PP + decode DCP, and the deferred boundary-layer capture in K3 checks out. A few comments inline.

Could you also fill in Motivation / Modifications and add the eval numbers (prefill-PP + decode-DCP vs. PP1)? Since this touches the KV transfer path it'd be good to have them on record.

Comment thread python/sglang/srt/model_executor/model_runner.py Outdated
Comment thread python/sglang/srt/disaggregation/mooncake/conn.py
Comment thread python/sglang/srt/speculative/dspark_components/dspark_worker_v2.py
@Qiaolin-Yu Qiaolin-Yu added run-ci CI: run the baseline test suite on this PR bypass-fastfail labels Sep 20, 2026
@Qiaolin-Yu
Qiaolin-Yu requested a review from YAMY1234 September 20, 2026 01:11

@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.

LGTM, very clean

@kpham-sgl kpham-sgl added the release-highlight Candidate PR for release note highlight label Sep 20, 2026
@Qiaolin-Yu

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/unit/managers/test_disagg_idle_step_counters.py

@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/unit/managers/test_disagg_idle_step_counters.py:

🚀 ubuntu-latest (1 test): ✅ View workflow run

cd test/ && python3 registered/unit/managers/test_disagg_idle_step_counters.py

@Qiaolin-Yu

Copy link
Copy Markdown
Collaborator Author

@Qiaolin-Yu

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/unit/managers/test_disagg_idle_step_counters.py

@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/unit/managers/test_disagg_idle_step_counters.py:

🚀 ubuntu-latest (1 test): ❌ View workflow run

cd test/ && python3 registered/unit/managers/test_disagg_idle_step_counters.py

@Qiaolin-Yu

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/unit/managers/test_disagg_idle_step_counters.py

@github-actions

github-actions Bot commented Sep 20, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/unit/managers/test_disagg_idle_step_counters.py:

🚀 ubuntu-latest (1 test): ✅ View workflow run

cd test/ && python3 registered/unit/managers/test_disagg_idle_step_counters.py

@Qiaolin-Yu
Qiaolin-Yu merged commit f4c2563 into main Sep 20, 2026
69 of 169 checks passed
@Qiaolin-Yu
Qiaolin-Yu deleted the qiaolin/dspark-pd-prefill-pp branch September 20, 2026 07:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bypass-fastfail release-highlight Candidate PR for release note highlight run-ci CI: run the baseline test suite on this PR speculative-decoding

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants