Repository navigation
[Feat] kimi_k3: Merge the rest of the Kimi-K3.1 Day-0 branch - #48414
Merged
Merged
Conversation
Co-authored-by: Yuhao Yang <[email protected]> Co-authored-by: Khoa Pham <[email protected]> Co-authored-by: Baizhou Zhang <[email protected]> Co-authored-by: Shuwen Wang <[email protected]> Co-authored-by: Po-Han Huang <[email protected]> Co-authored-by: StarDuster <[email protected]> Co-authored-by: Yuwei An <[email protected]> Co-authored-by: Xiaoyu Zhang <[email protected]> Co-authored-by: Chunan Zeng <[email protected]> Co-authored-by: Mao Cheng <[email protected]> Co-authored-by: Ziyi Xu <[email protected]> Co-authored-by: Nitin Sai Bommi <[email protected]> Co-authored-by: Kurt Shuster <[email protected]> Co-authored-by: akhilg-nv <[email protected]>
sglang-bot
requested review from
BBuf,
FlamingoPg,
Fridge003,
HaiShaw,
Jialin,
JustinTong0323,
Qiaolin-Yu,
Ying1123,
alphabetc1,
ch-wan,
fzyzcjy,
hnyls2002,
ispobock,
merrymercy,
mickqian,
sufeng-buaa,
yctseng0211,
yhyang201,
yizhang2077 and
yuan-luo
as code owners
November 4, 2026 15:38
Contributor
|
Preview deployment for your docs. Learn more about Mintlify Previews.
💡 Tip: Enable Automations to automatically generate PRs for you. |
sglang-bot
requested review from
AniZpZ,
Edwardf0t1,
ShangmingCai,
hanming-lu,
huangtingwei9988,
hzh0425,
stmatengss and
xiezhq-hermann
as code owners
November 4, 2026 15:39
4 of 5 tasks
1 of 2 tasks
5 tasks done
3 of 5 tasks
4 of 5 tasks
This was referenced Nov 18, 2026
5 of 11 tasks
5 tasks done
4 of 11 tasks
3 of 5 tasks
This was referenced Nov 22, 2026
3 of 5 tasks
This was referenced Nov 30, 2026
4 of 5 tasks
1 of 3 tasks
2 of 6 tasks
This branch was successfully deployed
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.
Adds Kimi-K3.1 (
KimiK31ForConditionalGeneration) with its Day-0 serving stack: DSA with decode context parallelism, PD disaggregation, DFlash speculative decoding, pipeline-parallel prefill, HiSparse, and the model's fused kernels. Basic model support is on main (#48415); most of the rest landed through the port PRs below, and this PR now merges what remains.Model: https://huggingface.co/moonshotai/Kimi-K3.1-Pro
Merging this PR
This PR merges the remainder of the branch as it is, after a cleanup against main (details in #48414 (comment)):
Landing on main
A box is ticked once this branch has caught up with that port PR and its core change matches; what this branch still has beyond it is listed under the box. Each port PR opens with a "Port of #48414" section: what it takes from here and what it changed.
Ported
Decode context parallelism
DFlash drafter integration
resolve_mla_draft_compact_window), used by the megakernel path--speculative-draft-window-size(compact draft table); a PP stage without the draft keeps emptyDRAFT_RING/REQUEST_ROWstate slots ([Feat] dflash: Run DFLASH on a pipelined PD prefill #49648)External linker
Prefill context parallelism (split of #48504)
Kernels and backends
API, media, and scheduling
thinkingobject and map reasoning effort onto K3 tiers #48776Mamba
HiSparse
Into this branch
Adopted from main (not ports; caught up in their merge position like a port): #47960 replaces this branch's top-k tie order and cluster path. #47267 gathers the candidate top-k over
lm_head's own group; left here: the fused candidate all-gather (_fused_candidate_all_gather), run over that group.CI States
Latest PR Test (Base): 🚫 Run #44038600554
Latest PR Test (Extra): 🚫 Run #44038600553
Latest PR Test (AMD ROCm 10): 🚫 Run #44038600665
Tip
Base CI only covers the core cases, and its workload may not exercise your change. Use
/rerun-testto run the tests your change touches, or copy this prompt for an agent: