core: Kimi-K3 decode/prefill scaffolding (distributed weight store, DeepEP-LL exchange, resident MoE) - #314
Closed
Andrewxu313 wants to merge 1 commit into
Closed
core: Kimi-K3 decode/prefill scaffolding (distributed weight store, DeepEP-LL exchange, resident MoE)#314Andrewxu313 wants to merge 1 commit into
Andrewxu313 wants to merge 1 commit into
Conversation
…eepEP-LL exchange, resident MoE, --k3-moe-exchange) Core-only slice of the K3 support branch (PR_MERGE_POLICY: scaffolding layer): - core/ C++: Weights_Storage + distributed_weight_daemon (compact per-node host store), HtoD_Engine, GPU_Weight_Buffer, KV_Storage host-paged views, batchgen binding. - batchgen/moe/: deepep_ll.py (DeepEP low-latency EP exchange), marlin_grouped_moe, streamed_sp8_mxfp4, k3_prefill_dequant_once, fused_moe_mxfp4_resident, routing/cuda_routing. - worker/ (decode/prefill/kv_manager/boundary), server/ (server_args --k3-moe-exchange, worker_manager, worker_readiness, batch_scheduler), kv_cache/, continuous_batching, batchgen_worker. - triage: planner/base_planner, sequence, server_worker_main_loop, config, decode_dp_group, kernel_compat, op_builder/core_engine, ckpt_converter, install_deps, docs/troubleshooting.
16 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.
Description
Core scaffolding for Kimi-K3 (2.8T, 93 layers, 896 MXFP4 experts, top-16) decode + prefill on 2×8 H200 — the runtime/serving layer only. Model + kernels are the companion PR (
k3-model-pr, stacked on this).Motivation
Land K3 day-0 support. K3 needs scaffolding changes a
modelPR may not touch (PR_MERGE_POLICY §2.5), split here: the compact distributed host-weight store + daemon, the DeepEP low-latency EP-exchange primitive, resident-MoE plumbing, and the opt-in--k3-moe-exchange/--distributed-weight-configserver flags. Interim release: decode 1.32× / prefill 1.18× vs SGLang on H200 (default exchange = NCCL; 1.5× tracked as follow-up).Type of Change
core— change scheduling/serving/runtime scaffoldingFile changes
Full list (every file traces to K3 scaffolding):
Key clusters:
core/**C++ engine (Weights_Storage +distributed_weight_daemon, HtoD_Engine, GPU_Weight_Buffer, KV_Storage host-paged views, binding);batchgen/moe/**(newdeepep_ll.pyDeepEP-LL exchange, marlin_grouped_moe, streamed_sp8_mxfp4, k3_prefill_dequant_once, resident MoE, routing);worker/**,server/**(server_args--k3-moe-exchange+--distributed-weight-config, worker_manager, worker_readiness),kv_cache/**,continuous_batching.py,batchgen_worker.py; triage (planner/base_planner, sequence, config, decode_dp_group, kernel_compat, op_builder, install_deps, docs/troubleshooting).Checklist
k3-model-prundertests/).docsPR timed with merge.PR Merge Policy Contract — pre-merge checklist
git diff --stat mainreviewed; every file traces to K3 scaffolding (§3.1).core) ticked; core is the only type that may touch scaffolding (§2.5).debug_*/scratch_*/tmp_*scripts in a production package (§1.1).test_*.pyadded inside the runtime package (§1.2).BATCHGEN_*env guards inbatchgen_worker.pyare intentionally kept for the interim release and documented inbatchgen_design/model_support/kimi_k3/ENV_KNOBS.md; conversion tobatchgen_debug/server-args is the next optimization pass.BATCHGEN_ENABLE_ALL_TO_ALLstays by decision. CI hygiene is report-only.print()inserver_worker_main_loop.py→ guarded logger next pass (advisory).