Repository navigation
[Spec] Model-agnostic last-stage draft embedding under pipeline parallelism - #39643
Merged
YAMY1234 merged 9 commits intoSep 28, 2026
Merged
Conversation
YAMY1234
force-pushed
the
pp-spec-generic-draft-embedding
branch
from
September 15, 2026 21:02
6b484d9 to
cb6dca9
Compare
10 tasks
…lelism Under pipeline parallelism the EAGLE/MTP draft runs only on the last stage, but the target's input embedding lives only on the first stage. Sharing target.get_embed_and_head() therefore raises on the last stage for every model whose embed_tokens is a PPMissingLayer. Each model currently works around this in its own file (Qwen3.5 loads its own copy, DeepSeek/GLM materialize a second embedding on the target), which is why the PP+spec gates are model allowlists. - speculative/pp_draft_embedding.py: PP-safe embed/head resolution, and a loader that reads only the safetensors shard holding the checkpoint's input embedding into the draft's own embed_tokens parameter. - eagle_worker_v2: use it in init_lm_head when this stage does not own the target embedding. No model file changes. Tracking: sgl-project#39634
…ookup, narrower fallback - Resolve checkpoint files through DefaultModelLoader._prepare_weights so ModelScope, --download-dir, load_format and the .bin fallback behave exactly as for the target; skip loading under load_format=dummy. - Find the draft's input embedding by type (VocabParallelEmbedding that is not ParallelLMHead), falling back to embed_tokens / word_embeddings / tok_embeddings / embed names. - Only treat AttributeError as "embedding not on this stage" when the target's input embedding really is a PPMissingLayer; re-raise otherwise. - Without an index, choose the key over the whole checkpoint and never pick a layers.<n>. (MTP/NextN) embedding. - Route multi_layer_eagle_worker_v2 and frozen_kv_mtp_worker_v2 through the same helper.
… SGLANG_ENABLE_PP_SPEC paths The decode-side PP x spec path landed with its own inline checkpoint read of the draft embedding in eagle_worker_v2 (type-scan for the draft's VocabParallelEmbedding, candidate tensor names, DefaultModelLoader._prepare_weights). Replace it with the shared pp_draft_embedding module so both the env-gated path and the PD-prefill path use one loader; fold in its re-openable load-format guard and its extra checkpoint spellings, and point the embed-scan e2e test at the module.
YAMY1234
force-pushed
the
pp-spec-generic-draft-embedding
branch
from
September 17, 2026 08:20
2cd5994 to
af403c5
Compare
YAMY1234
marked this pull request as ready for review
September 20, 2026 21:40
YAMY1234
requested review from
Qiaolin-Yu,
Ying1123,
hnyls2002,
kpham-sgl,
merrymercy and
pyc96
as code owners
September 20, 2026 21:40
4 of 5 tasks
Collaborator
Author
|
/tag-and-rerun-ci |
…_head A PPMissingLayer embedding already identifies the stage that must load the draft's own embedding, and a pp_size == 1 target never returns embed=None, so the callers no longer read the PP group at all.
The list existed because only some model families could hand the draft an embedding on the last stage. The checkpoint loader does that for every model, and a draft without any embedding fails in the loader with an explicit error, so the gate no longer encodes a real constraint.
3 of 4 tasks
Every sglang draft embeds through VocabParallelEmbedding, so the by-name fallback only served the unit tests' nn.Embedding stand-ins. The tests now build the real class under a published topology; the pass-through and word_embeddings cases are dropped and the two load_format cases merged.
Collaborator
Author
Resolve the allowlist conflict from sgl-project#40501: this branch removes _PP_EAGLE_SUPPORTED_ARCHITECTURES entirely, so the Qwen4Exp entry and its allowlist test go with it.
This was referenced Sep 23, 2026
This was referenced Sep 26, 2026
YAMY1234
added a commit
to YAMY1234/sglang
that referenced
this pull request
Sep 28, 2026
Brings in sgl-project#39643 (model-agnostic last-stage draft embedding, f209e67), which TestPPSpecHybridConsistency depends on: without it the PP1 draft worker raised "none of (model.embed_tokens.weight, ...) found in checkpoint at Qwen/Qwen3.5-4B". No conflicts; merged tree = main + the 18 PR files.
This was referenced Sep 28, 2026
3 of 5 tasks
arbi-dev
added a commit
to arbicity/sglang-turbo
that referenced
this pull request
Oct 7, 2026
…5.21 (#12) * [Diffusion] Fuse LongCat GELU+cat and support Edit-Turbo BCG (sgl-project#40384) * [Diffusion] Fuse lossless Wan VAE post-ops for LongLive 2 I2V (sgl-project#40405) * Fix TBO child batch missing dp_spec_prefill_coordination_applied (sgl-project#41096) * [AMD] Tune Triton sparse MLA on gfx950 and make split-K workspaces graph-safe (sgl-project#39059) * [Diffusion] Fuse lossless LingBot World FP32 normalization (sgl-project#40425) * [AMD][DSV4] fp8 unified_kv decode: wave-aware split count past 40 tokens (sgl-project#40878) Signed-off-by: Yanfei Wang <[email protected]> * [AMD] Add tuned dsv4 shape (sgl-project#40996) * [Diffusion] Enable lossless SANA-Video eager conv fusions for 12.6% lower latency (sgl-project#40388) * [Diffusion] migrate the whole _register_configs from registry.py to the model own config file (sgl-project#40612) * Refactor the Cute-DSL AR fusion to support DeepseekV2 archs (GLM-5.3, etc.) (sgl-project#39816) Co-authored-by: Mohammad Angkad <[email protected]> Co-authored-by: Mohammad Miadh Angkad <[email protected]> * [HiCache] Make host reclamation independent of transfer order (sgl-project#40512) * [Refactor] Retire the model-specific Kimi K3 kernel namespace (sgl-project#40922) * [diffusion] update code owner (sgl-project#41130) * [NPU] Update CANN version to 9.1.0 (sgl-project#40524) * [PD] Enable deferred decode-side KV release by default (sgl-project#41023) Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * [chore] surface the cookbook to users who pip install sglang (sgl-project#40866) Co-authored-by: Mick Qian <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> * fix(sampling): validate sampling_seed is an int within int64 range (sgl-project#28960) Signed-off-by: Ting Sun <[email protected]> * [HiCache] Demote SWA KV to host on write_back eviction instead of dropping it (sgl-project#40712) Co-authored-by: Claude Fable 5 <[email protected]> * [AMD] ci: move the Miles ROCm 7.2 nightly build to 7.2.4 (sgl-project#40387) Co-authored-by: Zhiyao Jiang <[email protected]> * [Quant] ModelOpt mixed precision: dispatch block-FP8 MoE experts and derive the block size (sgl-project#38726) Co-authored-by: Claude Fable 5.1 <[email protected]> * fix: Triton 3.8 compatbility to support DSV4.1-Flash in CUDA 13.4 image (Rubin) (sgl-project#40805) * Support unified memory decode host pools (sgl-project#39478) Co-authored-by: yhzhuang <[email protected]> Co-authored-by: Lianmin Zheng <[email protected]> Co-authored-by: Yonghao Zhuang <[email protected]> Co-authored-by: Cheng Wan <[email protected]> * [Fix] Skip the DCP target-verify MLA kernel during FlashInfer autotune (sgl-project#41138) Co-authored-by: Mohammad Angkad <[email protected]> * [DP attention] Publish DP buffer sizes from a ForwardBatch (sgl-project#40858) Co-authored-by: hanminglu <[email protected]> Co-authored-by: oss-sync bot (pranjalssh) <[email protected]> * [Test] Run the Qwen3.5 Triton DCP nightly with the radix cache enabled (sgl-project#41155) * [AMD] GLM-5.2 MI355X MXFP4: bump image to 20260923 daily (sgl-project#41109) * [Fix] Complete the deferred FFN all-reduce before a pipeline-parallel send (sgl-project#41079) * [Fix] Complete the deferred FFN all-reduce before deepstack addition and aux hidden-state capture (sgl-project#41080) Co-authored-by: Mick Qian <[email protected]> * [Refactor] Pass each layer stack's output through a communicator exit (sgl-project#41081) * [Refactor] Share the MoE output all-reduce between models (sgl-project#41097) * [Fix] Step-3.5: stop dense layers from summing their output twice under DP attention (sgl-project#41082) * [Fix] Broadcast requests along attention CP before attention TP (sgl-project#41083) * [Refactor] Split prepare_attn into a reduction step and per-quant-format residual steps (sgl-project#41084) * [AMD] Add .co for deepseek v4 fp8 decode kernel and add group decode opt (sgl-project#41120) * [qwen 3.8 next] Fuse Qwen PLE gate and convolution preparation for target verify (sgl-project#40041) * MiniMax-M3: MXFP8 dense-only block convert + aiter MXFP8 MoE on gfx950 (sgl-project#36574) Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: mikevin920 <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: YC Yen-Ching Tseng <[email protected]> * MoE: small-batch sorting path with fused mxfp8 quantisation (sgl-project#36559) Co-authored-by: mikevin920 <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: YC Yen-Ching Tseng <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> * [DSV4] Fix TRTLLM uniform FP8 KV memory budgeting (sgl-project#41090) * [Fix] Patch set_dp_buffer_len_from_batch in DP spec prefill coordination test (sgl-project#41162) * [Docs] Enable Qwen3.8 Flash Next NVIDIA NVFP4 on B200/B300/GB300 (sgl-project#41046) * [DSV4] Size compressed pools from one per-ratio table in DSV4PoolConfigurator (sgl-project#41049) * [Bugfix] Align DeepSeek-V4.1 reasoning effort budgets (sgl-project#39929) Co-authored-by: fengtinglei <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> * Fix mixed chunk prefill with DP speculative coordination (sgl-project#41179) * Add 8-node AllReduce/AllGather and MNVLS algorithm support to MSCCL++ (sgl-project#37442) Co-authored-by: Caio Rocha <[email protected]> * [HiCache] Batch buffer-only KV backups within each flush (sgl-project#40960) Co-authored-by: oss-sync bot (pranjalssh) <[email protected]> Co-authored-by: Jialin Ouyang <[email protected]> * [PD] Add a `none` decode retraction backup and subclass seams in the PD queues (sgl-project#41103) Co-authored-by: metamergebot <[email protected]> Co-authored-by: Zhiqiang Xie <[email protected]> * [Score API] Setwise Scoring Support (sgl-project#38965) * [DSV4] Account for FlashMLA physical KV page padding in memory budgets (sgl-project#41091) Co-authored-by: hnyls2002 <[email protected]> * [mem_cache] Drop `is_insert` from `cache_finished_req`; release rows from `release_kv_cache` (sgl-project#40988) * [AMD] Restore non-DCP Mamba checkpoint donation to fix agent-mode cache hit at high conc with HiCache (sgl-project#40907) * [diffusion] feat: add opt-in SRT prompt enhancement to image and video APIs (sgl-project#41095) Co-authored-by: Mick Qian <[email protected]> * Support XQA backend for SpecDec verify (sgl-project#32269) * [PD] Honor gracefully_exit in disaggregation event loops and keep non-zero-rank launchers alive on SIGTERM (sgl-project#40793) Co-authored-by: metamergebot <[email protected]> Co-authored-by: Shiyan Deng <[email protected]> * [Perf] Lazy-load built-in model definitions and nixl_ep at startup (sgl-project#41061) Co-authored-by: metamergebot <[email protected]> Co-authored-by: Yongji Wu <[email protected]> * [CI] Move GLM-5.2 layer-split test to extra-b-test-8-gpu-b300 (sgl-project#41207) Co-authored-by: Mohammad Angkad <[email protected]> * [Fix] Keep the target's DP sync slot in draft scopes (sgl-project#41062) Co-authored-by: Mohammad Angkad <[email protected]> Co-authored-by: Cheng Wan <[email protected]> * [feat] add a system one compatible /v1/systemone route (sgl-project#41208) * fix(openai): reject request-supplied chat_template by default (sgl-project#28135) Signed-off-by: Ting Sun <[email protected]> Co-authored-by: Xinyuan Tong <[email protected]> * [AMD] Fix int32 offset overflow in Triton DSv4 KV store kernels (sgl-project#41159) * [DeepEP v2] Let a model package supply its per-rank prefill dispatch bound (sgl-project#41201) Co-authored-by: Xingyu Liu <[email protected]> * [diffusion] model: support Ming-Image Design and Design-Layer (sgl-project#41067) Co-authored-by: Mick Qian <[email protected]> * [HiCache] Give trailing sidecar storage transfers a contiguous prefix_keys chain (sgl-project#40456) * [HiCache] fix: Drain pending backups before internal Mamba write-back (sgl-project#41092) * [AMD] Integrate Aiter MegaMoEv2 for DeepSeek-V4 (sgl-project#35619) * [Fix] Complete the all-reduce when the flashinfer fused norm declines a batch (sgl-project#41193) * [Fix] Plan NextN / MTP draft layers as one-layer models and fix the Bailing V2 NextN draft (sgl-project#41194) * [Fix] Stop counting a deferred FFN sum more than once: replicated TP1 shared expert, dense reduce_scatterv (sgl-project#41195) * [Refactor] Carry a deferred FFN all-reduce as UnreducedOutput and complete it in the next layer without the fused kernel (sgl-project#41196) * [Refactor] Leave the FFN reduction to the next layer under attention DP (sgl-project#41197) * [Refactor] Move Step-3.5, GLM5-Next, Dots3, MiniMax-M3 and Qwen3.5 onto ffn_exit (sgl-project#41198) * [Refactor] Build prepare_mlp and the layout moves from named steps (sgl-project#41191) * [Refactor] Take a layer's last-layer fact from its scatter-mode plan (sgl-project#41199) * [Refactor] Decide an FFN exit's completion once and declare the group it owes (sgl-project#41200) * [XPU] Disable test_ngram_corpus on XPU and extend XPU CI path filter (sgl-project#41224) * [Diffusion] Fix AttributeError in grouped forward_batch by installing the residency manager (sgl-project#34417) Co-authored-by: mickqian <[email protected]> * [diffusion] Enable lossless Cosmos3 Super T2I QK fusion on Hopper TP2 (sgl-project#40486) * Revert "[NPU] Fuse FIA KV-cache K/V writes into one npu_scatter_pa_kv_cache call" (sgl-project#41132) * [ROCm][Bugfix] Keep quantization for mixed Quark Qwen3.5 MTP checkpoints (sgl-project#39064) Co-authored-by: Cursor <[email protected]> Co-authored-by: jacky.cheng <[email protected]> * fix(multimodal): return 400 for corrupt image inputs (sgl-project#28131) Signed-off-by: Ting Sun <[email protected]> Co-authored-by: Justin Tong <[email protected]> Co-authored-by: Xinyuan Tong <[email protected]> * [unified-memory] Honor move gates in float relocation and size auto HiCache from host capacity (sgl-project#41248) Co-authored-by: Yonghao Zhuang <[email protected]> * Fix multimodal feature offload races (sgl-project#40621) Co-authored-by: cctry <[email protected]> Co-authored-by: Yongji Wu <[email protected]> Co-authored-by: Zhiqiang Xie <[email protected]> * [Sampling] Stream sampling masks as per-request arrays (sgl-project#40986) * [Rust frontend] Decode input_ids without untagged buffering (sgl-project#41246) Co-authored-by: Jialin Ouyang <[email protected]> Co-authored-by: Lucia Fang <[email protected]> * [Test] Remove dead eval modules and point GSM8K/MMLU docs to sgl-eval (sgl-project#41215) * [Test] Add in-process sgl-eval adapter and move validated GSM8K tests to it (sgl-project#41216) * [LoRA] Size dense row/column-parallel LoRA buffers from the base linear's real shard (sgl-project#39379) * [KVCache] Support lmcache unified radix cache (sgl-project#38652) Signed-off-by: chunxiaozheng <[email protected]> Co-authored-by: Yuwei An <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [sglang][lora] Support DP attention in LoRA backends (sgl-project#36389) Co-authored-by: Ethan (Yusheng) Su <[email protected]> * dsv4.1-amd: gfx950 MXFP8 matmul kernels and fp8-grid producers (sgl-project#41018) Co-authored-by: Claude Opus 5.5 <[email protected]> * [Test] Route all sgl-eval benchmarks through run_sgl_eval and deprecate run_eval (sgl-project#41280) * [Fix] Fix cpu CI fail introduced by pr sgl-project#38652 (sgl-project#41287) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [PD] Share one head-slice helper across mooncake, mori, and nixl (sgl-project#39660) Co-authored-by: BBuf <[email protected]> * [misc] Call all_gather_single / reduce_scatter_single to drop torch deprecation warnings (sgl-project#41284) * [Test] Remove unit tests that only mirror implementation or never run in CI (sgl-project#41286) * [DCP] Use logical token capacity for PD admission and load reporting (sgl-project#39731) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Khoa Pham <[email protected]> * [CI] Harden `/rerun-test` dispatch and partitioning (sgl-project#41285) * [diffusion] Fuse lossless Klein packed QK RMSNorm and RoPE on Hopper (sgl-project#40490) * [DSv4.1] Move the ratio-1/2 index top-k ops into kernels/ops/attention/dsv4 (sgl-project#41291) Co-authored-by: DarkSharpness <[email protected]> * [diffusion] model: support Anima Base v1.0 (sgl-project#41011) Co-authored-by: Mick Qian <[email protected]> * [DSA] Chunk the kpool indexer MQA logits by query rows under a free-memory budget (sgl-project#40854) Co-authored-by: Mohammad Angkad <[email protected]> * [PD] fix: cache resumed decode-radix requests from root instead of an unlocked re-match (sgl-project#41261) * [Test] Remove more unit tests that mirror implementation or never run in CI (sgl-project#41297) * [ROCm][Perf] aiter: page-level KV view for gfx950 fp8 page-64 asm prefill (sgl-project#36505) * [MemCache] Unify component eviction cursors and lock receipts (sgl-project#41276) Co-authored-by: Lu Fang <[email protected]> * [diffusion] fix: fix Qwen-Image 2.1 default RGBA output (sgl-project#41150) Co-authored-by: jacky.cheng <[email protected]> * [diffusion] fix: copy small files into overlay materialized trees instead of linking them (sgl-project#41298) Co-authored-by: Mick Qian <[email protected]> * [Refactor] Restore logical kernel groups and test organization (sgl-project#41243) * [sgl-router] Track input_ids forwarding outcomes per chat request (sgl-project#41185) Co-authored-by: Kan Wu <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [DSv4.1] Move the low-ratio index top-k into dsv4/low_ratio_indexer (sgl-project#41125) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> Co-authored-by: hnyls2002 <[email protected]> * [DSA] Fix the pooled-indexer breakable prefill bridge under DP attention (sgl-project#41311) Co-authored-by: Mohammad Angkad <[email protected]> * [Score API] Setwise scoring: CausalLM support (batched + --enable-mis) (sgl-project#41188) * [Perf] Mamba2 selective_state_update up to 2x faster on B200 via 8x1 launch config for dstate 128 (+7.5% Nemotron-3-Super serving) (sgl-project#41223) Co-authored-by: hexu.zhao <[email protected]> * [DeepSeek V4.1] Add DeepSelect JIT kernel. (sgl-project#40556) Co-authored-by: DarkSharpness <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * [Refactor] Choose prepare_attn / prepare_mlp steps and fused kernels at construction (sgl-project#41252) * [Refactor] Drive an FFN exit's flags and its completion from one selection (sgl-project#41253) * [Refactor] Declare at construction the layers whose FFN completes its own reduction (sgl-project#41254) * [Refactor] Run the LayerNorm SP region's boundary steps in the communicator itself (sgl-project#41255) * [Refactor] Pick the two-batch-overlap split's layout moves once and remove execute (sgl-project#41256) * [Refactor] Choose a dense layer's boundaries under attention DP from both sides' declarations (sgl-project#41257) * [CI] Add __main__ entry to test_deep_select.py (sgl-project#41341) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [sgl-router] Book the input_ids forwarding outcome only for built bodies (sgl-project#41342) Co-authored-by: Claude Fable 5 <[email protected]> * [CI] Move DeepSelect into the attention kernel group to fix the namespace test (sgl-project#41349) Co-authored-by: Mohammad Angkad <[email protected]> * Pin triton_kernels num_warps for MXFP4 MoE below Hopper (6x gpt-oss decode on RTX 4090) (sgl-project#41292) Co-authored-by: Claude Fable 5.1 <[email protected]> * [CI] Merge the Kimi-Linear PD DCP4 nightly tests and drop exact-token parity (sgl-project#41321) * [AMD] Fix jit broken on rocm env (sgl-project#41356) * Make sliding-window caching and speculative batch padding extensible (sgl-project#41325) Co-authored-by: Lu Fang <[email protected]> Co-authored-by: jasonjk-park <[email protected]> * [MemCache] Fix LMCache component cursors and per-cache backend selection (sgl-project#41328) Co-authored-by: Lu Fang <[email protected]> * [AMD] Honor an explicit triton moe_runner_backend for mxfp8 on ROCm (sgl-project#41377) * dsv4.1-amd: KV cache layouts, FP4 indexer, compressor and router kernels (sgl-project#41019) Co-authored-by: x <x> * [sgl-router] Take SGLang's render defaults: --default-chat-template-kwargs and thinking/effort envs (sgl-project#41221) Co-authored-by: Kan Wu <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [mem_cache] Never free the protected prefix on request release (sgl-project#41312) * [DSV4.1][HiCache] fix: wait for the layer transfer before reading low-ratio index-K (sgl-project#41345) * [Diffusion] Preserve per-sample rollout trajectories across multi-output merge (sgl-project#34416) Co-authored-by: aimicahchen <[email protected]> * [kv-shard 3/4] Enable Control Plane B (sgl-project#39964) Co-authored-by: Zhangheng <[email protected]> * [qwen 3.8 next] Fuse small CUDA graph input buffer copies (sgl-project#41166) * [KDA+Kimi K3] Speed up SANA-Video residual gate add on H200 (sgl-project#41305) Co-authored-by: kernel-design-agents <[email protected]> * [mem_cache] Replace `cache_finished_req` with `insert_req`; `release_kv_cache` frees and unpins (sgl-project#41281) * [diffusion] feat: support in-place lora merge/unmerge under layerwise offload (sgl-project#36192) * [diffusion] feat: minimax-h3 spectrum skip-step + fused RMSNorm/AdaLN (sgl-project#35684) * [diffusion] feat: add MiniMax-H3 to ComfyUI integrated mode (sgl-project#35990) * [Diffusion] Apply latent-ids and packing to caller-provided initial latents (sgl-project#34418) Co-authored-by: aimicahchen <[email protected]> Co-authored-by: WenhaoZhang <[email protected]> * [diffusion] fix: lora-wrapped linears crash qwen-image and minimax-h3 inference (sgl-project#41272) Signed-off-by: rockdu <[email protected]> * [diffusion] fix: run an all-valid attention mask on the backend's unmasked kernel (sgl-project#41309) Co-authored-by: Mick Qian <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [VLM] Introduce FA4 into ViT for SM100/SM103 (sgl-project#41344) Co-authored-by: luoyuan.luo <[email protected]> * [bench] Take each request's prompt length from the server (sgl-project#39889) Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Xiaoyu Zhang <[email protected]> * [Diffusion] Reuse bit-exact packed SwiGLU for Ming-Image (sgl-project#41266) * Add MiniMax arch fallback to auto parser resolution (sgl-project#40930) * [HiCache] Add the page-unified KV load-back JIT kernel (sgl-project#39726) Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: huangtingwei <[email protected]> Co-authored-by: Zhangheng <[email protected]> * [AMD] Update v4 cookbook for megamoe, fp8 kv attn, BCG (sgl-project#41458) * [PD] Fan drain abort ACKs out to every decode peer of the room (sgl-project#41402) Co-authored-by: Claude Fable 5 <[email protected]> * [Spec] Add LiLiCorr: a candidate-lattice reranker for DFlash drafts (sgl-project#37462) Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]> Co-authored-by: kpham-sgl <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * Port chat_parsing core (sgl-project#40477) Co-authored-by: Yoni Gozlan <[email protected]> * [Refactor] Choose the boundaries of plain-TP dense layers and MoE layers from declarations (sgl-project#41417) * [Refactor] Give the fused prepare_mlp kernels an explicit contract (sgl-project#41418) * [Refactor] Choose the LayerNorm SP region's and input-scattered batches' steps from declarations (sgl-project#41419) * [Refactor] Run every batch of a layer from one BoundarySteps (sgl-project#41420) * [Refactor] Choose a GQA prefill CP extend's steps from declarations (sgl-project#41421) * [Fix] Keep one copy of CP-replicated rows in the DP gather (sgl-project#41422) * [Fix] Gather a dense FFN's input across attention DP and CP in one DP sum (sgl-project#41423) * [Refactor] Choose fully-DP dense and DSA / MLA prefill CP layers' steps from declarations (sgl-project#41424) * [Refactor] Run MHC layers on the shared boundary steps with MHC's residual operations (sgl-project#41425) * [Refactor] Run two-batch-overlap layers on the declared boundaries (sgl-project#41426) * [Refactor] Let the MoE declare whether its skipped reduction is one TP all-reduce (sgl-project#41427) * [Refactor] Publish the LoRA token layout from the batch's FFN input rows (sgl-project#41428) * [Refactor] Build each decoder boundary from the declarations of its two sides (sgl-project#41429) * [Refactor] Nemotron-H: build each layer's boundaries from its stage and the previous one (sgl-project#41430) * [Refactor] Move CuTe DSL-fused layers onto the declared boundaries and FFN-exit kernel entries (sgl-project#41431) * [Fix] Run MoE layers under attention DP and GQA prefill CP on the declared DP × CP gather (sgl-project#41432) * [Fix] Falcon-H1: count the Mamba mixer's output once under tensor parallelism (sgl-project#41433) * [Refactor] Falcon-H1: complete the FFN's sum through ffn_exit (sgl-project#41434) * [Refactor] Choose MoE layers' boundaries from declarations when moe_dp_size equals attn_cp_size (sgl-project#41435) * [Fix] LongCat-Flash under attention DP: branch and merge the dense FFNs through the communicators (sgl-project#41436) * [Refactor] Step-3.5: complete the dense MLP's sum through ffn_exit (sgl-project#41437) * [Refactor] Choose every layer's boundaries from declarations and remove the scatter-mode selection (sgl-project#41438) * [Refactor] Split the layer communicator into a package (move only) (sgl-project#41439) * [Refactor] Declare each stage's residual read and update, and give each stage its own entry (sgl-project#41440) * [Refactor] Build the boundary into any stage with one construction (sgl-project#41441) * [Refactor] Give a layer its CuTe DSL kernels at construction instead of a subclass (sgl-project#41442) * [Refactor] Replace LayerScatterModes with LayerFacts and remove ScatterMode (sgl-project#41443) * [XPU] Disable test_ngram_corpus on XPU and detect XPU tests dynamically in CI filter (sgl-project#41075) * [Fix][NPU] Fix performance degradation caused by serial execution of two-stage ACL op calls on graph (sgl-project#40814) * [diffusion] feat: support multiple task types for pipelines (sgl-project#38762) Co-authored-by: Mick Qian <[email protected]> * [CI] fix CI regression on xeon (sgl-project#41002) * [CI] Real-model Kimi-Linear PD parity at page, DCP virtual-page, chunk and cached-prefix boundaries (sgl-project#41378) * [AMD] Register Triton data movement tests in PR CI (sgl-project#41137) * [AMD] Add GLM-5.3-Flash MI35x nightly test (sgl-project#36903) Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: quitenode <[email protected]> Co-authored-by: Claude <[email protected]> * [AMD] [Docker] Remove unused LLVM 18 setup from ROCm TileLang build (sgl-project#41387) Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: quitenode <[email protected]> * [Intel GPU] Xpu/weekly simple model enablement 2026 09 21 (sgl-project#40664) Co-authored-by: Amrutha M <[email protected]> Co-authored-by: charlesxu91 <[email protected]> Co-authored-by: KMS07 <[email protected]> Co-authored-by: Avi Fenesh <[email protected]> Co-authored-by: Ma Mingfei <[email protected]> * [Bugfix] fix(hicache): wait for decode offload before retraction (sgl-project#30899) Co-authored-by: agent <agent@local> Co-authored-by: Kevin Flansburg <[email protected]> Co-authored-by: Jimmy Shong <[email protected]> Co-authored-by: Shangming Cai <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> * Rust server unify datapath for mm and generate requests (sgl-project#39679) * feat(npu): Support returning indexer top-k results (sgl-project#39060) * Fix chat template cache key order (sgl-project#41517) * docs: add prefill context parallelism guide and design draft (sgl-project#39354) * [XPU] Bump sglang-kernel-xpu wheel to v0.3.0 (sgl-project#41220) Co-authored-by: Pramod Kumar <[email protected]> * [Kimi-K3] Merge fused_qkvg_proj into the loader-seeded packed_modules_mapping (sgl-project#41164) * [Router] Give the cache-aware tree a snapshot surface (1/13) (sgl-project#40687) Co-authored-by: Kangyan Zhou <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * Let predicate-registered linear-attention models carry the mamba radix-cache leaves (sgl-project#41165) * [diffusion] optimization: populate cpu weight stores before host registration to speedup layerwise-offload initialization (sgl-project#40439) Co-authored-by: Mick Qian <[email protected]> * perf(multimodal): offload CPU feature hashing with bounded admission (sgl-project#39539) * [AMD][DSV4] moe: enable shared-expert fusion on the grouped-topk path (megamoe) (sgl-project#40943) * [sgl-router] Scope input_ids forwarding by renderer: all text chats for DeepSeek-V4 (sgl-project#41226) Co-authored-by: Kan Wu <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Shangming Cai <[email protected]> * [Router] Serve the cache-aware tree at /internal/kv_snapshot (2/13) (sgl-project#40688) Co-authored-by: Kangyan Zhou <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * [AMD] [GLM5] Fuse shared expert into AITER MoE on gfx950 (sgl-project#41161) Signed-off-by: Raiden-Makoto <[email protected]> Co-authored-by: Raiden-Makoto <[email protected]> * [Router] Name a replica's siblings with --kv-peer-selector (3/13) (sgl-project#40689) Co-authored-by: Kangyan Zhou <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * [diffusion] docs: consolidate Qwen-Image 2.1 guidance in its cookbook (sgl-project#41540) Co-authored-by: Mick Qian <[email protected]> * [Unified Memory] fix: preserve FP8 dtype in unified MHA pool (sgl-project#38133) * [Unified Memory] Fix Inkling conv-checkpoint track ids written to virtual slot numbers (sgl-project#41144) * [Doc] Add kernel benchmark rule on L2 cache reuse (sgl-project#41545) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [DeepSelect] Add page-table transform to top-k and tighten the layout contract (sgl-project#41364) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [diffusion] Qwen-Image 2.1: fuse Q/K RMSNorm + RoPE + KV packing into one CUDA kernel and project Q/K/V with one packed GEMM (sgl-project#41339) * [Fix][NPU] fix dp-attn hang when pin_mem is True on NPU (sgl-project#40446) * [Spec] Model-agnostic last-stage draft embedding under pipeline parallelism (sgl-project#39643) * [PD] Defer decode KV release on every transfer failure, not only decode-initiated aborts (sgl-project#41404) Co-authored-by: Claude Fable 5 <[email protected]> * [PD] Keep the sampling mask of a replayed rebootstrap token (sgl-project#41235) * [NVIDIA] Update deepgemm, deep-ep, sgl-kernel in CUDA 13.4 image, use cuda base image (sgl-project#40987) * [Docs][AMD] Update GLM-5.2 MI355X daily image (sgl-project#41597) * dsv4.1-amd: gfx950 sparse decode attention and sorted top-k (sgl-project#41020) Co-authored-by: Claude Opus 5.5 <[email protected]> * dsv4.1-amd: fused mHC boundary and all-reduce + mHC post kernels (sgl-project#41021) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Kevin Mi <[email protected]> * [Model Loader] Stop checkpoint prefetch after iterator completion (sgl-project#41588) Co-authored-by: Hrithvik Alex <[email protected]> * [mem cache] refactor: remove the index-K continuous getters orphaned by the CP v1 removal (sgl-project#41469) * [PD] Keep EAGLE DP graph and token metadata consistent (sgl-project#32196) Co-authored-by: weireweire <[email protected]> Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]> Co-authored-by: Khoa Pham <[email protected]> * [Docs] Add GigaChat 3.5 and GigaChat 3.5 Reasoning cookbook pages (sgl-project#41118) Co-authored-by: Stanislav Petrov <[email protected]> * [Model] Add IQuest Q1 support and MTP draft (sgl-project#41590) Co-authored-by: zelong huang <[email protected]> Co-authored-by: hnyls2002 <[email protected]> Co-authored-by: zelong518 <[email protected]> Co-authored-by: chenwenxiaolive <[email protected]> * [diffusion] model: support flux 3 action robot policies (sgl-project#41066) * [Radix Cache] Sync Rust TreeCore and make it the default (sgl-project#39627) Co-authored-by: Ke Bao <[email protected]> Co-authored-by: Zhangheng <[email protected]> Co-authored-by: alphabetc1 <[email protected]> * [npu]support NPU 910C L2 memcache offload (sgl-project#41527) * [Test] Fail fast when PD test RDMA devices are not openable by ibverbs (sgl-project#41600) * Remove GLM-4.1V-9B-Thinking from encoder DP MMMU test (sgl-project#41608) Co-authored-by: Mohammad Angkad <[email protected]> * [Refactor] Group communicator fusion and CP adapters (sgl-project#41547) * [Refactor] Centralize decoder output access (sgl-project#41548) * [Refactor] Carry residual state across stage boundaries (sgl-project#41549) * [Refactor] Capture auxiliary states at residual reads (sgl-project#41550) * [Refactor] Select reduction fusion at the consumer (sgl-project#41551) * [Refactor] Construct independent decoder stage boundaries (sgl-project#41552) * [Refactor] Migrate specialized decoder and overlap boundaries (sgl-project#41553) * [Refactor] Retire the layer facade and simplify boundary internals (sgl-project#41554) * [Refactor] Rename the module to layer_boundary (sgl-project#41555) * [Refactor] Group layer boundary unit tests (sgl-project#41556) * [Refactor] Document layer boundary contracts and integration (sgl-project#41557) * [Rust] Extract a transport-neutral frontend core (sgl-project#39385) Signed-off-by: jain-ria <[email protected]> Co-authored-by: ishandhanani <[email protected]> * [PD] Give FakeKVReceiver ensure_abort_notified (sgl-project#41618) * [XPU] Support compressed-tensors W4A16 by reusing the torch int4pack path (sgl-project#40828) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Singh <[email protected]> Co-authored-by: Singh <[email protected]> Co-authored-by: Ma Mingfei <[email protected]> * [Intel][XPU]Enable chunked prefill scnearios for XPU with UT (sgl-project#33804) Co-authored-by: Ma Mingfei <[email protected]> * [SM120] Add optional FlashInfer PCIe-IPC all-reduce for switch-free hosts (sgl-project#34528) * [diffusion] feat: support bounded exact conditioning cache across native models (sgl-project#40470) Co-authored-by: Mick Qian <[email protected]> * [Fix] Add name mapping in load_weights of nvidia/LocateAnything-3B (sgl-project#41059) * [Cherry-pick to release/v0.5.21] [Fix] Restore deferred layer dumps and pin SentencePiece for InternVL (sgl-project#41777) (sgl-project#41788) Co-authored-by: Baizhou Zhang <[email protected]> * [Cherry-pick to release/v0.5.21] [Test] Demote PD test RDMA openability check to a warning (sgl-project#41681) (sgl-project#41802) Co-authored-by: Mohammad Miadh Angkad <[email protected]> Co-authored-by: hnyls2002 <[email protected]> * feat(plugin-seam): forward-port the turbo-attn seam onto upstream v0.5.21 The whole carry of arbicity/sglang-turbo main @71bcc9df9b over upstream v0.5.18, squashed and replayed onto upstream v0.5.21 (e00930c, the commit lmsysorg/sglang:v0.5.21 is built from) as a 3-way merge. Folds in the post-port commits #9 (hybrid sliding-window through the kv-cache plugin), #10 (Gemma 4 on a plugin backend) and #11 (draft backend factory reads attention_backends()). Upstream's structure wins and the seam is re-applied on it: - server_args.py is now a thin record over arg_groups/: the --kv-cache-dtype choices are hoisted into arg_groups/choices.py as KV_CACHE_DTYPE_CHOICES + add_kv_cache_dtype_choices (re-exported from server_args), and the gpt-oss / Gemma 4 backend whitelists that accept a plugin backend move to arg_groups/model_hook.py. - ServerArgs._handle_plugin_kv_cache_pairing is dropped: v0.5.21's resolution hooks (arg_groups/resolution_hooks.py) are the official slot, and turbo-attn's plugin now pairs the flags there. - Plugin dtype reads go through the resolved model bag (get_model()), not the raw ServerArgs record, which v0.5.21 leaves as operator input. - HybridSWAPoolConfigurator: the plugin prices the full and SWA layers it holds and stands in as the per-layer cost, so upstream's new draft-SWA and unified-pool formulas apply unchanged; layer ids come from kvc.layer_info, as upstream's own SWA pool takes them. - Qwen3.5 NEXTN embed on meta only on a single pipeline stage: from v0.5.21 a PP draft may load its own embedding (pp_draft_embedding). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]> --------- Signed-off-by: Yanfei Wang <[email protected]> Signed-off-by: Ting Sun <[email protected]> Signed-off-by: chunxiaozheng <[email protected]> Signed-off-by: rockdu <[email protected]> Signed-off-by: Raiden-Makoto <[email protected]> Signed-off-by: jain-ria <[email protected]> Co-authored-by: Xiaoyu Zhang <[email protected]> Co-authored-by: Mohammad Miadh Angkad <[email protected]> Co-authored-by: Zhang, Jiejing <[email protected]> Co-authored-by: AMD-yanfeiwang <[email protected]> Co-authored-by: Alan Kao <[email protected]> Co-authored-by: ronnie_zheng <[email protected]> Co-authored-by: Brayden Zhong <[email protected]> Co-authored-by: Mohammad Angkad <[email protected]> Co-authored-by: paulzhang-tm <[email protected]> Co-authored-by: WenhaoZhang <[email protected]> Co-authored-by: 黄孝君 <[email protected]> Co-authored-by: Shangming Cai <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Mick <[email protected]> Co-authored-by: Mick Qian <[email protected]> Co-authored-by: Ting SUN <[email protected]> Co-authored-by: Xinyu Jiang <[email protected]> Co-authored-by: Zhiyao Jiang <[email protected]> Co-authored-by: Jackey Hua <[email protected]> Co-authored-by: Trevor Morris <[email protected]> Co-authored-by: Yonghao Zhuang <[email protected]> Co-authored-by: yhzhuang <[email protected]> Co-authored-by: Lianmin Zheng <[email protected]> Co-authored-by: Yonghao Zhuang <[email protected]> Co-authored-by: Cheng Wan <[email protected]> Co-authored-by: Hanming Lu <[email protected]> Co-authored-by: hanminglu <[email protected]> Co-authored-by: oss-sync bot (pranjalssh) <[email protected]> Co-authored-by: Khoa Pham <[email protected]> Co-authored-by: ChangLiu0709 <[email protected]> Co-authored-by: Cheng Wan <[email protected]> Co-authored-by: Thomas Wang <[email protected]> Co-authored-by: Qiaolin Yu <[email protected]> Co-authored-by: Chunan Zeng <[email protected]> Co-authored-by: mikevin920 <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: YC Yen-Ching Tseng <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> Co-authored-by: Shuwen Wang <[email protected]> Co-authored-by: Apexsf <[email protected]> Co-authored-by: fengtinglei <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> Co-authored-by: Yuwei An <[email protected]> Co-authored-by: Caio Rocha <[email protected]> Co-authored-by: Caio Rocha <[email protected]> Co-authored-by: metamergebot <[email protected]> Co-authored-by: Jialin Ouyang <[email protected]> Co-authored-by: metamergebot <[email protected]> Co-authored-by: Zhiqiang Xie <[email protected]> Co-authored-by: Sundara Raman Ramachandran <[email protected]> Co-authored-by: jacky.cheng <[email protected]> Co-authored-by: akhilg-nv <[email protected]> Co-authored-by: metamergebot <[email protected]> Co-authored-by: Shiyan Deng <[email protected]> Co-authored-by: Yongji Wu <[email protected]> Co-authored-by: Richard Wang <[email protected]> Co-authored-by: Xinyuan Tong <[email protected]> Co-authored-by: Xinyi Song <[email protected]> Co-authored-by: Xingyu Liu <[email protected]> Co-authored-by: kk <[email protected]> Co-authored-by: ashwini rathi <[email protected]> Co-authored-by: Jianghai <[email protected]> Co-authored-by: Even Zhou <[email protected]> Co-authored-by: Olga Miroshnichenko <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Justin Tong <[email protected]> Co-authored-by: cctry <[email protected]> Co-authored-by: cctry <[email protected]> Co-authored-by: Yongji Wu <[email protected]> Co-authored-by: Zhiqiang Xie <[email protected]> Co-authored-by: Nan Jiang <[email protected]> Co-authored-by: Lucia Fang <[email protected]> Co-authored-by: Ethan (Yusheng) Su <[email protected]> Co-authored-by: chunxiaozheng <[email protected]> Co-authored-by: Erik Wijmans <[email protected]> Co-authored-by: James Liu <[email protected]> Co-authored-by: DarkSharpness <[email protected]> Co-authored-by: Lu Fang <[email protected]> Co-authored-by: WMC <[email protected]> Co-authored-by: Kan Wu <[email protected]> Co-authored-by: Kan Wu <[email protected]> Co-authored-by: DarkSharpness <[email protected]> Co-authored-by: Hexu Zhao <[email protected]> Co-authored-by: hexu.zhao <[email protected]> Co-authored-by: yuyu5333 <[email protected]> Co-authored-by: Ariel <[email protected]> Co-authored-by: jasonjk-park <[email protected]> Co-authored-by: Ankith Averineni <[email protected]> Co-authored-by: aimicahchen <[email protected]> Co-authored-by: Shunkangz <[email protected]> Co-authored-by: Zhangheng <[email protected]> Co-authored-by: kernel-design-agents <[email protected]> Co-authored-by: Kangrui Du <[email protected]> Co-authored-by: Yuan Luo <[email protected]> Co-authored-by: luoyuan.luo <[email protected]> Co-authored-by: Nguyễn Văn Cao Nguyên <[email protected]> Co-authored-by: CuzMi <[email protected]> Co-authored-by: huangtingwei <[email protected]> Co-authored-by: mrusanovsky <[email protected]> Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]> Co-authored-by: Yoni Gozlan <[email protected]> Co-authored-by: Yoni Gozlan <[email protected]> Co-authored-by: Kurkur <[email protected]> Co-authored-by: Yihao Wang <[email protected]> Co-authored-by: Xinguo Zhu <[email protected]> Co-authored-by: Michael <[email protected]> Co-authored-by: quitenode <[email protected]> Co-authored-by: Meng, Hengyu <[email protected]> Co-authored-by: Amrutha M <[email protected]> Co-authored-by: charlesxu91 <[email protected]> Co-authored-by: KMS07 <[email protected]> Co-authored-by: Avi Fenesh <[email protected]> Co-authored-by: Ma Mingfei <[email protected]> Co-authored-by: Kevin Flansburg <[email protected]> Co-authored-by: agent <agent@local> Co-authored-by: Kevin Flansburg <[email protected]> Co-authored-by: Jimmy Shong <[email protected]> Co-authored-by: Rain Jiang <[email protected]> Co-authored-by: flb_ <[email protected]> Co-authored-by: Ke Bao <[email protected]> Co-authored-by: Baizhou Zhang <[email protected]> Co-authored-by: Pramod Kumar <[email protected]> Co-authored-by: Peng Wu <[email protected]> Co-authored-by: Kangyan-Zhou <[email protected]> Co-authored-by: Kangyan Zhou <[email protected]> Co-authored-by: Denji-kk <[email protected]> Co-authored-by: karverma-amd <[email protected]> Co-authored-by: Raiden Makoto <[email protected]> Co-authored-by: Raiden-Makoto <[email protected]> Co-authored-by: triple-mu <[email protected]> Co-authored-by: YAMY <[email protected]> Co-authored-by: Zhang, Jiejing <[email protected]> Co-authored-by: Hrithvik Alex <[email protected]> Co-authored-by: Hrithvik Alex <[email protected]> Co-authored-by: weireweire <[email protected]> Co-authored-by: weireweire <[email protected]> Co-authored-by: Stanislav Petrov <[email protected]> Co-authored-by: Stanislav Petrov <[email protected]> Co-authored-by: sglang-bot <[email protected]> Co-authored-by: zelong huang <[email protected]> Co-authored-by: zelong518 <[email protected]> Co-authored-by: chenwenxiaolive <[email protected]> Co-authored-by: Jialin Ouyang <[email protected]> Co-authored-by: alphabetc1 <[email protected]> Co-authored-by: James <[email protected]> Co-authored-by: jain-ria <[email protected]> Co-authored-by: ishandhanani <[email protected]> Co-authored-by: Rohit Kumar Singh <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Singh <[email protected]> Co-authored-by: Singh <[email protected]> Co-authored-by: Anupa Sajikumar <[email protected]> Co-authored-by: eeecho <[email protected]> Co-authored-by: Jiacong Fang <[email protected]>
detain
added a commit
to detain/sglang
that referenced
this pull request
Oct 7, 2026
Brings in 311 upstream commits up to f209e67 (sgl-project#39643, 2026-09-28). Conflict resolutions: - qwen_sparse_attn_backend.py: keep the SM120 triton decode branch and FP8 descales; adopt upstream's HIP packed-decode path and move the flash-attn resolve after it (matches the rebased sgl-project#36787 head). - cuda_graph_setup.py: prewarm after EagerRunner(run_warmup=...) and in elastic recapture (as in the rebased sgl-project#36787 head). - mega_moe.py: upstream flydsl early return + stack deep_gemm_wrapper import. - hybrid_cache_controller.py: upstream per-chain sidecar batch_get_v2, wrapped in the stack's degrade-to-miss guard. - unified_radix_cache.py: take upstream allocate_host_transfers (group.alloc already reclaims only the shortfall). - hiradix_cache.py: accept upstream deletion (sgl-project#40787). - hybrid_pool_assembler.py + its test, test_hc_mix.py: unions. - qsa kernel tests follow the ops/qsa -> ops/attention/qsa move (sgl-project#41243). Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
sam123456598
added a commit
to vessl-ai/sglang
that referenced
this pull request
Oct 8, 2026
* [feature] add per-item candidate token scoring and calibration (sgl-project#40826) Co-authored-by: Mick Qian <[email protected]> * [Diffusion] Fuse LongCat GELU+cat and support Edit-Turbo BCG (sgl-project#40384) * [Diffusion] Fuse lossless Wan VAE post-ops for LongLive 2 I2V (sgl-project#40405) * Fix TBO child batch missing dp_spec_prefill_coordination_applied (sgl-project#41096) * [AMD] Tune Triton sparse MLA on gfx950 and make split-K workspaces graph-safe (sgl-project#39059) * [Diffusion] Fuse lossless LingBot World FP32 normalization (sgl-project#40425) * [AMD][DSV4] fp8 unified_kv decode: wave-aware split count past 40 tokens (sgl-project#40878) Signed-off-by: Yanfei Wang <[email protected]> * [AMD] Add tuned dsv4 shape (sgl-project#40996) * [Diffusion] Enable lossless SANA-Video eager conv fusions for 12.6% lower latency (sgl-project#40388) * [Diffusion] migrate the whole _register_configs from registry.py to the model own config file (sgl-project#40612) * Refactor the Cute-DSL AR fusion to support DeepseekV2 archs (GLM-5.3, etc.) (sgl-project#39816) Co-authored-by: Mohammad Angkad <[email protected]> Co-authored-by: Mohammad Miadh Angkad <[email protected]> * [HiCache] Make host reclamation independent of transfer order (sgl-project#40512) * [Refactor] Retire the model-specific Kimi K3 kernel namespace (sgl-project#40922) * [diffusion] update code owner (sgl-project#41130) * [NPU] Update CANN version to 9.1.0 (sgl-project#40524) * [PD] Enable deferred decode-side KV release by default (sgl-project#41023) Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * [chore] surface the cookbook to users who pip install sglang (sgl-project#40866) Co-authored-by: Mick Qian <[email protected]> Co-authored-by: Claude Opus 5 <[email protected]> * fix(sampling): validate sampling_seed is an int within int64 range (sgl-project#28960) Signed-off-by: Ting Sun <[email protected]> * [HiCache] Demote SWA KV to host on write_back eviction instead of dropping it (sgl-project#40712) Co-authored-by: Claude Fable 5 <[email protected]> * [AMD] ci: move the Miles ROCm 7.2 nightly build to 7.2.4 (sgl-project#40387) Co-authored-by: Zhiyao Jiang <[email protected]> * [Quant] ModelOpt mixed precision: dispatch block-FP8 MoE experts and derive the block size (sgl-project#38726) Co-authored-by: Claude Fable 5.1 <[email protected]> * fix: Triton 3.8 compatbility to support DSV4.1-Flash in CUDA 13.4 image (Rubin) (sgl-project#40805) * Support unified memory decode host pools (sgl-project#39478) Co-authored-by: yhzhuang <[email protected]> Co-authored-by: Lianmin Zheng <[email protected]> Co-authored-by: Yonghao Zhuang <[email protected]> Co-authored-by: Cheng Wan <[email protected]> * [Fix] Skip the DCP target-verify MLA kernel during FlashInfer autotune (sgl-project#41138) Co-authored-by: Mohammad Angkad <[email protected]> * [DP attention] Publish DP buffer sizes from a ForwardBatch (sgl-project#40858) Co-authored-by: hanminglu <[email protected]> Co-authored-by: oss-sync bot (pranjalssh) <[email protected]> * [Test] Run the Qwen3.5 Triton DCP nightly with the radix cache enabled (sgl-project#41155) * [AMD] GLM-5.2 MI355X MXFP4: bump image to 20260923 daily (sgl-project#41109) * [Fix] Complete the deferred FFN all-reduce before a pipeline-parallel send (sgl-project#41079) * [Fix] Complete the deferred FFN all-reduce before deepstack addition and aux hidden-state capture (sgl-project#41080) Co-authored-by: Mick Qian <[email protected]> * [Refactor] Pass each layer stack's output through a communicator exit (sgl-project#41081) * [Refactor] Share the MoE output all-reduce between models (sgl-project#41097) * [Fix] Step-3.5: stop dense layers from summing their output twice under DP attention (sgl-project#41082) * [Fix] Broadcast requests along attention CP before attention TP (sgl-project#41083) * [Refactor] Split prepare_attn into a reduction step and per-quant-format residual steps (sgl-project#41084) * [AMD] Add .co for deepseek v4 fp8 decode kernel and add group decode opt (sgl-project#41120) * [qwen 3.8 next] Fuse Qwen PLE gate and convolution preparation for target verify (sgl-project#40041) * MiniMax-M3: MXFP8 dense-only block convert + aiter MXFP8 MoE on gfx950 (sgl-project#36574) Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: mikevin920 <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: YC Yen-Ching Tseng <[email protected]> * MoE: small-batch sorting path with fused mxfp8 quantisation (sgl-project#36559) Co-authored-by: mikevin920 <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: YC Yen-Ching Tseng <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> * [DSV4] Fix TRTLLM uniform FP8 KV memory budgeting (sgl-project#41090) * [Fix] Patch set_dp_buffer_len_from_batch in DP spec prefill coordination test (sgl-project#41162) * [Docs] Enable Qwen3.8 Flash Next NVIDIA NVFP4 on B200/B300/GB300 (sgl-project#41046) * [DSV4] Size compressed pools from one per-ratio table in DSV4PoolConfigurator (sgl-project#41049) * [Bugfix] Align DeepSeek-V4.1 reasoning effort budgets (sgl-project#39929) Co-authored-by: fengtinglei <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> * Fix mixed chunk prefill with DP speculative coordination (sgl-project#41179) * Add 8-node AllReduce/AllGather and MNVLS algorithm support to MSCCL++ (sgl-project#37442) Co-authored-by: Caio Rocha <[email protected]> * [HiCache] Batch buffer-only KV backups within each flush (sgl-project#40960) Co-authored-by: oss-sync bot (pranjalssh) <[email protected]> Co-authored-by: Jialin Ouyang <[email protected]> * [PD] Add a `none` decode retraction backup and subclass seams in the PD queues (sgl-project#41103) Co-authored-by: metamergebot <[email protected]> Co-authored-by: Zhiqiang Xie <[email protected]> * [Score API] Setwise Scoring Support (sgl-project#38965) * [DSV4] Account for FlashMLA physical KV page padding in memory budgets (sgl-project#41091) Co-authored-by: hnyls2002 <[email protected]> * [mem_cache] Drop `is_insert` from `cache_finished_req`; release rows from `release_kv_cache` (sgl-project#40988) * [AMD] Restore non-DCP Mamba checkpoint donation to fix agent-mode cache hit at high conc with HiCache (sgl-project#40907) * [diffusion] feat: add opt-in SRT prompt enhancement to image and video APIs (sgl-project#41095) Co-authored-by: Mick Qian <[email protected]> * Support XQA backend for SpecDec verify (sgl-project#32269) * [PD] Honor gracefully_exit in disaggregation event loops and keep non-zero-rank launchers alive on SIGTERM (sgl-project#40793) Co-authored-by: metamergebot <[email protected]> Co-authored-by: Shiyan Deng <[email protected]> * [Perf] Lazy-load built-in model definitions and nixl_ep at startup (sgl-project#41061) Co-authored-by: metamergebot <[email protected]> Co-authored-by: Yongji Wu <[email protected]> * [CI] Move GLM-5.2 layer-split test to extra-b-test-8-gpu-b300 (sgl-project#41207) Co-authored-by: Mohammad Angkad <[email protected]> * [Fix] Keep the target's DP sync slot in draft scopes (sgl-project#41062) Co-authored-by: Mohammad Angkad <[email protected]> Co-authored-by: Cheng Wan <[email protected]> * [feat] add a system one compatible /v1/systemone route (sgl-project#41208) * fix(openai): reject request-supplied chat_template by default (sgl-project#28135) Signed-off-by: Ting Sun <[email protected]> Co-authored-by: Xinyuan Tong <[email protected]> * [AMD] Fix int32 offset overflow in Triton DSv4 KV store kernels (sgl-project#41159) * [DeepEP v2] Let a model package supply its per-rank prefill dispatch bound (sgl-project#41201) Co-authored-by: Xingyu Liu <[email protected]> * [diffusion] model: support Ming-Image Design and Design-Layer (sgl-project#41067) Co-authored-by: Mick Qian <[email protected]> * [HiCache] Give trailing sidecar storage transfers a contiguous prefix_keys chain (sgl-project#40456) * [HiCache] fix: Drain pending backups before internal Mamba write-back (sgl-project#41092) * [AMD] Integrate Aiter MegaMoEv2 for DeepSeek-V4 (sgl-project#35619) * [Fix] Complete the all-reduce when the flashinfer fused norm declines a batch (sgl-project#41193) * [Fix] Plan NextN / MTP draft layers as one-layer models and fix the Bailing V2 NextN draft (sgl-project#41194) * [Fix] Stop counting a deferred FFN sum more than once: replicated TP1 shared expert, dense reduce_scatterv (sgl-project#41195) * [Refactor] Carry a deferred FFN all-reduce as UnreducedOutput and complete it in the next layer without the fused kernel (sgl-project#41196) * [Refactor] Leave the FFN reduction to the next layer under attention DP (sgl-project#41197) * [Refactor] Move Step-3.5, GLM5-Next, Dots3, MiniMax-M3 and Qwen3.5 onto ffn_exit (sgl-project#41198) * [Refactor] Build prepare_mlp and the layout moves from named steps (sgl-project#41191) * [Refactor] Take a layer's last-layer fact from its scatter-mode plan (sgl-project#41199) * [Refactor] Decide an FFN exit's completion once and declare the group it owes (sgl-project#41200) * [XPU] Disable test_ngram_corpus on XPU and extend XPU CI path filter (sgl-project#41224) * [Diffusion] Fix AttributeError in grouped forward_batch by installing the residency manager (sgl-project#34417) Co-authored-by: mickqian <[email protected]> * [diffusion] Enable lossless Cosmos3 Super T2I QK fusion on Hopper TP2 (sgl-project#40486) * Revert "[NPU] Fuse FIA KV-cache K/V writes into one npu_scatter_pa_kv_cache call" (sgl-project#41132) * [ROCm][Bugfix] Keep quantization for mixed Quark Qwen3.5 MTP checkpoints (sgl-project#39064) Co-authored-by: Cursor <[email protected]> Co-authored-by: jacky.cheng <[email protected]> * fix(multimodal): return 400 for corrupt image inputs (sgl-project#28131) Signed-off-by: Ting Sun <[email protected]> Co-authored-by: Justin Tong <[email protected]> Co-authored-by: Xinyuan Tong <[email protected]> * [unified-memory] Honor move gates in float relocation and size auto HiCache from host capacity (sgl-project#41248) Co-authored-by: Yonghao Zhuang <[email protected]> * Fix multimodal feature offload races (sgl-project#40621) Co-authored-by: cctry <[email protected]> Co-authored-by: Yongji Wu <[email protected]> Co-authored-by: Zhiqiang Xie <[email protected]> * [Sampling] Stream sampling masks as per-request arrays (sgl-project#40986) * [Rust frontend] Decode input_ids without untagged buffering (sgl-project#41246) Co-authored-by: Jialin Ouyang <[email protected]> Co-authored-by: Lucia Fang <[email protected]> * [Test] Remove dead eval modules and point GSM8K/MMLU docs to sgl-eval (sgl-project#41215) * [Test] Add in-process sgl-eval adapter and move validated GSM8K tests to it (sgl-project#41216) * [LoRA] Size dense row/column-parallel LoRA buffers from the base linear's real shard (sgl-project#39379) * [KVCache] Support lmcache unified radix cache (sgl-project#38652) Signed-off-by: chunxiaozheng <[email protected]> Co-authored-by: Yuwei An <[email protected]> Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [sglang][lora] Support DP attention in LoRA backends (sgl-project#36389) Co-authored-by: Ethan (Yusheng) Su <[email protected]> * dsv4.1-amd: gfx950 MXFP8 matmul kernels and fp8-grid producers (sgl-project#41018) Co-authored-by: Claude Opus 5.5 <[email protected]> * [Test] Route all sgl-eval benchmarks through run_sgl_eval and deprecate run_eval (sgl-project#41280) * [Fix] Fix cpu CI fail introduced by pr sgl-project#38652 (sgl-project#41287) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [PD] Share one head-slice helper across mooncake, mori, and nixl (sgl-project#39660) Co-authored-by: BBuf <[email protected]> * [misc] Call all_gather_single / reduce_scatter_single to drop torch deprecation warnings (sgl-project#41284) * [Test] Remove unit tests that only mirror implementation or never run in CI (sgl-project#41286) * [DCP] Use logical token capacity for PD admission and load reporting (sgl-project#39731) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Khoa Pham <[email protected]> * [CI] Harden `/rerun-test` dispatch and partitioning (sgl-project#41285) * [diffusion] Fuse lossless Klein packed QK RMSNorm and RoPE on Hopper (sgl-project#40490) * [DSv4.1] Move the ratio-1/2 index top-k ops into kernels/ops/attention/dsv4 (sgl-project#41291) Co-authored-by: DarkSharpness <[email protected]> * [diffusion] model: support Anima Base v1.0 (sgl-project#41011) Co-authored-by: Mick Qian <[email protected]> * [DSA] Chunk the kpool indexer MQA logits by query rows under a free-memory budget (sgl-project#40854) Co-authored-by: Mohammad Angkad <[email protected]> * [PD] fix: cache resumed decode-radix requests from root instead of an unlocked re-match (sgl-project#41261) * [Test] Remove more unit tests that mirror implementation or never run in CI (sgl-project#41297) * [ROCm][Perf] aiter: page-level KV view for gfx950 fp8 page-64 asm prefill (sgl-project#36505) * [MemCache] Unify component eviction cursors and lock receipts (sgl-project#41276) Co-authored-by: Lu Fang <[email protected]> * [diffusion] fix: fix Qwen-Image 2.1 default RGBA output (sgl-project#41150) Co-authored-by: jacky.cheng <[email protected]> * [diffusion] fix: copy small files into overlay materialized trees instead of linking them (sgl-project#41298) Co-authored-by: Mick Qian <[email protected]> * [Refactor] Restore logical kernel groups and test organization (sgl-project#41243) * [sgl-router] Track input_ids forwarding outcomes per chat request (sgl-project#41185) Co-authored-by: Kan Wu <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [DSv4.1] Move the low-ratio index top-k into dsv4/low_ratio_indexer (sgl-project#41125) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> Co-authored-by: hnyls2002 <[email protected]> * [DSA] Fix the pooled-indexer breakable prefill bridge under DP attention (sgl-project#41311) Co-authored-by: Mohammad Angkad <[email protected]> * [Score API] Setwise scoring: CausalLM support (batched + --enable-mis) (sgl-project#41188) * [Perf] Mamba2 selective_state_update up to 2x faster on B200 via 8x1 launch config for dstate 128 (+7.5% Nemotron-3-Super serving) (sgl-project#41223) Co-authored-by: hexu.zhao <[email protected]> * [DeepSeek V4.1] Add DeepSelect JIT kernel. (sgl-project#40556) Co-authored-by: DarkSharpness <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * [Refactor] Choose prepare_attn / prepare_mlp steps and fused kernels at construction (sgl-project#41252) * [Refactor] Drive an FFN exit's flags and its completion from one selection (sgl-project#41253) * [Refactor] Declare at construction the layers whose FFN completes its own reduction (sgl-project#41254) * [Refactor] Run the LayerNorm SP region's boundary steps in the communicator itself (sgl-project#41255) * [Refactor] Pick the two-batch-overlap split's layout moves once and remove execute (sgl-project#41256) * [Refactor] Choose a dense layer's boundaries under attention DP from both sides' declarations (sgl-project#41257) * [CI] Add __main__ entry to test_deep_select.py (sgl-project#41341) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [sgl-router] Book the input_ids forwarding outcome only for built bodies (sgl-project#41342) Co-authored-by: Claude Fable 5 <[email protected]> * [CI] Move DeepSelect into the attention kernel group to fix the namespace test (sgl-project#41349) Co-authored-by: Mohammad Angkad <[email protected]> * Pin triton_kernels num_warps for MXFP4 MoE below Hopper (6x gpt-oss decode on RTX 4090) (sgl-project#41292) Co-authored-by: Claude Fable 5.1 <[email protected]> * [CI] Merge the Kimi-Linear PD DCP4 nightly tests and drop exact-token parity (sgl-project#41321) * [AMD] Fix jit broken on rocm env (sgl-project#41356) * Make sliding-window caching and speculative batch padding extensible (sgl-project#41325) Co-authored-by: Lu Fang <[email protected]> Co-authored-by: jasonjk-park <[email protected]> * [MemCache] Fix LMCache component cursors and per-cache backend selection (sgl-project#41328) Co-authored-by: Lu Fang <[email protected]> * [AMD] Honor an explicit triton moe_runner_backend for mxfp8 on ROCm (sgl-project#41377) * dsv4.1-amd: KV cache layouts, FP4 indexer, compressor and router kernels (sgl-project#41019) Co-authored-by: x <x> * [sgl-router] Take SGLang's render defaults: --default-chat-template-kwargs and thinking/effort envs (sgl-project#41221) Co-authored-by: Kan Wu <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [mem_cache] Never free the protected prefix on request release (sgl-project#41312) * [DSV4.1][HiCache] fix: wait for the layer transfer before reading low-ratio index-K (sgl-project#41345) * [Diffusion] Preserve per-sample rollout trajectories across multi-output merge (sgl-project#34416) Co-authored-by: aimicahchen <[email protected]> * [kv-shard 3/4] Enable Control Plane B (sgl-project#39964) Co-authored-by: Zhangheng <[email protected]> * [qwen 3.8 next] Fuse small CUDA graph input buffer copies (sgl-project#41166) * [KDA+Kimi K3] Speed up SANA-Video residual gate add on H200 (sgl-project#41305) Co-authored-by: kernel-design-agents <[email protected]> * [mem_cache] Replace `cache_finished_req` with `insert_req`; `release_kv_cache` frees and unpins (sgl-project#41281) * [diffusion] feat: support in-place lora merge/unmerge under layerwise offload (sgl-project#36192) * [diffusion] feat: minimax-h3 spectrum skip-step + fused RMSNorm/AdaLN (sgl-project#35684) * [diffusion] feat: add MiniMax-H3 to ComfyUI integrated mode (sgl-project#35990) * [Diffusion] Apply latent-ids and packing to caller-provided initial latents (sgl-project#34418) Co-authored-by: aimicahchen <[email protected]> Co-authored-by: WenhaoZhang <[email protected]> * [diffusion] fix: lora-wrapped linears crash qwen-image and minimax-h3 inference (sgl-project#41272) Signed-off-by: rockdu <[email protected]> * [diffusion] fix: run an all-valid attention mask on the backend's unmasked kernel (sgl-project#41309) Co-authored-by: Mick Qian <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * [VLM] Introduce FA4 into ViT for SM100/SM103 (sgl-project#41344) Co-authored-by: luoyuan.luo <[email protected]> * [bench] Take each request's prompt length from the server (sgl-project#39889) Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Xiaoyu Zhang <[email protected]> * [Diffusion] Reuse bit-exact packed SwiGLU for Ming-Image (sgl-project#41266) * Add MiniMax arch fallback to auto parser resolution (sgl-project#40930) * [HiCache] Add the page-unified KV load-back JIT kernel (sgl-project#39726) Co-authored-by: Claude Opus 5 <[email protected]> Co-authored-by: huangtingwei <[email protected]> Co-authored-by: Zhangheng <[email protected]> * [AMD] Update v4 cookbook for megamoe, fp8 kv attn, BCG (sgl-project#41458) * [PD] Fan drain abort ACKs out to every decode peer of the room (sgl-project#41402) Co-authored-by: Claude Fable 5 <[email protected]> * [Spec] Add LiLiCorr: a candidate-lattice reranker for DFlash drafts (sgl-project#37462) Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]> Co-authored-by: kpham-sgl <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> * Port chat_parsing core (sgl-project#40477) Co-authored-by: Yoni Gozlan <[email protected]> * [Refactor] Choose the boundaries of plain-TP dense layers and MoE layers from declarations (sgl-project#41417) * [Refactor] Give the fused prepare_mlp kernels an explicit contract (sgl-project#41418) * [Refactor] Choose the LayerNorm SP region's and input-scattered batches' steps from declarations (sgl-project#41419) * [Refactor] Run every batch of a layer from one BoundarySteps (sgl-project#41420) * [Refactor] Choose a GQA prefill CP extend's steps from declarations (sgl-project#41421) * [Fix] Keep one copy of CP-replicated rows in the DP gather (sgl-project#41422) * [Fix] Gather a dense FFN's input across attention DP and CP in one DP sum (sgl-project#41423) * [Refactor] Choose fully-DP dense and DSA / MLA prefill CP layers' steps from declarations (sgl-project#41424) * [Refactor] Run MHC layers on the shared boundary steps with MHC's residual operations (sgl-project#41425) * [Refactor] Run two-batch-overlap layers on the declared boundaries (sgl-project#41426) * [Refactor] Let the MoE declare whether its skipped reduction is one TP all-reduce (sgl-project#41427) * [Refactor] Publish the LoRA token layout from the batch's FFN input rows (sgl-project#41428) * [Refactor] Build each decoder boundary from the declarations of its two sides (sgl-project#41429) * [Refactor] Nemotron-H: build each layer's boundaries from its stage and the previous one (sgl-project#41430) * [Refactor] Move CuTe DSL-fused layers onto the declared boundaries and FFN-exit kernel entries (sgl-project#41431) * [Fix] Run MoE layers under attention DP and GQA prefill CP on the declared DP × CP gather (sgl-project#41432) * [Fix] Falcon-H1: count the Mamba mixer's output once under tensor parallelism (sgl-project#41433) * [Refactor] Falcon-H1: complete the FFN's sum through ffn_exit (sgl-project#41434) * [Refactor] Choose MoE layers' boundaries from declarations when moe_dp_size equals attn_cp_size (sgl-project#41435) * [Fix] LongCat-Flash under attention DP: branch and merge the dense FFNs through the communicators (sgl-project#41436) * [Refactor] Step-3.5: complete the dense MLP's sum through ffn_exit (sgl-project#41437) * [Refactor] Choose every layer's boundaries from declarations and remove the scatter-mode selection (sgl-project#41438) * [Refactor] Split the layer communicator into a package (move only) (sgl-project#41439) * [Refactor] Declare each stage's residual read and update, and give each stage its own entry (sgl-project#41440) * [Refactor] Build the boundary into any stage with one construction (sgl-project#41441) * [Refactor] Give a layer its CuTe DSL kernels at construction instead of a subclass (sgl-project#41442) * [Refactor] Replace LayerScatterModes with LayerFacts and remove ScatterMode (sgl-project#41443) * [XPU] Disable test_ngram_corpus on XPU and detect XPU tests dynamically in CI filter (sgl-project#41075) * [Fix][NPU] Fix performance degradation caused by serial execution of two-stage ACL op calls on graph (sgl-project#40814) * [diffusion] feat: support multiple task types for pipelines (sgl-project#38762) Co-authored-by: Mick Qian <[email protected]> * [CI] fix CI regression on xeon (sgl-project#41002) * [CI] Real-model Kimi-Linear PD parity at page, DCP virtual-page, chunk and cached-prefix boundaries (sgl-project#41378) * [AMD] Register Triton data movement tests in PR CI (sgl-project#41137) * [AMD] Add GLM-5.3-Flash MI35x nightly test (sgl-project#36903) Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: quitenode <[email protected]> Co-authored-by: Claude <[email protected]> * [AMD] [Docker] Remove unused LLVM 18 setup from ROCm TileLang build (sgl-project#41387) Co-authored-by: Cursor Agent <[email protected]> Co-authored-by: quitenode <[email protected]> * [Intel GPU] Xpu/weekly simple model enablement 2026 09 21 (sgl-project#40664) Co-authored-by: Amrutha M <[email protected]> Co-authored-by: charlesxu91 <[email protected]> Co-authored-by: KMS07 <[email protected]> Co-authored-by: Avi Fenesh <[email protected]> Co-authored-by: Ma Mingfei <[email protected]> * [Bugfix] fix(hicache): wait for decode offload before retraction (sgl-project#30899) Co-authored-by: agent <agent@local> Co-authored-by: Kevin Flansburg <[email protected]> Co-authored-by: Jimmy Shong <[email protected]> Co-authored-by: Shangming Cai <[email protected]> Co-authored-by: Claude Fable 5 <[email protected]> * Rust server unify datapath for mm and generate requests (sgl-project#39679) * feat(npu): Support returning indexer top-k results (sgl-project#39060) * Fix chat template cache key order (sgl-project#41517) * docs: add prefill context parallelism guide and design draft (sgl-project#39354) * [XPU] Bump sglang-kernel-xpu wheel to v0.3.0 (sgl-project#41220) Co-authored-by: Pramod Kumar <[email protected]> * [Kimi-K3] Merge fused_qkvg_proj into the loader-seeded packed_modules_mapping (sgl-project#41164) * [Router] Give the cache-aware tree a snapshot surface (1/13) (sgl-project#40687) Co-authored-by: Kangyan Zhou <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * Let predicate-registered linear-attention models carry the mamba radix-cache leaves (sgl-project#41165) * [diffusion] optimization: populate cpu weight stores before host registration to speedup layerwise-offload initialization (sgl-project#40439) Co-authored-by: Mick Qian <[email protected]> * perf(multimodal): offload CPU feature hashing with bounded admission (sgl-project#39539) * [AMD][DSV4] moe: enable shared-expert fusion on the grouped-topk path (megamoe) (sgl-project#40943) * [sgl-router] Scope input_ids forwarding by renderer: all text chats for DeepSeek-V4 (sgl-project#41226) Co-authored-by: Kan Wu <[email protected]> Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Shangming Cai <[email protected]> * [Router] Serve the cache-aware tree at /internal/kv_snapshot (2/13) (sgl-project#40688) Co-authored-by: Kangyan Zhou <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * [AMD] [GLM5] Fuse shared expert into AITER MoE on gfx950 (sgl-project#41161) Signed-off-by: Raiden-Makoto <[email protected]> Co-authored-by: Raiden-Makoto <[email protected]> * [Router] Name a replica's siblings with --kv-peer-selector (3/13) (sgl-project#40689) Co-authored-by: Kangyan Zhou <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> * [diffusion] docs: consolidate Qwen-Image 2.1 guidance in its cookbook (sgl-project#41540) Co-authored-by: Mick Qian <[email protected]> * [Unified Memory] fix: preserve FP8 dtype in unified MHA pool (sgl-project#38133) * [Unified Memory] Fix Inkling conv-checkpoint track ids written to virtual slot numbers (sgl-project#41144) * [Doc] Add kernel benchmark rule on L2 cache reuse (sgl-project#41545) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [DeepSelect] Add page-table transform to top-k and tighten the layout contract (sgl-project#41364) Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]> * [diffusion] Qwen-Image 2.1: fuse Q/K RMSNorm + RoPE + KV packing into one CUDA kernel and project Q/K/V with one packed GEMM (sgl-project#41339) * [Fix][NPU] fix dp-attn hang when pin_mem is True on NPU (sgl-project#40446) * [Spec] Model-agnostic last-stage draft embedding under pipeline parallelism (sgl-project#39643) * [PD] Defer decode KV release on every transfer failure, not only decode-initiated aborts (sgl-project#41404) Co-authored-by: Claude Fable 5 <[email protected]> * [PD] Keep the sampling mask of a replayed rebootstrap token (sgl-project#41235) * [NVIDIA] Update deepgemm, deep-ep, sgl-kernel in CUDA 13.4 image, use cuda base image (sgl-project#40987) * [Docs][AMD] Update GLM-5.2 MI355X daily image (sgl-project#41597) * dsv4.1-amd: gfx950 sparse decode attention and sorted top-k (sgl-project#41020) Co-authored-by: Claude Opus 5.5 <[email protected]> * dsv4.1-amd: fused mHC boundary and all-reduce + mHC post kernels (sgl-project#41021) Co-authored-by: Claude Opus 5.5 <[email protected]> Co-authored-by: Kevin Mi <[email protected]> * [Model Loader] Stop checkpoint prefetch after iterator completion (sgl-project#41588) Co-authored-by: Hrithvik Alex <[email protected]> * [mem cache] refactor: remove the index-K continuous getters orphaned by the CP v1 removal (sgl-project#41469) * [PD] Keep EAGLE DP graph and token metadata consistent (sgl-project#32196) Co-authored-by: weireweire <[email protected]> Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]> Co-authored-by: Khoa Pham <[email protected]> * [Docs] Add GigaChat 3.5 and GigaChat 3.5 Reasoning cookbook pages (sgl-project#41118) Co-authored-by: Stanislav Petrov <[email protected]> * [Model] Add IQuest Q1 support and MTP draft (sgl-project#41590) Co-authored-by: zelong huang <[email protected]> Co-authored-by: hnyls2002 <[email protected]> Co-authored-by: zelong518 <[email protected]> Co-authored-by: chenwenxiaolive <[email protected]> * [diffusion] model: support flux 3 action robot policies (sgl-project#41066) * [Radix Cache] Sync Rust TreeCore and make it the default (sgl-project#39627) Co-authored-by: Ke Bao <[email protected]> Co-authored-by: Zhangheng <[email protected]> Co-authored-by: alphabetc1 <[email protected]> * [npu]support NPU 910C L2 memcache offload (sgl-project#41527) * [Test] Fail fast when PD test RDMA devices are not openable by ibverbs (sgl-project#41600) * Remove GLM-4.1V-9B-Thinking from encoder DP MMMU test (sgl-project#41608) Co-authored-by: Mohammad Angkad <[email protected]> * [Refactor] Group communicator fusion and CP adapters (sgl-project#41547) * [Refactor] Centralize decoder output access (sgl-project#41548) * [Refactor] Carry residual state across stage boundaries (sgl-project#41549) * [Refactor] Capture auxiliary states at residual reads (sgl-project#41550) * [Refactor] Select reduction fusion at the consumer (sgl-project#41551) * [Refactor] Construct independent decoder stage boundaries (sgl-project#41552) * [Refactor] Migrate specialized decoder and overlap boundaries (sgl-project#41553) * [Refactor] Retire the layer facade and simplify boundary internals (sgl-project#41554) * [Refactor] Rename the module to layer_boundary (sgl-project#41555) * [Refactor] Group layer boundary unit tests (sgl-project#41556) * [Refactor] Document layer boundary contracts and integration (sgl-project#41557) * [Rust] Extract a transport-neutral frontend core (sgl-project#39385) Signed-off-by: jain-ria <[email protected]> Co-authored-by: ishandhanani <[email protected]> * [PD] Give FakeKVReceiver ensure_abort_notified (sgl-project#41618) * [XPU] Support compressed-tensors W4A16 by reusing the torch int4pack path (sgl-project#40828) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Singh <[email protected]> Co-authored-by: Singh <[email protected]> Co-authored-by: Ma Mingfei <[email protected]> * [Intel][XPU]Enable chunked prefill scnearios for XPU with UT (sgl-project#33804) Co-authored-by: Ma Mingfei <[email protected]> * [SM120] Add optional FlashInfer PCIe-IPC all-reduce for switch-free hosts (sgl-project#34528) * [diffusion] feat: support bounded exact conditioning cache across native models (sgl-project#40470) Co-authored-by: Mick Qian <[email protected]> * [Fix] Add name mapping in load_weights of nvidia/LocateAnything-3B (sgl-project#41059) * [Cherry-pick to release/v0.5.21] [Fix] Restore deferred layer dumps and pin SentencePiece for InternVL (sgl-project#41777) (sgl-project#41788) Co-authored-by: Baizhou Zhang <[email protected]> * [Cherry-pick to release/v0.5.21] [Test] Demote PD test RDMA openability check to a warning (sgl-project#41681) (sgl-project#41802) Co-authored-by: Mohammad Miadh Angkad <[email protected]> Co-authored-by: hnyls2002 <[email protected]> --------- Signed-off-by: Yanfei Wang <[email protected]> Signed-off-by: Ting Sun <[email protected]> Signed-off-by: chunxiaozheng <[email protected]> Signed-off-by: rockdu <[email protected]> Signed-off-by: Raiden-Makoto <[email protected]> Signed-off-by: jain-ria <[email protected]> Co-authored-by: Mick <[email protected]> Co-authored-by: Mick Qian <[email protected]> Co-authored-by: Xiaoyu Zhang <[email protected]> Co-authored-by: Mohammad Miadh Angkad <[email protected]> Co-authored-by: Zhang, Jiejing <[email protected]> Co-authored-by: AMD-yanfeiwang <[email protected]> Co-authored-by: Alan Kao <[email protected]> Co-authored-by: ronnie_zheng <[email protected]> Co-authored-by: Brayden Zhong <[email protected]> Co-authored-by: Mohammad Angkad <[email protected]> Co-authored-by: paulzhang-tm <[email protected]> Co-authored-by: WenhaoZhang <[email protected]> Co-authored-by: 黄孝君 <[email protected]> Co-authored-by: Shangming Cai <[email protected]> Co-authored-by: Claude Opus 5 (1M context) <[email protected]> Co-authored-by: Ting SUN <[email protected]> Co-authored-by: Xinyu Jiang <[email protected]> Co-authored-by: Zhiyao Jiang <[email protected]> Co-authored-by: Jackey Hua <[email protected]> Co-authored-by: Trevor Morris <[email protected]> Co-authored-by: Yonghao Zhuang <[email protected]> Co-authored-by: yhzhuang <[email protected]> Co-authored-by: Lianmin Zheng <[email protected]> Co-authored-by: Yonghao Zhuang <[email protected]> Co-authored-by: Cheng Wan <[email protected]> Co-authored-by: Hanming Lu <[email protected]> Co-authored-by: hanminglu <[email protected]> Co-authored-by: oss-sync bot (pranjalssh) <[email protected]> Co-authored-by: Khoa Pham <[email protected]> Co-authored-by: ChangLiu0709 <[email protected]> Co-authored-by: Cheng Wan <[email protected]> Co-authored-by: Thomas Wang <[email protected]> Co-authored-by: Qiaolin Yu <[email protected]> Co-authored-by: Chunan Zeng <[email protected]> Co-authored-by: mikevin920 <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: YC Yen-Ching Tseng <[email protected]> Co-authored-by: Kevin Mi <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> Co-authored-by: Shuwen Wang <[email protected]> Co-authored-by: Apexsf <[email protected]> Co-authored-by: fengtinglei <[email protected]> Co-authored-by: Liangsheng Yin <[email protected]> Co-authored-by: Yuwei An <[email protected]> Co-authored-by: Caio Rocha <[email protected]> Co-authored-by: Caio Rocha <[email protected]> Co-authored-by: metamergebot <[email protected]> Co-authored-by: Jialin Ouyang <[email protected]> Co-authored-by: metamergebot <[email protected]> Co-authored-by: Zhiqiang Xie <[email protected]> Co-authored-by: Sundara Raman Ramachandran <[email protected]> Co-authored-by: jacky.cheng <[email protected]> Co-authored-by: akhilg-nv <[email protected]> Co-authored-by: metamergebot <[email protected]> Co-authored-by: Shiyan Deng <[email protected]> Co-authored-by: Yongji Wu <[email protected]> Co-authored-by: Richard Wang <[email protected]> Co-authored-by: Xinyuan Tong <[email protected]> Co-authored-by: Xinyi Song <[email protected]> Co-authored-by: Xingyu Liu <[email protected]> Co-authored-by: kk <[email protected]> Co-authored-by: ashwini rathi <[email protected]> Co-authored-by: Jianghai <[email protected]> Co-authored-by: Even Zhou <[email protected]> Co-authored-by: Olga Miroshnichenko <[email protected]> Co-authored-by: Cursor <[email protected]> Co-authored-by: Justin Tong <[email protected]> Co-authored-by: cctry <[email protected]> Co-authored-by: cctry <[email protected]> Co-authored-by: Yongji Wu <[email protected]> Co-authored-by: Zhiqiang Xie <[email protected]> Co-authored-by: Nan Jiang <[email protected]> Co-authored-by: Lucia Fang <[email protected]> Co-authored-by: Ethan (Yusheng) Su <[email protected]> Co-authored-by: chunxiaozheng <[email protected]> Co-authored-by: Erik Wijmans <[email protected]> Co-authored-by: James Liu <[email protected]> Co-authored-by: DarkSharpness <[email protected]> Co-authored-by: Lu Fang <[email protected]> Co-authored-by: WMC <[email protected]> Co-authored-by: Kan Wu <[email protected]> Co-authored-by: Kan Wu <[email protected]> Co-authored-by: DarkSharpness <[email protected]> Co-authored-by: Hexu Zhao <[email protected]> Co-authored-by: hexu.zhao <[email protected]> Co-authored-by: yuyu5333 <[email protected]> Co-authored-by: Ariel <[email protected]> Co-authored-by: jasonjk-park <[email protected]> Co-authored-by: Ankith Averineni <[email protected]> Co-authored-by: aimicahchen <[email protected]> Co-authored-by: Shunkangz <[email protected]> Co-authored-by: Zhangheng <[email protected]> Co-authored-by: kernel-design-agents <[email protected]> Co-authored-by: Kangrui Du <[email protected]> Co-authored-by: Yuan Luo <[email protected]> Co-authored-by: luoyuan.luo <[email protected]> Co-authored-by: Nguyễn Văn Cao Nguyên <[email protected]> Co-authored-by: CuzMi <[email protected]> Co-authored-by: huangtingwei <[email protected]> Co-authored-by: mrusanovsky <[email protected]> Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]> Co-authored-by: Yoni Gozlan <[email protected]> Co-authored-by: Yoni Gozlan <[email protected]> Co-authored-by: Kurkur <[email protected]> Co-authored-by: Yihao Wang <[email protected]> Co-authored-by: Xinguo Zhu <[email protected]> Co-authored-by: Michael <[email protected]> Co-authored-by: quitenode <[email protected]> Co-authored-by: Meng, Hengyu <[email protected]> Co-authored-by: Amrutha M <[email protected]> Co-authored-by: charlesxu91 <[email protected]> Co-authored-by: KMS07 <[email protected]> Co-authored-by: Avi Fenesh <[email protected]> Co-authored-by: Ma Mingfei <[email protected]> Co-authored-by: Kevin Flansburg <[email protected]> Co-authored-by: agent <agent@local> Co-authored-by: Kevin Flansburg <[email protected]> Co-authored-by: Jimmy Shong <[email protected]> Co-authored-by: Rain Jiang <[email protected]> Co-authored-by: flb_ <[email protected]> Co-authored-by: Ke Bao <[email protected]> Co-authored-by: Baizhou Zhang <[email protected]> Co-authored-by: Pramod Kumar <[email protected]> Co-authored-by: Peng Wu <[email protected]> Co-authored-by: Kangyan-Zhou <[email protected]> Co-authored-by: Kangyan Zhou <[email protected]> Co-authored-by: Denji-kk <[email protected]> Co-authored-by: karverma-amd <[email protected]> Co-authored-by: Raiden Makoto <[email protected]> Co-authored-by: Raiden-Makoto <[email protected]> Co-authored-by: triple-mu <[email protected]> Co-authored-by: YAMY <[email protected]> Co-authored-by: Zhang, Jiejing <[email protected]> Co-authored-by: Hrithvik Alex <[email protected]> Co-authored-by: Hrithvik Alex <[email protected]> Co-authored-by: weireweire <[email protected]> Co-authored-by: weireweire <[email protected]> Co-authored-by: Stanislav Petrov <[email protected]> Co-authored-by: Stanislav Petrov <[email protected]> Co-authored-by: sglang-bot <[email protected]> Co-authored-by: zelong huang <[email protected]> Co-authored-by: zelong518 <[email protected]> Co-authored-by: chenwenxiaolive <[email protected]> Co-authored-by: Jialin Ouyang <[email protected]> Co-authored-by: alphabetc1 <[email protected]> Co-authored-by: James <[email protected]> Co-authored-by: jain-ria <[email protected]> Co-authored-by: ishandhanani <[email protected]> Co-authored-by: Rohit Kumar Singh <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Singh <[email protected]> Co-authored-by: Singh <[email protected]> Co-authored-by: Anupa Sajikumar <[email protected]> Co-authored-by: eeecho <[email protected]> Co-authored-by: Jiacong Fang <[email protected]>
This was referenced Oct 11, 2026
twu3202
added a commit
to twu3202/sglang
that referenced
this pull request
Oct 25, 2026
A compressed-tensors pack-quantized lm_head stores its weight as weight_packed / weight_scale / weight_shape and has no .weight. The target serves fine, but NEXTN died in get_embed_and_head and the DFlash2 selector refused the head, because should_apply_lm_head_quant_method rejected any head without .weight (a guard for the ModelOpt dtype reads, from sgl-project#27906). - Admit heads without .weight through the gate; only the three ModelOpt methods still need the tensor for their layout checks. - _compute_lm_head: such heads take the quant_method.apply branch and keep the fp32 activation cast the old fallback gave them; the fallback becomes an explicit error. - qwen3_5 / qwen3_5_text accessors hand out None for a packed head; the eagle worker shares the module through set_lm_head_from_target and fails clearly when it cannot (lm_head_is_packed in spec_utils). Since sgl-project#39643 a pipeline stage runs the same init_lm_head. The multi-layer EAGLE worker, which shares the tensor only, fails clearly on a packed head. - Tests: the DFlash2 selector cases are parametrized over both packed layouts; a new CPU file covers the gate, the logits path, the accessors and init_lm_head.
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.
Motivation
Update after #30775 merged. The decode-side PP x spec path now carries its own inline checkpoint read of the draft embedding in
eagle_worker_v2(type scan for the draft'sVocabParallelEmbedding, a candidate-name table,DefaultModelLoader._prepare_weights), gated onSGLANG_ENABLE_PP_SPEC. This PR replaces that inline code with a shared module so the env-gated decode path and the PD-prefill path (#39378's gate) use one loader, and extends it tomulti_layer_eagle_worker_v2/frozen_kv_mtp_worker_v2.Part of #39634 (P0). Under pipeline parallelism the EAGLE/MTP draft runs only on the last stage, while the target's input embedding lives only on the first stage (
embed_tokensis aPPMissingLayerelsewhere).EagleDraftWorker.init_lm_headcallstarget.get_embed_and_head(), which raisesAttributeErroron the last stage for every model whose getter isself.model.embed_tokens.weight, self.lm_head.weight(DeepSeek, GLM, Llama, ...).Today each model works around this in its own file: Qwen3.5 (#37471) keeps a draft-owned embedding and loads it in
qwen3_5_mtp.load_weights; #39378 materializes a secondembed_tokenson the target's last stage for DeepSeek/GLM. That per-model work is why the PP+spec gates in #39378 / #39602 / #38698 are architecture allowlists.Modifications
speculative/pp_draft_embedding.py(new)resolve_target_embed_and_head: PP-safe wrapper; aPPMissingLayerembedding yieldsembed=Noneand the head is read directly; any otherAttributeErrorpropagates.load_draft_embedding_from_checkpoint: resolves the checkpoint throughDefaultModelLoader._prepare_weights(so ModelScope,--download-dir,load_formatand the.binfallback match the target load;dummyskips), locates the input embedding viamodel.safetensors.index.jsonand reads only that shard (no index: keys are collected across all shards before choosing;layers.<n>.MTP embeddings are never picked), and loads it into the draft's own embedding through itsweight_loader. The draft embedding is the draft's singleVocabParallelEmbedding(notParallelLMHead); a draft without one fails with an explicit error. Returns the parameter so the existingset_embed_and_head(embed, head)call is unchanged.resolve_draft_embed_and_headtakes no pipeline-rank arguments: a stage whose target embedding is aPPMissingLayerloads the draft's own embedding;pp_size == 1never returnsembed=None.eagle_worker_v2,multi_layer_eagle_worker_v2,frozen_kv_mtp_worker_v2: all threeinit_lm_headpaths go throughresolve_draft_embed_and_headand no longer read the PP group. TheSGLANG_ENABLE_PP_SPECearly-return block and its helpers (_find_draft_input_embedding,_load_checkpoint_tensor,_EMBED_TENSOR_NAMES) are removed; their re-openable load-format guard and extra checkpoint spellings are folded into the module. No model file changes.arg_groups/validation_hook.py: the_PP_EAGLE_SUPPORTED_ARCHITECTURESallowlist and themodel_architectureargument ofcheck_pipeline_parallel_compatare removed. The list existed because only some model families could hand the draft an embedding on the last stage; with the checkpoint loader that is true for every model, and a draft without any embedding fails in the loader with an explicit error instead.test/registered/e2e/pp/test_pp_spec_embed_scan.py: imports retargeted to the module.Behavior changes
SGLANG_ENABLE_PP_SPECblock carriedassert hot_token_id is None and not is_eagle3(). EAGLE3 under PP is still rejected byvalidation_hook.py;--speculative-token-mapnow takes the generichead.clone()[hot_token_id]path instead of being rejected.set_lm_head_from_targetnow also runs on the env-gated path.Glm5NextForConditionalGeneration, was rejected by that list on main).Relationship to #30775: that PR carries its own checkpoint embedding read in
init_lm_head, active only underSGLANG_ENABLE_PP_SPEC; this PR replaces it. The type-based draft lookup and the extra tensor spellings here are taken from #30775.Known follow-ups once this lands: drop the model-specific embedding handling in
qwen3_5_mtp.load_weights(until then Qwen3.5 loads its draft embedding twice, correct but one redundant shard read) and the target-sidepp_stage_needs_embeddingin #39378.Accuracy / validation
test/registered/unit/spec/test_pp_draft_embedding.py, CPU, 8 cases): PP-safe resolution incl. an unrelatedAttributeErrornot being swallowed, index and no-index selection over alayers.61.embed_tokensdecoy,.bin-only checkpoint, full-vocab tensor handed toweight_loader,load_formatgating (dummy/ streaming), loud failure for a draft without an embedding. The drafts use the realVocabParallelEmbeddingunder a published topology.test_server_args.py::TestPipelineParallelCompatupdated for the removed allowlist.test/registered/e2e/pp/test_pp_spec.py(4-GPU H100) exercises this module.d229952): GLM-5.3-Flash, PD 1P(TP2xPP2 + MTP) : 1D(TP4 + MTP) over Mooncake, GSM8K-200 viasglang.test.run_eval: score 0.990, accept length 3.45 (TP4 + MTP reference 0.990 / 3.39). The last prefill stage logsLoaded draft embedding model.embed_tokens.weight from checkpoint key model.language_model.embed_tokens.weight (154880, 4096), a key the previous inline loader did not know.Checklist
CI States
Latest PR Test (Base): ❌ Run #35758694318
Latest PR Test (Extra): ✅ Run #35758694131
Latest PR Test (AMD ROCm 10): ❌ Run #35758694379