Skip to content

[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 - #41339

Merged
BBuf merged 14 commits into
sgl-project:mainfrom
triple-mu:pr/qwen-image21-attention-fusions
Sep 28, 2026
Merged

BBuf merged 14 commits into
sgl-project:mainfrom
triple-mu:pr/qwen-image21-attention-fusions

Conversation

@triple-mu

@triple-mu triple-mu commented Sep 26, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

Profiling Qwen-Image 2.1 (1024x1024, 40 steps, bf16, --attention-backend torch_sdpa) on one SM120 GPU shows each transformer block spending ~10.8 ms per step: 81% GEMM, 14% attention and ~5% everything else. That last slice was not bandwidth-limited work but data movement and launches around attention:

  • two Triton kernels for Q/K RMSNorm + complex RoPE (_qknorm_complex_rope_onepass_kernel, 38 us; _qknorm_complex_rope_kv_kernel, 119 us), the second of which re-copies the full V projection (64 MiB per block-step) just to place it behind the text prefix;
  • three separate Q/K/V GEMMs (N=4096 each) with their own tile tails;
  • a single-element torch.cat on the attention output that degrades to a 33.5 MB device copy.

All three are removed here without changing a single output bit: every new path is default-on and verifies its first call against the eager chain through BitExactFusionGate, falling back permanently on a mismatch (the existing Qwen-Image 2.1 convention).

Modifications

One commit per optimization:

  1. bef0002567 Skip the single-element torch.cat on the attention output (pure aliasing; the multi-segment prefix path keeps the cat).
  2. 50f14915a4 qknorm_complex_rope JIT CUDA kernel (kernels/jit/csrc/diffusion/qknorm_complex_rope.cuh, wrapper ops/diffusion/rope/qknorm_complex_rope_jit.py). One warp per 128-wide row; Q and K RMSNorm (RMSNorm(cast_x_before_out_mul=True): aten's 128-wide fp32 reduction order and double bf16 rounding), the complex64 RoPE with the same FMA orientation as the Triton path (_fuse_real_sin probe), and the prefix K/V copies in a single launch. run (out of place, used by apply_qk_norm_rope) and run_pack (Q in place, K normalized in place behind the prefix rows, optional V copy) variants; registered as custom ops with fake impls; CUDA-graph safe.
  3. 622f00a077 K/V projections written straight into the packed KV buffers: torch.mm(x, W.t(), out=buffer[P:]) for K and V so V is never copied and the kernel normalizes K in place (kCopyV=False). Gated by a first-sight torch.equal against the module forward.
  4. 30819672a1 One packed Q/K/V GEMM: to_q/to_k/to_v weights are re-pointed at slices of one [3C, C] storage in post_load_weights (the per-layer weight parameters stay views, so checkpoint loading, weight updates and LoRA base weights are unaffected); one N=12288 GEMM writes into a [1, P+S, 3C] buffer and Q/K/V are column views (token stride 3C) consumed by the pack kernel and SDPA. Gated by a first-sight compare with the three separate GEMMs.
  5. 3a2dd56e1f gate protocol tests, kernel README row, fast-paths inventory entry, pre-commit formatting (a marker benchmark added here was dropped again later in the series).

Fallbacks keep the previous Triton chain: batch > 1, sequence parallel > 1, LoRA-wrapped or quantized projections, head_dim != 128, ROCm, torch.compile, and any first-sight mismatch. Nothing is verified while a CUDA graph is being captured.

Per block-step the op sequence goes from 7 GEMM + 1 attention + 8 small kernels + 1 memcpy to 5 GEMM + 1 attention + 6 small kernels.

Accuracy Tests

Everything in this PR is bit-exact by construction and verified at three levels:

  • Kernel: test/registered/kernels/ops/diffusion/test_qknorm_complex_rope.py (20 cases; torch.equal against RMSNorm(cast_x_before_out_mul=True, force_native=True) + eager complex RoPE; shapes (1,4096,32,128), (1,18,32,128), (2,17,4,128), (1,1,1,128); in-place and copy pack variants; token-strided views of a packed QKV buffer; CUDA graph replay).
  • Wiring: test_model_fast_paths.py::test_qwen21_cuda_qk_rope_* (first-sight verify, mismatch -> permanent eager fallback, no verification during capture) and python/sglang/multimodal_gen/test/unit/test_qwen_image21_cuda.py (head_dim-128 model: prefill + cached steps in t2i and edit mode with atol=0, prefix cache stays exact-size storage, breakable-CUDA-graph capture/replay atol=0, packed weights share storage and survive in-place updates, pack mismatch restores the reference).
  • End to end: the same-seed 1024x1024 PNG (seed 42, generator_device=cpu) has the same sha256 as main in every launch of this series (2781b27ac4b17cb1..., 12 launches on two GPUs).

Speed Tests and Profiling

Hardware: one cc 12.0 (SM120) GPU, 73 GB, 350 W power cap, clocks not locked (the GPU sits at the cap during the whole run); torch 2.13.0+cu132, cuDNN 9.20. Workload: sglang serve --performance-mode speed --attention-backend torch_sdpa, 1024x1024, 40 steps, guidance 1.0, bf16, eager. Each e2e number is one server launch with 1 warmup + 3 measured requests; stage times come from SGLANG_DIFFUSION_SYNC_STAGE_PROFILING=1.

Kernel level (marker.do_bench on the production shapes, median us):

site eager Triton (main) this PR
Q RMSNorm + RoPE, (1, 4096, 32, 128) 548.9 65.5 65.5 (same bytes; kept for the pack variant)
Q/K RMSNorm + RoPE + KV packing, S=4096, P=18 1133.6 190.5 (two kernels, copies V) 124.9 (K in place, V never copied)
Q/K/V projection, M=4096, K=4096 - 3 x N=4096: 1786 1 x N=12288: 1707

End to end (denoising stage, 32 blocks x 40 steps; e2e HTTP latency of the DiT-only tree on the same GPU as its baseline):

tree denoising 40 steps (ms) per block-step (us) e2e HTTP (s)
main 13 715 342.9 x 1 / 32 13.890
this PR 13 533 (-1.3%) -142 per block-step 13.721 (-1.2%)

The -142 us per block-step decomposes (nsys, same GPU) into -70 us from the packed GEMM (six 64x256 GEMM launches at 6717 us -> four at 6647 us), -55 us from the single norm-RoPE launch (104 us vs 38 + 119 us) and -15 us from the removed memcpy. Whole-image kernel launches drop from 24 699 to about 20 800. The GPU stays at its power cap; the fused tree runs ~18 MHz lower at the same 347 W, so the gain under locked clocks would be slightly larger. Run-to-run spread of the e2e latency is 0.3-1.0%; the -1.3% was reproduced in three interleaved rounds.

Smoke of this exact branch (rebased on main @ 3ed56a341b, one launch each on a second GPU of the same type, stage-profiling cohort): main 13.894 s / denoising 13 585 ms; this PR 13.735 s / denoising 13 427 ms (-158 ms), PNG sha256 identical.

Not done here (measured and rejected): fusing the residual gate add with the following LayerNorm (the two-kernel chain is L2-resident and the fused kernel was slower, 114.5 vs 105.9 us), packing the gate/up GEMMs into one N=24576 GEMM (462 us/block-step slower on this GPU), and rewriting _silu_mul_kernel in CUDA (it already runs at 1.28 TB/s of a 1.34 TB/s roofline).

Checklist


CI States

Latest PR Test (Base): ⏳ Run #36365662528
Latest PR Test (Extra): ❌ Run #36365662367
Latest PR Test (AMD ROCm 10): ❌ Run #36365662617

…attention

torch.cat on a one-element list degrades to a full copy, which showed up in
nsys as one 33.5 MB device-to-device memcpy per transformer block per step at
1024x1024 (about 19 ms per image). Return the only output directly and keep
the concatenation for the multi-sample and multi-segment cases.
…ng into one CUDA launch

Replace the Triton qknorm_complex_rope (Q) and qknorm_complex_rope_kv (K, V,
prefix) pair with one JIT CUDA kernel that normalizes and rotates Q in place,
writes the normalized K rows behind the cached prefix in the [B, P+S, H, 128]
buffer and copies the prefix K/V and the raw V rows. The kernel reproduces the
eager chain bit for bit (aten's vectorized 128-wide mean order, cast-before-
weight rounding, and the FMA orientation probed by _fuse_real_sin) and is
verified once at runtime through a BitExactFusionGate; the Triton and eager
paths remain as fallbacks. Token strides are parameters so the same kernel can
address column views of a packed [B, P+S, 3C] buffer later.
…ffers

Write the K and V projections with torch.mm(out=) into rows [P:] of the
[1, P+S, H, 128] buffers the fused Q/K norm + RoPE kernel packs, so the
normalization runs in place and the raw V is no longer copied (the Triton pair
moved 202 MB per block-step, this path 135 MB; 158 vs 94 us hot on SM120).
The contiguous row slice has the same leading dimension as a fresh tensor, and
a BitExactFusionGate verifies the direct write against the module forward on
first sight. Batch 1, single sample and plain unquantized layers only; anything
else keeps the previous path. Adds head_dim-128 model tests that exercise the
CUDA path on prefill, cached steps and BCG replay, plus the mismatch fallback.
…e KV buffer

After loading, share one [3C, C] buffer between to_q/to_k/to_v so their
parameters become row slices of it (names, shapes, state_dict, LoRA merges
and in-place weight updates are unchanged). The attention then runs one
N=3C GEMM straight into a [1, P+S, 3C] buffer whose column views are Q, K and
V with token stride 3C; the fused norm + RoPE kernel and SDPA accept that
layout, so no copy is added. On SM120 the three N=4096 GEMMs take 1786 us
against 1707 us packed, bit-identical to the row-slice GEMMs. A
BitExactFusionGate compares every slice against the module forwards on first
sight, and the path stays off whenever the slices stop aliasing the packed
buffer or a layer is not a plain unquantized bf16 projection.
…nchmark, docs and formatting

Adds the first-sight verify / mismatch / capture protocol tests for the CUDA
Q/K RMSNorm + RoPE gate, a marker benchmark for the attention prep on the
1024x1024 production shape, the kernel README row and the fast-paths inventory
entry, and applies pre-commit formatting to the series (no functional change).
@mickqian

Copy link
Copy Markdown
Collaborator

/tag-and-rerun-ci

@github-actions github-actions Bot added the run-ci CI: run the baseline test suite on this PR label Sep 26, 2026

@mickqian mickqian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

CI follow-up for exact head 3a2dd56e1f0a58ae609e99f1071a4108c38b4c50: run-ci is now present. Base run 36233405008 attempt 2 failed at the gate, not in a model/kernel test.

Exact log: https://github.com/sgl-project/sglang/actions/runs/36233405008/job/108384090673 . The author-level cooldown found another accepted run (36233408214, created 2026-09-26 09:38:52 UTC) and requires 120 minutes between triggers. CPU/NVIDIA jobs were skipped; pr-test-finish only aggregates that gate failure. The indicated cooldown boundary is 11:38:52 UTC, subject to any newer accepted runs.

No duplicate /tag-and-rerun-ci comment or immediate retry was issued. A subsequent targeted retry must recheck current head, labels, and cooldown eligibility first; this result does not establish any code regression or test success.

…model test

The packed Q/K/V projection and the direct K/V write are GEMM re-plumbings
whose first-sight compare depends on cuBLAS choosing the same kernel for both
shapes. The model test now requires the CUDA kernels' gates to verify and the
outputs to stay bit-exact, but accepts a declined packing gate (with the next
tier taking over) instead of assuming every platform accepts it.
rows = self.to_q.weight.shape[0]
for index, layer in enumerate(layers):
layer.weight.data = packed[index * rows : (index + 1) * rows]
self.qkv_weight = packed

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

This reference keeps the packed CUDA storage alive after offload. qkv_weight isn't registered, and the release-memory helper doesn't recurse into attention modules, so about 3 GiB remains at TP1/BF16. Can we drop the packed reference on offload and rebuild the shared views on reload?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Fixed in b1bea0e (now on the branch head): the module keeps no reference to the shared storage any more. packed_qkv_weight() re-derives the [3C, C] view from to_q/to_k/to_v on each forward (same storage, consecutive offsets), so once the parameters are offloaded nothing pins the buffer, and _apply re-shares the weights after a .to() round trip so the packed GEMM survives CPU offload. test_packed_qkv_weights_share_storage_and_survive_in_place_updates now moves the module to the CPU and back and checks that no CUDA tensor is left on it and that the shared view returns. Layerwise offload streams the parameters into separate storages, so on that path the packed projection simply stays off and the per-layer projections run (still bit-exact).

@mickqian mickqian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

CI update for exact head 3a2dd56: after rechecking the author cooldown and unchanged head/labels, I retried only the failed gate. Run 36233405008 is now attempt 3 and gate 108422917948 passed.

The downstream run is not passing: completed CPU, small-GPU, JIT-small and 5090 jobs now fail during test registration because test/registered/kernels/ops/attention/test_deep_select.py lacks a __main__ entry. Example: CPU partition 0, job 108422987758. CPU partition 1 and the multimodal unit job are fail-fast cascades; wait-for-base-a aggregates the failures. This is not evidence of a Qwen fused-kernel numerical regression.

The registration fix is already merged into main in #41341, commit a947b56. Please merge main normally into this branch (no rebase/force push), then validate the new head. Repeating these deterministic failures on the unchanged head will not help. I have no push permission to this fork, so no branch changes were made; remaining jobs are still pending and are not counted as passed.

…nstead of pinning the storage

The attention module kept its own reference to the shared [3C, C] storage, so
CPU offload left the packed buffer resident on the GPU (about 3 GiB at TP1 /
bf16). The packed view is now re-derived from to_q/to_k/to_v on each forward
when they are consecutive slices of one storage, and _apply re-shares the
weights after a .to() round trip; nothing else holds the storage.
The kernel-level numbers live in the PR description; the benchmark added CI
time without guarding anything the unit tests do not already check.

@mickqian mickqian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Exact-head CI follow-up: Base run 36319239579 is blocked at pr-gate job 108619898265 by the per-user 120-minute trigger cooldown, not by a kernel/test failure or missing run-ci label. The log says triple-mu already triggered PR Test Base at 2026-09-27T12:30:56Z; the gate rejected this run at 12:32:04Z. The logged interval reaches 14:30:56Z, subject to any newer trigger. Lint passed; finish is only an aggregate of the gate failure. The run-ci label is present and an earlier /tag-and-rerun-ci comment already exists. No duplicate trigger or attempt to bypass the cooldown made.

Exact log: https://github.com/sgl-project/sglang/actions/runs/36319239579/job/108619898265

@triple-mu

Copy link
Copy Markdown
Contributor Author

Head 58ab2e3bb6 is complete and only blocked by the author cooldown at the gate (run 36319239579 saw the VAE PR's run created in the same minute). One more commit is queued locally (3fa82f6ffe, drops the attention-prep benchmark, no code change); I will push it at the next cooldown slot (about 16:30 UTC) unless a maintainer retries the gate earlier, in which case I will push right after that run reports.

@mickqian mickqian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Exact-head CI update: after the author cooldown expired and eligibility was rechecked, only the failed gate was retried. Base 36319239579 attempt 2 passed gate 108692178390 and completed with two primary performance-failing jobs. Lint, all JIT jobs, component accuracy, BCG, unit tests and the other NVIDIA jobs passed.

  1. B200 job 108692208498, b200-cirrascale4-4567: initial + six failed-item retries exhausted. Final remaining cases are flux1_modelopt_nvfp4_t2i (E2E 1470.8926 > 1045.8875 ms; text 30.53, denoise 1250.99, decode 29.90 ms) and qwen_image_2512_modelopt_nvfp4_t2i (E2E 23909.3430 > 12062.5750 ms; text 232.14, denoise 23621.98, decode 39.66 ms). Flux2, Ideogram4 and Wan22 initially failed but recovered; they are not remaining failures.
  2. Single-H100 job 108692243876, h100-novita5-gpu-7: only qwen_image_t2i_cache_dit_enabled remains. Initial attempt failed load 43524.7897 > 43379.9375 ms; all six retries failed denoise step 49, range 66.3160-66.6587 > 65.1100 ms, final 66.5908 ms. Final total denoise 4032.66 ms, text 230.54 ms, decode 36.24 ms.

These resemble existing failures outside the changed Qwen-Image 2.1 model path, but this is not a controlled hardware attribution or proof that every shared-path interaction is excluded. No threshold/GT change or blind rerun is justified. Matching-runner development reproduction is still needed for causal attribution.

All other 13 failed leaf jobs are verified fail-fast cascades; wait-for-base-b and finish are aggregates. No fork code changes or push (push permission false). This supersedes the earlier gate-only status; the PR is not merge-ready.

https://github.com/sgl-project/sglang/actions/runs/36319239579/job/108692208498
https://github.com/sgl-project/sglang/actions/runs/36319239579/job/108692243876

Since sgl-project#41272 the Qwen-Image lossless added-QKV split applies only when
to_added_qkv is a MergedColumnParallelLinear (LoRA wrappers are called as
they are), so the plain nn.Module fake in
test_qwen_added_qkv_lossless_uses_three_reference_gemms now takes the packed
path and the test fails on main and on every PR's merge ref. The fake
subclasses MergedColumnParallelLinear and skips its __init__, which needs no
parallel state here.

(cherry picked from commit 6b44c61)
A projection that is not a MergedColumnParallelLinear (a LoRA wrapper) is
called as it is on the lossless path since sgl-project#41272; the packed fake exercises
the genuine split, the wrapped fake pins the call-through.

(cherry picked from commit 5baf93b)
The CUDA Q/K RMSNorm + complex RoPE kernel and its packed K/V variant are
tested next to the Triton complex RoPE they replace, as the other rope
kernels are; no separate test file.

(cherry picked from commit e2d324514bd790b137548a6b34ddd66ee712db20)
@triple-mu

Copy link
Copy Markdown
Contributor Author

Pushed head 427f0bc5f4:

On the two performance failures of run 36319239579 attempt 2: I have no H100 or B200 to reproduce on matching hardware, so I can only offer what the tree says. The PR changes qwen_image21.py, adds rope/qknorm_complex_rope_jit.py + its .cuh, one lazy _SPECS entry in ops/diffusion/__init__.py, docs and tests; qwen_image.py (the Qwen-Image 2512 DiT behind qwen_image_t2i_cache_dit_enabled) and the FLUX.1 pipeline are untouched, and the kernel module is imported only when a QwenImage21 attention module first calls it, so no import-time or registration side effect reaches those pipelines. For the B200 pair: the same flux1_modelopt_nvfp4_t2i and qwen_image_2512_modelopt_nvfp4_t2i cases failed the E2E baseline on #41340 run 36333720101 attempt 1 (b200-cirrascale4-0123, a PR that does not touch any DiT) and passed on its attempt 2 on the same runner. For the single-H100 qwen_image_t2i_cache_dit_enabled case (66.3 to 66.7 ms versus a 65.11 ms step baseline on h100-novita5-gpu-7) I have no cross-PR data point; if a maintainer can run that case on an idle H100 for main and this head back to back, that would settle it.

@triple-mu

Copy link
Copy Markdown
Contributor Author

Run 36365662528 (head 427f0bc5f4) finished. 45 jobs passed, including both JIT kernel jobs (so test_complex_rope.py with the folded kernel tests and test_model_fast_paths.py with the #41477 fix pass on H100), lint, the B200 job (b200-fin03-4-4567, where flux1_modelopt_nvfp4_t2i and qwen_image_2512_modelopt_nvfp4_t2i passed this time) and all four single-H100 multimodal-gen jobs. Of the 13 failures, 11 are check-pr-test-health cascades and the two aggregators.

The one real failure is multimodal-gen-test-2-gpu (1) (job 108751577915, h100-novita6-gpu-01): 8 of its 9 cases failed the E2E check together, FLUX.1, FLUX.2, Ideogram, LTX-2.5, three Wan cases and qwen_image21_t2i_tp2 alike, at 1.3x to 2.7x of their baselines (Qwen-Image 2.1 TP2: 5326.5 vs 2914.8 ms), so the host was slow for the whole 33-minute job. The same qwen_image21_t2i_tp2 case passed in run 36319239579 attempt 2 with the same DiT code. Rerunning the failed jobs.

On qwen_image_t2i_cache_dit_enabled (job 108751577891, h100-novita5-gpu-4, job passed): the step-49 check failed in 6 of 7 attempts (65.82 to 67.57 ms against an expected 45.11 ms) and passed on the 7th, while the whole-run numbers were stable across attempts (E2E 4281 to 4284 ms, mean step 79.9 ms, median step 64.0 ms) and match the same case on #41340 run 36333720101 (h100-novita-host1-gpu-1, passed at the first attempt: 4351 ms, 80.8 ms, 64.7 ms), a head with no DiT change. Both runs of this PR that tripped the step-49 check ran on novita5 hosts (gpu-7 before, gpu-4 now); the passing one ran on host1. The only shared runtime file this PR touches is ops/diffusion/__init__.py (two lazy registry entries and four export names), and qwen_image.py is untouched, so I have no mechanism to offer for a step-49-only difference. A back-to-back run of that case for main and this head on one idle H100 would settle it; I cannot do that from here.

@triple-mu

Copy link
Copy Markdown
Contributor Author

/rerun-failed-ci

@triple-mu

Copy link
Copy Markdown
Contributor Author

Attempt 2 of run 36365662528 put multimodal-gen-test-2-gpu (1) back on the same host (h100-novita6-gpu-01, job 108763102731) and it failed the same way: 7 of 9 cases over their E2E baselines by 1.6x to 3.2x (FLUX.1, FLUX.2, Ideogram, three Wan cases and qwen_image21_t2i_tp2 at 4886.1 vs 2914.8 ms; the LTX/Wan cases run at 209 s against a 74 s baseline), while every other rerun job passed again (both JIT kernel jobs, the single-H100 multimodal-gen jobs, the H200 job). That host is slow across models, so a rerun that lands on it cannot pass; could a maintainer re-run this job once it is routed to another 2-GPU host? Everything else in the run is green.

@mickqian mickqian left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Exact-head CI update for 427f0bc5f41fd7709dbb30fa4471aecaec858aa0: Base run 36365662528 attempt 2 completed with one primary failing job, dual-H100 partition 1, job 108763102731 on h100-novita6-gpu-01.

Seven cases failed E2E validation (all times below in ms):

Case E2E actual / limit Denoising stage
ideogram4_fp8_tp2_t2i 14650.7603 / 11219.4625 14327.31
wan2_2_i2v_a14b_2gpu 209444.5166 / 92264.5125 205478.89
wan2_2_t2v_a14b_teacache_2gpu 217375.2706 / 103097.7875 214839.23
wan2_1_i2v_14b_480P_2gpu 108556.9697 / 42569.4375 106324.13
qwen_image21_t2i_tp2 4886.0591 / 3643.5250 4353.68
flux_image_t2i_2_gpus 6691.7321 / 5305.3375 6465.79
flux_2_image_t2i_2_gpus 35912.5160 / 16520.1625 35099.62

Qwen21 request 1 also reports encoding 269.56 and decode 256.59 ms; request 2 was not reached. The suite finished 7 failed / 2 passed. This was only the initial pytest pass: 433.3 seconds remained, while the next failed-item retry was estimated to need 1671.8 seconds, so no retry was started. It did not exhaust six retries.

The broad cross-model slowdown is concentrated in denoising, but stage wall times cannot separate CPU dispatch, GPU kernels, offload or inter-GPU communication. This is not proof of a particular hardware cause or proof that the Qwen21 change is unrelated. A matched development-host reproduction and timeline are needed before a causal claim; no threshold/GT changes or blind rerun made.

Base large-GPU jobs 108763103369 and 108763103370 explicitly fail-fast on this root job; wait-for-base-b and finish are aggregates. Lint, all JIT jobs, component accuracy, BCG, multimodal unit and the other diffusion GPU partitions passed. Old-head B200/Cache-DiT failures must not be attributed to this head. Fork push permission is false; no branch changes made.

Exact log: https://github.com/sgl-project/sglang/actions/runs/36365662528/job/108763102731

@triple-mu

Copy link
Copy Markdown
Contributor Author

One data point for the dual-H100 partition 1 from a PR that touches no diffusion code: #40664 (Intel XPU weekly model enablement), run 36366526463, job 108754050560 on h100-novita9-gpu-23, started 01:35Z, about 50 minutes before our attempt 1 on h100-novita6-gpu-01. Every case of that partition ran at its E2E baseline there (ms, actual / baseline): qwen_image21_t2i_tp2 2884.0 and 2915.4 / 2914.8, flux_image_t2i_2_gpus 4203.4 / 4244.3, flux_2_image_t2i_2_gpus 12960.1 / 13216.1, ideogram4_fp8_tp2_t2i 9015.1 / 8975.6, wan2_1_i2v_14b_480P_2gpu 34261.8 / 34055.6, wan2_2_i2v_a14b_2gpu 72824.6 / 73811.6, wan2_2_t2v_a14b_teacache_2gpu 82401.1 / 82478.2; its four failed items were Load Latency (excluding warmup) only and passed on retry. On h100-novita6-gpu-01 the same seven cases ran at 1.6x to 3.2x of those numbers in both attempts (01:22Z and 02:24Z), Wan and FLUX included.

So the partition's baselines are attainable on the pool, and the slowdown we hit is host-wide and model-independent on that one host. That still is not a reproduction of this head on a healthy host, which I cannot produce from here; the only way to get it is to run partition 1 again once it is routed off h100-novita6-gpu-01. Could a maintainer trigger that?

@triple-mu

Copy link
Copy Markdown
Contributor Author

Rerunning the failed job once more: both previous attempts of partition 1 ran on h100-novita6-gpu-01, where every model in the partition ran 1.6x to 3.2x slower than on h100-novita9-gpu-23 fifty minutes earlier; a third attempt only helps if it is scheduled elsewhere, which I cannot control from here.

@triple-mu

Copy link
Copy Markdown
Contributor Author

/rerun-failed-ci

@triple-mu

Copy link
Copy Markdown
Contributor Author

Attempt 3 of run 36365662528 scheduled partition 1 on h100-novita8-gpu-67 and it passed, so every test job of the run is green now (70 succeeded, 8 skipped, nothing failed). The run itself still shows as queued because its two base-c-test-4-gpu-gb300 jobs have been waiting for a GB300 runner since 06:22Z; that queue is repo-wide today (another PR's pair sat from 10:35Z until it was cancelled at 11:34Z, a third has been queued since 11:12Z), so it is not something this PR can influence.

@BBuf
BBuf merged commit 2e7e080 into sgl-project:main Sep 28, 2026
415 of 483 checks passed
@triple-mu
triple-mu deleted the pr/qwen-image21-attention-fusions branch September 28, 2026 13:53
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]>
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]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diffusion SGLang Diffusion documentation Improvements or additions to documentation jit-kernel run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants