Skip to content

[SM120] Add optional FlashInfer PCIe-IPC all-reduce for switch-free hosts - #34528

Merged
Fridge003 merged 30 commits into
sgl-project:mainfrom
AliceChenyy:feat/flashinfer-pcie-ipc-ar
Sep 29, 2026
Merged

Fridge003 merged 30 commits into
sgl-project:mainfrom
AliceChenyy:feat/flashinfer-pcie-ipc-ar

Conversation

@AliceChenyy

@AliceChenyy AliceChenyy commented Aug 12, 2026 •

Copy link
Copy Markdown
Contributor

Motivation

On switch-free intra-node hosts — no NVLink, no multicast, every peer transfer crossing the CPU root complex — none of SGLang's custom all-reduce backends apply. CustomAllreduce and QuickAllReduce assume NVLink/multicast, pymscclpp assumes its own fabric, so on these machines every per-layer reduction falls back to NCCL. NCCL's ring is bandwidth-optimal but latency-poor at decode message sizes, and it shows up directly in TPOT.

FlashInfer's pcie_ipc kernels (flashinfer-ai/flashinfer#4393) target exactly this fabric: naive all-to-all peer writes collapse here, so the kernels stage their pushes to keep one outbound and one inbound stream per rank, and the 8-rank path uses a 4+4 island decomposition so the scarce cross-socket link carries the minimum.

This affects the whole RTX PRO 6000 / RTX 6000D class, where SGLang is otherwise well supported.

Scope. This is a decode-latency path, not a general NCCL replacement. It is sized so
prefill chunks stay on NCCL (see Workspace sizing), because these kernels win by latency
at small messages and lose to a ring at 200 MB. On a host that also wants prefill improved,
this composes with a bandwidth-optimal backend rather than replacing it.

Modifications

Opt-in behind SGLANG_ENABLE_PCIE_IPC_ALLREDUCE (default off). +527/−0 across five files:

  • distributed/device_communicators/pcie_ipc_ar.py (new) — adapter between GroupCoordinator and PcieIpcAllReduceWorkspace.
  • distributed/parallel_state.py (+29) — construction, one "pcie_ipc" branch in _resolve_outplace_all_reduce_method, one dispatch arm. Built only on the TP group; other groups would just pin IPC buffers without issuing the reductions these kernels target.
  • environ.py (+11) — the gate plus SGLANG_PCIE_IPC_MAX_NUMEL.
  • model_executor/runner/base_runner.py (+9) — one prepare() call from warmup, before the FlashInfer autotune context opens. See Autotuning for why the timing is load-bearing.

Two design points worth review:

No size heuristic lives in SGLang. should_pcie_ipc_ar() delegates to workspace.supports(), which consults FlashInfer's own tuning table. A shape the kernels do not beat is reported unsupported and the caller keeps its NCCL path. This avoids a threshold knob that would need per-machine tuning and would drift from the kernel side. SGLang's job is to make sure that table is populated for this host and these shapes rather than left on the seed policy -- see Autotuning.

The workspace is built on the first eligible tensor, not at group construction. It cannot grow afterwards and costs ~2 * world_size * max_numel * itemsize per rank, so it must be sized for the largest reduction the model issues — one prefill chunk, chunked_prefill_size * hidden. chunked_prefill_size is in the server args but hidden is not known when the group is built, so construction is deferred to the first reduction, whose trailing dimension is exactly that. Ranks run the same reduction sequence, so they reach that call with the same shape and build the same workspace without extra exchange.

Sizing it for a prefill chunk instead is the wrong trade, which is worth
spelling out because an earlier revision of this PR did exactly that. These
kernels win by latency at small messages; a prefill chunk is three orders of
magnitude larger than a decode reduction, which is NCCL ring territory. Measured
at 8 ranks, TP8, 8k context:

workspace TTFT TPOT output tok/s
NCCL only 1910 ms 21.14 ms 35.02
prefill-sized (chunked_prefill_size * hidden) 3176 ms 13.64 ms 38.43
decode-sized (this PR) 1849 ms 13.62 ms 48.05

Routing prefill through the kernels costs 66% on TTFT and buys nothing on TPOT.
The decode-sized workspace is also ~250x smaller, which matters at long context:
at 128k with 4 concurrent requests the prefill-sized workspace regressed TPOT by
45% (122.33 ms against NCCL's 84.50 ms), and that regression disappears once it
is sized for decode (84.60 ms).

Autotuning

supports() answers from FlashInfer's tuning table, so what is in that table decides both which
shapes reach the kernels and which launch config they get. Left alone the table holds FlashInfer's
seed policy — a default, not a measurement of this host — so this wires the autotuner in: the
workspace is constructed with tune_batches bounded by what it will actually accept and with an
explicit tune_cache path, the coordinator's cpu_group is handed down as the autotuner's
rendezvous group, and tune() runs once when the workspace is built.

The timing is the load-bearing part. The workspace is built on the first eligible reduction,
and that reduction arrives inside SGLang's own FlashInfer autotune pass. FlashInfer declines to
profile a collective from an autotune context it did not open, so tune() returned having measured
nothing while still returning cleanly — zero Tuning flashinfer::pcie_ipc_all_reduce lines and no
cache written. prepare(hidden) is therefore called from the runner's warmup, just before that
context opens, which is where vLLM's port of these kernels does the same thing. _tune() refuses
and says so if it still finds itself nested, and it logs how many shapes tune() actually covered
rather than only that it returned: an autotune that measures nothing otherwise reads as a success,
which is exactly how two revisions of this change were misread.

Measured on 4x RTX PRO 6000 Blackwell SE (SM120, PCIe, no NVLink), TP4, DeepSeek-V4-Flash,
decode-only TPOT via a warm-prefix method, 2 repeats per cell. Baseline is this PR's own tree with
the backend off, so both columns share one NCCL path:

ISL conc FI AR off as first submitted with this fix
8k 1 9.53 ms 8.62 8.18
8k 8 14.14 14.64 12.75
8k 32 23.92 26.01 21.28
32k 1 9.10 8.36 8.25
32k 8 14.68 14.99 13.32
32k 32 27.75 29.89 24.93
128k 1 9.33 8.60 8.47
128k 8 13.70 13.99 12.34

As first submitted this backend regressed decode at concurrency >= 8 (+2% to +4%); with the
table populated it is -9% to -14% across every cell. GSM8K 100q: 0.970.

Where the win actually comes from, since it is not where I first assumed. Running the same
build with the tuning genuinely executed and with it silently skipped lands within 1% on all eight
cells. The measured tactics are worth almost nothing here; the gain is the bucket alignment that
tune_batches brings, which changes which entry each shape resolves to. FlashInfer's seed tactics
are close to optimal on this fabric — what was wrong was asking the table about buckets the
workspace would never serve. The tuning call is still worth keeping: it is what makes the table
this host's own rather than a default, and on a fabric whose seed policy fits less well it is the
part that adapts.

Two consequences worth knowing before deploying:

  • The cache key carries the PCIe topology (pcieswitch-pairs on this host, rootcplx-noswitch on
    another 8x SM120 box). Tuning tables do not transfer between machine types; a new host pays
    the measurement once, about 2 s for six shapes, and reuses it after that.
  • Autotuning replays kernels and cannot run under graph capture. If the first reduction still
    arrives there, the seed policy stays in force and a warning says so.

Accuracy

GSM8K, 200 questions, same server and args as the perf runs:

arm accuracy invalid
NCCL 0.960 0.000
PCIe-IPC, prefill-sized workspace 0.955 0.000
PCIe-IPC, decode-sized (this PR) 0.945 0.000

The 0.015 spread is 3 questions out of 200, within binomial noise at this sample
size (SE ~= 0.015). At the kernel level, 10 shapes from 1 to 16384 tokens at
world 8 / hidden 6144 / bf16 were compared elementwise against NCCL with 0
mismatches; the maximum absolute difference is a constant 2.5e-1, one bf16
quantization step at that magnitude, i.e. accumulation order rather than
corruption.

Benchmarking Results

One 8x RTX PRO 6000 Blackwell Server Edition host, GPUs 0-3 and 4-7 on separate
NUMA nodes, no NVLink. Same tree, same client, same server args; the arms differ
by one environment variable.

image       lmsysorg/sglang:nightly-dev-cu13-20260812-c7c03ec5
sglang      c54dc4582 + this branch
flashinfer  0.6.15.post1 + flashinfer#4393 @ 090e6466 (the PR was force-pushed on 08-12; this is the rebased equivalent of the 6573c65 the first numbers were taken on)
torch       2.13.0+cu130
sgl-kernel  0.4.6.post1
driver      595.58.03
server      --tp 8 --quantization modelopt_fp4 --kv-cache-dtype fp8_e4m3
            --chunked-prefill-size 16384 --mem-fraction-static 0.82
            --disable-radix-cache --disable-custom-all-reduce --cuda-graph-max-bs-decode 64
client      bench_serving random, --random-range-ratio 1.0, --num-prompts 3x bs, OSL 256

Mean values. KV pool was 342912 tokens in every arm; #cached-token was 0 on
every prefill, so no TTFT is a prefix-cache artifact.

TTFT (ms)

ISL / batch NCCL this PR
8k, bs1 1909.68 1848.65
8k, bs4 6324.39 6209.99
128k, bs1 33384.58 33410.24
128k, bs4 111272.74 111421.98

TPOT (ms)

ISL / batch NCCL this PR
8k, bs1 21.14 13.62 (-36%)
8k, bs4 30.30 25.23 (-17%)
128k, bs1 21.51 14.11 (-34%)
128k, bs4 84.50 84.60

Output throughput (tok/s)

ISL / batch NCCL this PR
8k, bs1 35.02 48.05 (+37%)
8k, bs4 72.82 80.93 (+11%)
128k, bs1 6.58 6.92 (+5%)
128k, bs4 7.07 7.06

TPOT is where these kernels pay: -34% to -36% at bs1, and the ratio does not
depend on context length, since a decode reduction's size is set by the batch.
TTFT and the 128k bs4 cells are level with NCCL by construction -- those
reductions are above the workspace bound and stay on NCCL.

Before any of this was measured, all 56 ordered GPU pairs were verified to carry
data intact. A sister host with the same driver returned zeroed buffers on every
cross-device copy while nvidia-smi topo -p2p r reported all-OK; a bandwidth
test does not catch that.

Known limitations

  1. Requires a recent FlashInfer. [feat]custom all reduce kernel flashinfer-ai/flashinfer#4393 merged on 2026-08-20, so PcieIpcAllReduceWorkspace is available upstream and its signature is settled. The ImportError path degrades to NCCL with a warning, so builds without the module are unaffected.

  2. TP4 coverage arrived mid-review. Earlier revisions of this description said the
    kernels had no effect at world_size == 4: FlashInfer's policy table gated that branch on
    hidden == 4096 exactly, so GLM's 6144 was rejected on every shape. Upstream has since
    removed that constraint (remove hidden size constraint in flashinfer#4393, closing
    flashinfer#4463), and TP4×PP2 now
    works. Measured on the same host, against NCCL:

    ISL / batch TPOT output tok/s
    8k, bs1 20.55 → 18.49 (-10%) 37.19 → 40.28 (+8%)
    8k, bs4 31.74 → 30.24 (-5%) 87.34 → 90.26 (+3%)
    128k, bs1 20.80 → 18.79 (-10%) 11.08 → 11.33 (+2%)
    128k, bs4 120.92 → 121.26 14.10 → 14.08

    The gain is smaller than at 8 ranks (-10% against -36%), which is what the fabric predicts:
    at 4 ranks NCCL has half the peers to reach and a less degraded baseline to beat. Kernel
    numerics at world 4 / hidden 6144: 6 shapes, 0 skipped, 0 mismatches.

  3. Not the best option at every point. On the same host a bandwidth-optimal FP8-compressing ring beats these kernels on prefill TTFT (1381 ms vs 2239 at 8k bs1) while losing on decode. There is no single best all-reduce on this fabric, which is part of why this is opt-in rather than autodetected.

  4. Single host, single model, bf16 reductions only. No world-size-2 coverage, no unit test yet.

Checklist

  • Format with pre-commit run --all-files
  • Accuracy validation (GSM8K vs NCCL)
  • Upstream flashinfer#4393 merged (2026-08-20)
  • Unit test (test/registered/unit/distributed/test_pcie_ipc_ar.py, CPU-only)

CI States

Latest PR Test (Base): ✅ Run #36304664120
Latest PR Test (Extra): ⚠️ Not enabled -- add run-ci-extra label to opt in.
Latest PR Test (AMD ROCm 10): ❌ Run #36304664266

AliceChenyy and others added 7 commits August 11, 2026 22:58
On switch-free intra-node hosts -- no NVLink, no multicast, every peer
transfer crossing the CPU root complex -- the existing custom all-reduce
backends do not apply, so every per-layer reduction falls back to NCCL.
FlashInfer's pcie_ipc kernels target exactly this fabric.

Add an opt-in communicator behind SGLANG_ENABLE_PCIE_IPC_ALLREDUCE. It is
a thin adapter: shape coverage is delegated to FlashInfer's own tuning
table via workspace.supports(), so an unsupported shape is reported as
such and the caller keeps its NCCL path. No size heuristic lives here.

The workspace cannot grow after construction, so it is sized for the
largest reduction the model issues -- one prefill chunk. The hidden size
is unknown when the group is built, so construction is deferred to the
first eligible tensor; ranks issue the same reduction sequence and so
agree on the shape without extra exchange.

Measured on one 8x SM120 host (GPUs 0-3 and 4-7 on separate NUMA nodes),
GLM-5.2-NVFP4, TP8, 8k context, against NCCL: TPOT 40.16 -> 13.70 ms,
output throughput 27.31 -> 77.27 tok/s.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The PCIe-IPC path was resolved ahead of ca, so on a host that does have
NVLink -- where CustomAllreduce applies and is the faster of the two --
enabling the flag would have handed those reductions to the slower
backend. FlashInfer's topology probe only looks for switch-local peers;
it does not detect NVLink and so cannot decline on its own.

Order is the fix: ca answers first on the fabrics it supports, and the
PCIe-IPC kernels pick up only what it leaves, which is exactly the
switch-free case they were written for.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
The workspace was sized for one prefill chunk so that prefill reductions
would also run on these kernels. Measured on 8x SM120, TP8, 8k context,
that is the wrong trade: against NCCL as the baseline, TTFT 1910 ms and
TPOT 21.14 ms, a prefill-sized workspace gives 3176 ms / 13.64 ms while a
decode-sized one gives 1849 ms / 13.62 ms. Handing prefill to the kernels
costs 66% on TTFT and buys nothing on TPOT -- these kernels win by latency
at small messages, and a prefill chunk is three orders of magnitude larger
than a decode reduction, which is NCCL ring territory.

The decode-sized workspace is also ~250x smaller, which matters at long
context: at 128k with 4 concurrent requests the prefill-sized workspace
regressed TPOT by 45% (122.33 ms against NCCL's 84.50 ms), and that
regression disappears once it is sized for decode (84.60 ms).

Derive the bound from the decode phase's captured batch. Verified end to
end: the default builds max_numel = 393216 on this config and reproduces
an explicit cap within 0.3% on every cell. GSM8K over the four runs spans
0.945-0.960, within binomial noise at 200 questions.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Every way this adapter declines a reduction is silent by design: an
unsupported world size, a missing flashinfer build, a workspace that
cannot be allocated, and a shape outside the tuning table all end in the
caller keeping its NCCL path. That is the right behaviour and the reason
it needs tests -- a regression there does not raise, it just quietly
stops using the kernels, which reads as "the kernels are slow".

CPU-only: the constructor is bypassed and the workspace stubbed, since
none of the logic under test needs a process group or a device.

Also pins the decode-sized default, so re-sizing the workspace for a
prefill chunk cannot come back unnoticed.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
They had landed after the Mori RDMA transfer timeout, which is an
unrelated block; the repo's env-var conventions ask for entries to sit
under the section they belong to. These two belong with
CustomAllReduceV2 and the deterministic all-reduce knobs.

Also drops "so there is no size knob here" from the enable flag's
comment, which read oddly directly above a size knob. The point it was
making -- that shape coverage is FlashInfer's decision and not something
this env var controls -- is now said plainly.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Drops an unused import and reflows one assertion.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
@ormandj

ormandj commented Aug 14, 2026

Copy link
Copy Markdown
Contributor

TP2 integration result for DeepSeek-V4-Flash-0731 on 2× RTX PRO 6000 Blackwell Max-Q (SM120), connected over PCIe Gen4 x16.

The measured consumer head was 3894b9014b30549fe7749c8dfeb0eaedecfa3e8f. Inspection of current head f28d875d121a1ec0ab879ef54873220c2ed23c6a found the same workspace-width derivation.

With DSPARK block size 5, target verification uses six token rows per running request. The derived workspace was:

32 max decode batch × 4096 hidden = 131,072 elements

The C32 target-verification bound is:

32 × 6 × 4096 = 786,432 elements

The 131,072-element workspace admitted at most floor(32 / 6) = 5 concurrent requests. In the C8 trace, all 11,938 all-reduces used NCCL and zero used PCIe-IPC.

Setting SGLANG_PCIE_IPC_MAX_NUMEL=786432 routed all 11,938 C8 reductions through PCIe-IPC. In matched 127-step profiler captures:

  • C1 mean full-model step duration changed from 15.681 ms with NCCL to 14.965 ms with PCIe-IPC (-4.57%).
  • C8 mean full-model step duration changed from 35.399 ms with NCCL to 33.421 ms with PCIe-IPC (-5.59%).
  • Per-rank workspace allocation increased from approximately 2 MiB to 12 MiB.
  • Logged max_total_num_tokens remained 771,072.
  • Prefill-sized reductions remained on NCCL.

The FlashInfer backend was #4393 at dca29052ac92789df4df95455170209a93b1ee73.

A later integration using current SGLang head f28d875d121a1ec0ab879ef54873220c2ed23c6a, the same FlashInfer head, and the explicit 786,432-element workspace completed five repetitions at every decode concurrency from C1 through C32, five cache-cold prefill repetitions at 8K, 32K, 64K, and 128K, GSM8K with 1,261/1,319 correct and zero request errors, and 8/8 long-output requests. These later results are integration coverage, not isolated performance attribution.

…eed policy

The workspace was built without ever calling tune(), so supports() answered
from FlashInfer's seed policy and the kernels ran untuned tactics. FlashInfer
needs a host-side group to rendezvous the autotuner on every rank, so pass the
coordinator's cpu_group down and tune once at workspace build. Results persist
to FlashInfer's cache, so only the first server on a host pays for it.

Autotuning replays kernels and cannot run under graph capture; if the first
eligible reduction arrives there, keep the seed policy and say so.
The workspace was built without a tune_cache, so the measured tactics lived
only in that process: every server start re-measured them, contradicting the
claim that only the first one pays. Name FlashInfer's default path explicitly
so the file is written and the next start reuses it.
Building the workspace on the first eligible reduction puts the tuning call
inside SGLang's own FlashInfer autotune pass, and FlashInfer declines to profile
a collective from an autotune context it did not open -- so tune() returned
having measured nothing, and the kernels kept running the seed policy. Verified:
zero 'Tuning flashinfer::pcie_ipc_all_reduce' lines and no cache written.

Add prepare(hidden) and call it from the runner's warmup just before the
autotune context opens, which is where vLLM's port does the same thing. _tune()
now refuses and says so when it finds itself nested, rather than reporting a
tuning that did not happen.
tune() declines shapes silently, so a log line that only proves no exception
was raised is how an autotune that measured nothing reads as a success -- which
is exactly how the previous two revisions here were misread.
@AliceChenyy
AliceChenyy marked this pull request as ready for review August 28, 2026 09:45
AliceChenyy and others added 3 commits August 31, 2026 09:13
One conflict, in environ.py's all-reduce block: upstream deleted
SGLANG_ENABLE_CUSTOM_ALL_REDUCE_V2_MULTINODE (no references remain anywhere
in the tree) and moved the flashinfer/triton split-tile vars elsewhere in the
file. Kept only this PR's two vars; everything else follows upstream.

Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>

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

Left some comments

from sglang.test.ci.ci_register import register_cpu_ci
from sglang.test.test_utils import CustomTestCase

register_cpu_ci(est_time=5, suite="base-c-test-cpu")

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.

base-c-test-cpu is no longer a registered suite. Could we move this unit test to base-a-test-cpu?

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.

Moved to base-a-test-cpu. Confirmed with collect_tests that the file is now picked up there, and that nothing in the tree still references base-c-test-cpu.

if (
envs.SGLANG_ENABLE_PCIE_IPC_ALLREDUCE.get()
and self.world_size > 1
and "tp" in self.unique_name

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 also matches attention_tp and moe_tp. Some of those groups have no pynccl or custom all-reduce communicator, so they hit the assertion at line 1032 before reaching the PCIe IPC code

This causes using the SGLANG_ENABLE_PCIE_IPC_ALLREDUCE with a model like Qwen3-8B TP4/DP2 with DP attention and Qwen3-30B-A3B TP4/EP2 to fail. I am not too certain on the scope of this PR, but I think this is definitely worht bringing up/addressing. If they’re outside its scope, please keep this backend disabled for them.

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.

Good catch, and thank you -- reproduced both failures on 8x SM120. eligible_group() now matches the group name exactly, so attention_tp / moe_tp / pdmux_prefill_tp keep NCCL; Qwen3-32B TP4/DP2 and Qwen3-30B-A3B TP4/EP2 both start with the flag set, where before they hit the assertion during graph capture.

try:
from sglang.srt.server_args import get_global_server_args

config = get_global_server_args().cuda_graph_config

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.

Could we read the resolved configuration here, or pass the workspace size from the runner into prepare()?

After upstream’s configuration changes, this field stays None when I pass --cuda-graph-max-bs 128. The resolved value in get_exec().graph.cuda_graph_config.decode.max_bs is 128, but this function returns None, so the workspace falls back to 64 rows.

A test using prepare_server_args() would catch this.

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.

It was worse than a None: ServerArgs has no cuda_graph_config at all, so the read raised AttributeError on every call and the bare except made the 64-row fallback permanent. It now reads get_exec().graph.cuda_graph_config and warns when it falls back; measured 16 and 32 rows for --cuda-graph-max-bs 16 and 32, against a constant 64 before.


Decode runs inside a captured graph, so the largest captured batch bounds the
reduction. Speculative decoding verifies several tokens per sequence in one
forward, and the decode phase's ``max_bs`` is the batch the runner captures

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.

max_bs counts requests, so it doesn’t include speculative token width. With four draft tokens, 64 requests need 256 rows for verification. Please account for that when sizing the workspace and update this comment.

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.

You are right, and the docstring was wrong to claim otherwise -- both are fixed. The width is now max_bs * draft_tokens, verified on hardware: 32 requests with 4 draft tokens size the workspace for 128 rows.

comm._device = torch.device("cpu")
comm._world_size = world_size
comm._workspace_cls = workspace_cls or MagicMock()
comm._build_failed = False

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.

Could we update this helper and mock _tune() for these sizing and shape tests? The later tuning change added _cpu_group, but this helper never sets it. _ensure_workspace() now calls _tune(), which reads that field, so six of the nine tests fail.

Adding _cpu_group = None alone still fails when FlashInfer is unavailable, because _tune() imports it before checking the field. We could mock tuning here and test its behavior separately.

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.

Done -- the helper sets _cpu_group and stubs tuning, and tuning is covered separately in TestTuning. As you noted, _cpu_group = None alone was not enough, since _tune imports FlashInfer before it reads the field.

def should_pcie_ipc_ar(self, inp: torch.Tensor) -> bool:
"""Whether FlashInfer has a tuned configuration for this exact shape.

``supports`` consults the tuning table, so a shape the kernels lose on is

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.

Could we update this description of supports()? The earlier version used a performance-based table to reject some shapes, but that changed upstream it seems. supports() now checks whether the kernel can run the tensor, so it can accept shapes even when NCCL would be faster.

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.

Rewritten, here and in the module docstring -- supports() reports whether the kernels can run a shape, not whether they beat NCCL, so the size bound is what keeps prefill-sized reductions on NCCL.

# After ``ca``: the PCIe-IPC kernels are for hosts where no fabric-specific
# backend applies. They do not probe for NVLink, so on a host that has it
# this ordering is what keeps the faster backend in front of them.
if (

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.

In eager execution, the symmetric-memory branch at lines 757–767 returns through NCCL before reaching this code. Compiled execution can reach this code and select IPC instead. Could we clarify which backend should take priority when both this feature and --enable-symm-mem are enabled? If IPC should take priority in both cases, the earlier branch needs updating.

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.

Made explicit: the two flags are independent opt-ins, and with both set the backend now keeps symmetric memory and logs once. Deciding it in eligible_group() rather than in the dispatch means eager and compiled behave the same, so the earlier branch needs no change.

"""
from flashinfer.autotuner import AutoTuner

if AutoTuner.get().is_tuning_mode:

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.

The comment says FlashInfer won’t allow that call, is this correct?

Is there another reason we need this check? If so, could we explain that reason here? Otherwise, we could remove the check and update the comments.

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.

You were right to question it -- the comment was wrong. autotune() is reference-counted and workspace.tune() installs its own process group, so FlashInfer does permit the call; the real reason to decline is that tune() mutates shared autotuner state for the length of the call and would time the enclosing pass with our settings. Comment now says that.

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.

Correction to my earlier reply: the reason I gave was also wrong. tune() restores the process group and (warmup, repeat) in a finally, with a comment saying a caller may be tuning something else -- so nesting is supported and there is no enclosing state to protect. Kept the guard for the reason you gave, and the comment now says that.

self._bound_stream = stream
return self._workspace.all_reduce(inp)

def destroy(self) -> None:

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.

The workspace needs to be released before the process groups are destroyed, because FlashInfer uses those groups during cleanup.

Could we call this method from GroupCoordinator.destroy()?

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.

Now called from GroupCoordinator.destroy(), ahead of destroy_process_group(). One caveat worth flagging: the server shutdown path does not currently call destroy_model_parallel() at all, so today this is reached from benchmark/one_batch.py and tests -- verified clean there.

return
try:
tuned = self._workspace.tune(
[hidden], dtype=torch.bfloat16, tune_group=self._cpu_group

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.

supports() accepts fp16 tensors, but this call only tunes bf16. FlashInfer stores separate tuning results for each dtype, so an fp16 model won’t use the results from this call.

We should either tune fp16 when the model uses it, or explicitly limit this adapter to bf16.

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.

Limited to bf16, with a one-off warning for anything else. Tuning the model dtype would need measurements we do not have, so declining seemed the honest option until then.

base-c-test-cpu is no longer a registered suite, so this file was collected by
nothing. The mock helper also never set _cpu_group, which _ensure_workspace now
reads through _tune, so six of the nine cases errored once that call was added.

Register on base-a-test-cpu, give the helper the field, and stub tuning there so
the sizing and shape cases exercise what they claim to. Tuning gets its own
class: every way it declines returns normally, which is indistinguishable from a
successful tune unless asserted.
…eardown

"tp" in unique_name also matches attention_tp, moe_tp and pdmux_prefill_tp.
Those groups carry no pynccl or custom all-reduce communicator, so a reduction
dispatched to them trips the assertion in _all_reduce_out_place instead of
falling back: with the flag set, Qwen3-32B TP4/DP2 and Qwen3-30B-A3B TP4/EP2
fail during CUDA graph capture. Reproduced on 8x SM120, fixed by matching the
group name exactly; the rule now lives next to the backend with tests.

Separately, GroupCoordinator.destroy() never released the workspace. Release it
there, ahead of destroy_process_group(), because FlashInfer collectives on that
group while tearing the workspace down.
ServerArgs has no cuda_graph_config: the resolved config moved onto the exec
bag, so the old read raised AttributeError on every call and a bare except
turned that into a permanent, silent fallback to a fixed 64 rows. Whatever
--cuda-graph-max-bs an operator passed, the workspace ignored it.

Read the exec bag, and multiply by the speculative draft width -- max_bs counts
requests, not rows, so a verify pass needs max_bs * draft_tokens of them. The
fallback now says so instead of staying quiet. Measured on 8x SM120: max-bs 16
and 32 give 16 and 32 rows where both previously gave 64, and 32 requests with
4 draft tokens give 128.

Also decline anything but bf16. FlashInfer keys tuning results by dtype and
only bf16 is tuned here, so an fp16 model would have run the seed policy while
looking tuned.
…ld to symm-mem

prepare() sat inside _flashinfer_autotune, which only runs for models that
autotune; every other model built the workspace lazily on its first reduction,
inside another autotune context, where tuning declines. Move it to the general
warmup path next to the other pre-initialised workspaces.

That lazy path also ignored --disable-flashinfer-autotune: on 8x SM120 the
adapter tuned seven shapes and wrote a cache with the flag set. Honour it.

Finally, --enable-symm-mem and SGLANG_ENABLE_PCIE_IPC_ALLREDUCE are independent
opt-ins, and with both set the result depended on the execution mode -- eager
returned through symmetric memory's NCCL branch, compiled selected IPC. Keep
symmetric memory, the pre-existing feature, and say so once.
@github-actions github-actions Bot added the documentation Improvements or additions to documentation label Sep 22, 2026
@b8zhong

b8zhong commented Sep 22, 2026

Copy link
Copy Markdown
Collaborator

/rerun-test test/registered/unit/distributed/test_pcie_ipc_ar.py

@github-actions

github-actions Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Results for /rerun-test test/registered/unit/distributed/test_pcie_ipc_ar.py:

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

cd test/ && python3 registered/unit/distributed/test_pcie_ipc_ar.py

@b8zhong b8zhong added the run-ci CI: run the baseline test suite on this PR label Sep 22, 2026

@Jiminator Jiminator left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

LGTM

@Jiminator Jiminator added the bypass-fail-fast CI: a failing job no longer aborts its siblings (lint still gates) label Sep 27, 2026
@Fridge003
Fridge003 merged commit c7be3e9 into sgl-project:main Sep 29, 2026
285 of 320 checks passed
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]>
Jiminator added a commit to AliceChenyy/sglang that referenced this pull request Oct 22, 2026
Conflicts:
- environ.py: main dropped DsparkFoldedSampling (sgl-project#43668) and
  SGLANG_ENABLE_CUSTOM_ALL_REDUCE_V2_MULTINODE (sgl-project#35061) and added the
  PCIe-IPC knobs (sgl-project#34528); keep B12xOneshotCap and the SGLANG_B12X_* knobs
  on top of that.
- layers/communicator.py: deleted on main by the layer_boundary refactor
  (sgl-project#41439, sgl-project#41554, sgl-project#41555). Port the b12x hooks to their new homes:
  b12x_ar_fusion_applies next to the flashinfer/aiter predicates in
  layer_boundary/residual/add_norm.py, consulted by fused_attn_input and
  fused_ffn_input (the old prepare_attn / CommunicateWithAllReduceAndLayerNormFn
  sites) and by _batch_allows_deferred_sum (the old
  should_fuse_mlp_allreduce_with_next_layer).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bypass-fail-fast CI: a failing job no longer aborts its siblings (lint still gates) documentation Improvements or additions to documentation run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants