Skip to content

[Diffusion] Speed up LTX-2 guidance and video output - #43667

Merged
BBuf merged 6 commits into
mainfrom
codex/ltx2-guidance-bcg
Oct 13, 2026
Merged

BBuf merged 6 commits into
mainfrom
codex/ltx2-guidance-bcg

Conversation

@BBuf

@BBuf BBuf commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

LTX-2's advanced CFG/STG/modality-guidance branches bypass the existing breakable CUDA graph runner. Video decoding also introduces avoidable channels-last layout copies and full-video CPU conversion work. This PR reduces those costs while preserving eager video and audio outputs.

Modifications

  • Route the existing advanced-guidance calls through the shared BCG runner and preserve guider/LoRA settings during synthetic warmup. Construct mixed perturbation masks on the device so capture does not copy from unpinned host memory.
  • Let LTX's fixed-shape, single-GPU SDPA attention stay inside the captured region. Other attention backends, sequence-parallel paths and varlen metadata keep their existing eager breaks. Request-level backend overrides bypass graphs captured with the default backend.
  • Extend the existing residual-gate kernel to read one [B, 1, D] gate row per batch. Noncontiguous AdaLN gate views copy only the small gate, without expanding it over tokens. FP16/BF16 product/add rounding is unchanged.
  • Keep LTX VAE reflection padding in channels-last storage for ordinary CUDA Conv3d. Convert raw-frame output on the GPU in chunks of at most 64 MiB of FP32 data (or one frame), then complete the pinned CPU transfer before returning NumPy storage. Pinned allocation or CUDA conversion OOM falls back to CPU postprocessing. The generic NumPy thread-pool change has been removed.

Merged main through 11bfd868ac36 (#43656): preserve the shared bounded MP4 encoder, audio-first ordering on eligible requests, and encoder fallback. Successful MP4 encoding skips raw-frame materialization; only raw output/fallback calls the chunked postprocessor. No new test files remain: coverage lives in the existing LTX BCG, VAE, frame-output, and modulation suites.

SGLang uses eager + BCG, with torch.compile disabled. BCG still requires the existing enable flag; the VAE/output improvements apply without it.

Accuracy Tests

  • The existing LTX BCG, VAE layout, frame callback/output, video encoding, Wan streamed-encoding and modulation suites pass 1,089 tests / 58 subtests on GB300 at cleanup commit 5c377d8. After the final fallback-buffer cleanup, the frame-output suite passes again at dfd8189: 19 tests / 15 subtests.
  • Coverage retains changed-input/mask replay, request backend fallback, advanced-guidance warmup, batched gates, reflection padding/cache, exact raw-frame conversion, output ownership and MP4/audio fallback ordering. Bounded-conversion and CUDA-conversion-OOM cases extend the existing frame-output suite. All five standalone test files from the initial PR have been consolidated or removed; the existing registered diffusion bridge discovers the retained cases.
  • Full-model A-B-B-A regression at final head dfd8189 against main 11bfd868ac36 checks 32 outputs across two prompts/seeds. Raw video hashes after canonical RGB8 conversion and audio hashes match the eager controls; all saved MP4 files match byte for byte. Native SGLang execution, actual BCG capture, identical schedules and BF16 untiled decode settings are verified.
  • A real CUDA allocator-cap probe uses BF16 [1, 3, 121, 1024, 1536] input with 512 MiB of headroom. The previous full-clip FP32 conversion raises CUDA OOM; the chunked path matches the CPU reference exactly with a 1,258,291,200-byte peak under the 1,679,818,752-byte cap. This is a controlled allocator-cap test, not a claim about a physically full production GPU.
  • Pre-commit passes. Targeted H100 CI for the final head is dispatched separately.

Speed Tests and Profiling

Regression after integrating #43656

Compare main 11bfd868ac36 with final head dfd8189 on the same GB300 and PyTorch 2.14.1+cu130, using the pinned checkpoint and native BF16 recipe below. A-B-B-A uses four fresh processes. Each process runs two prompts/seeds with one warmup and one measurement per prompt in each output mode: 16 timed requests total. The SDK timer includes complete CPU output or complete MP4 writing; evidence hashing is outside the timer. BCG is enabled only for the candidate; torch.compile is disabled in both.

Output mode Main A / D median Candidate B / C median Paired latency reduction
Raw CPU video/audio 30.204 / 30.363 s 26.595 / 26.578 s 11.95% / 12.47%
Fully written MP4 29.673 / 29.657 s 27.842 / 27.833 s 6.17% / 6.15%

The pooled medians improve by 11.97% for raw CPU output and 6.16% for fully written MP4. This is a small matched two-prompt regression, not a broad workload performance study. The saved-output comparison includes main's shared bounded encoder; it does not reuse the older baseline numbers below.

Original benchmark and profiling evidence

The following table records the original implementation against 33d2ef175666; it is not a benchmark against main after #43656. Updated-main validation is recorded above.

One GB300, resident BF16 weights, uncached text encoding, 1536×1024×121 output at 24 fps. Stage 1 uses 768×512×121 for 40 steps; stage 2 uses three refinement steps. Both frameworks use the same observed sigma schedules, BF16 VAE input and weights, untiled decoding and disabled autocast. CPU affinity is fixed to cores 8–15 on NUMA node 0.

Stage 1 uses video/audio CFG 3/7, STG 1, modality guidance 3, rescale 0.7 and STG block 29. Distilled LoRA strength is 0/1 across the two stages. A benchmark adapter selects these existing request-extra fields in both SGLang baseline and candidate, because the original LTX-2 sampling class does not expose the later per-modality fields.

Each fresh process has nine warmup requests and fifteen measured requests across three prompts/seeds. Run order is stock → candidate → Omni → Omni → candidate → stock. The metric ends when the native SDK returns complete CPU video frames and audio; file saving and evidence hashing are excluded.

Mode Repeat 1 median Repeat 2 median
SGLang eager baseline 29.984 s 29.864 s
SGLang eager + BCG candidate 26.161 s 26.185 s
vLLM-Omni + regional torch.compile 26.221 s 26.242 s
Latency reduction vs SGLang eager 12.75% 12.32%
Latency reduction vs Omni compile 0.23% 0.22%

The cross-framework median advantage is small (about 0.22%); the repeatable within-SGLang improvement is the main performance result. This is a result for the measured workload, not a claim that every prompt or configuration outperforms Omni.

A separate profile confirms one real captured segment for each denoising stage, without signature misses. VAE GPU time falls from 1,048.8 ms to 529.2 ms, with copy-kernel time falling from 546.1 ms to 25.5 ms. Profiled runs are excluded from the latency table; those stage timings are not additive estimates of end-to-end gain.

Native peak reserved GPU memory decreases from 102,350 MiB to 99,222 MiB (−3.05 GiB) in a separate one-warmup/one-measurement diagnostic for the same workload. This diagnostic's latency is excluded from the table.

Omni compilation is verified on all 48 transformer blocks and with nonzero Dynamo graph counters. SGLang and Omni use their supported PyTorch environments, 2.14.1+cu130 and 2.13.0+cu130 respectively; the within-SGLang comparison isolates this PR's gain. Their native noise generators use different packed/unpacked layouts, so matching seeds do not imply cross-framework pixel equality. Exact-output validation compares the candidate against its SGLang baseline.

Revisions: SGLang baseline 33d2ef17566685f596b82512e8264456716527f7; Omni 194b936637f4e7356cc998c2796c67d14d52d854; Lightricks/LTX-2 checkpoint dfcc2108383fe1aaa0584bdf55d368a4bdadd90c.

Generated video frame comparison

Original PNG frames 0, 60, and 120 from the seed-42 benchmark video (1536×1024, 121 frames, 24 fps). These are sampled frames from the actual generated video, not a separate text-to-image run. Only their display width is reduced. SGLang eager and candidate match across the entire video and audio, not just these selected frames. Omni is a visual reference; the frameworks use different native RNG layouts.

Prompt: “A red fox walks slowly through a snowy forest. The camera follows at eye level. Soft morning light filters through pine trees. Snow crunches softly beneath its paws.”

Frame SGLang eager SGLang eager + BCG candidate Omni regional compile
0 ltx2-eager-prompt0-frame0 ltx2-bcg-prompt0-frame0 ltx2-omni-prompt0-frame0
60 ltx2-eager-prompt0-frame60 ltx2-bcg-prompt0-frame60 ltx2-omni-prompt0-frame60
120 ltx2-eager-prompt0-frame120 ltx2-bcg-prompt0-frame120 ltx2-omni-prompt0-frame120

Reproduction

Complete SGLang and vLLM-Omni commands, pinned environments/model revisions, and measurement caveats; per-request data and compilation evidence. The scripts retain the tested sampling settings and include both stock/candidate and Omni controls.

Checklist

  • Format with pre-commit.
  • Extend existing diffusion and kernel test suites without adding test files.
  • Complete final repeated accuracy and speed validation.
  • Follow SGLang code style.
  • Documentation: no new CLI option; activation and validation scope are described above.

CI States

Latest PR Test (Base): 🚫 Run #38335860874
Latest PR Test (Extra): ❌ Run #38335860413
Latest PR Test (AMD ROCm 10): ⏳ Run #38335860762

@BBuf

BBuf commented Oct 11, 2026 •

Copy link
Copy Markdown
Collaborator Author

/rerun-test test/registered/unit/diffusion/test_ltx2_dense_attention_bcg.py test/registered/unit/diffusion/test_ltx2_guidance_bcg.py test/registered/unit/diffusion/test_ltx2_vae_reflection_pad.py test/registered/unit/diffusion/test_ltx2_video_postprocess.py test/registered/unit/diffusion/test_numpy_video_frames.py test/registered/kernels/ops/diffusion/test_modulate.py

The slash-command dispatcher does not currently map the existing diffusion-unit-1-gpu-h100 suite. The five unit files above were therefore dispatched together through the same rerun-test.yml workflow, with the H100 runner, ci_install_dependency.sh diffusion, and exact PR head 3ae4bfefcc461690327cfc2336b78e71938ae0f0: https://github.com/sgl-project/sglang/actions/runs/38134911563. The two test_modulate.py runs from the bot reply remain active and were not duplicated.

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🚀 1-gpu-h100 (1 test): ✅ View workflow run

cd test/ && python3 registered/kernels/ops/diffusion/test_modulate.py

🚀 4-gpu-b200 (1 test): ✅ View workflow run

cd test/ && python3 registered/kernels/ops/diffusion/test_modulate.py

⛔ test/registered/unit/diffusion/test_ltx2_dense_attention_bcg.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_ltx2_dense_attention_bcg.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

⛔ test/registered/unit/diffusion/test_ltx2_guidance_bcg.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_ltx2_guidance_bcg.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

⛔ test/registered/unit/diffusion/test_ltx2_vae_reflection_pad.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_ltx2_vae_reflection_pad.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

⛔ test/registered/unit/diffusion/test_ltx2_video_postprocess.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_ltx2_video_postprocess.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

⛔ test/registered/unit/diffusion/test_numpy_video_frames.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_numpy_video_frames.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

@github-actions

github-actions Bot commented Oct 11, 2026 •

Copy link
Copy Markdown
Contributor

🚀 1-gpu-h100 (1 test): ✅ View workflow run

cd test/ && python3 registered/kernels/ops/diffusion/test_modulate.py

🚀 4-gpu-b200 (1 test): ✅ View workflow run

cd test/ && python3 registered/kernels/ops/diffusion/test_modulate.py

⛔ test/registered/unit/diffusion/test_ltx2_dense_attention_bcg.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_ltx2_dense_attention_bcg.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

⛔ test/registered/unit/diffusion/test_ltx2_guidance_bcg.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_ltx2_guidance_bcg.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

⛔ test/registered/unit/diffusion/test_ltx2_vae_reflection_pad.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_ltx2_vae_reflection_pad.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

⛔ test/registered/unit/diffusion/test_ltx2_video_postprocess.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_ltx2_video_postprocess.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

⛔ test/registered/unit/diffusion/test_numpy_video_frames.py: Unknown runner_config diffusion-unit-1-gpu-h100 in test/registered/unit/diffusion/test_numpy_video_frames.py — not in scripts/ci/runner_configs.yml.

Known runner_configs: 1-gpu-large, 1-gpu-small, 2-gpu-large, 4-gpu-b200, 4-gpu-gb300, 4-gpu-h100, 8-gpu-b200, 8-gpu-b300, 8-gpu-h20, 8-gpu-h200

BBuf added 4 commits October 11, 2026 22:16
Keep the upstream CFG-parallel legacy guidance scheduler and decoded-frame rank gating. Route both split and batched guidance through the shared BCG runner, preserve bounded video postprocessing, and cover exact/lossless legacy scheduling in the existing tests.
@BBuf
BBuf merged commit 46b7357 into main Oct 13, 2026
168 of 200 checks passed
@BBuf
BBuf deleted the codex/ltx2-guidance-bcg branch October 13, 2026 06:23
detain added a commit to detain/sglang that referenced this pull request Oct 15, 2026
…ject#4

Conflict resolutions (35 files), preserving stack behavior:

srt/utils/common.py: make_layers — folded our per-layer empty_cache body
  INTO upstream's stage-binding build() (layer_stack refactor sgl-project#43453-43460).
  Upstream removed is_building_neighbour_layer/building_neighbour_layer
  entirely (our earlier sgl-project#42481 pick); only user was qwen4_exp.
srt/models/qwen4_exp.py: import unions (cached_property/partial/TYPE_CHECKING,
  linear_attn_parallel_group); dropped dead is_building_neighbour_layer import;
  prefetch_stream keeps our _graph_prefetch_buffer line with upstream's
  ple_offload_embedding conditional; our PLE host-staging design kept
  (_offloads_ple guard moot under new stage facts).
srt/managers/cache_controller.py: upstream sgl-project#43550 absorbed our sgl-project#39830
  prefetch-degrade fixes; took upstream restructure, deleted auto-merge's
  stale duplicate tails (double-ack/deadlock hazard), kept our rationale
  comments. Fenced start_writing + load_fence_stream survive.
srt/mem_cache/hybrid_cache/hybrid_cache_controller.py: same pattern;
  sidecar degrade comment updated ('upstream adopted unconditionally').
model_executor/pool_configurator.py: UNION draft-cell sizing — our FP4
  _compute_eagle_fp4_draft_cell_size branch + upstream HiSparse
  draft_loc_space_scale else-branch. b05a7c1 None layer_info guard intact.
srt/layers/attention/qsa/sparse_attn.py: kept OUR FP8-descale chunk loop
  (superset; upstream sgl-project#41933 only re-commented); took upstream
  _pack_qsa_prefill_kv + pack_qsa_prefill_kv; our ck interface keeps
  k_scale/v_scale/max_q; __all__ union.
qsa/mqa.py: import functools + min_scored_len kwarg into our triton-first
  _resolve_mqa_backend dispatch; upstream ctas_per_row rework kept.
qsa/qsa_indexer.py: batch-invariance gate moved INTO upstream's shared
  use_fast_topk predicate.
qwen_sparse_attn_backend.py: imports union; gather path UNION — upstream
  pack_qsa_prefill_kv used when scales are unit (QSA stores unscaled K/V),
  our index_select fallback when checkpoint k/v descales != 1.0.
managers/schedule_policy.py: add_chunked_req UNION — upstream slot-reserve
  gate first, then our prefill_chunk_alignment truncation (monotone-safe);
  all 3 alignment sites (1177/1340/1608) intact.
managers/tokenizer_manager.py: import unions (PositionalEmbedsTransport +
  RequestPreprocessor + watermarking fns).
entrypoints/openai/serving_base.py: kept OUR request_preprocessor.run path.
model_executor/runner/eager_runner.py: took upstream TCPCG eager-fallback
  removal (sgl-project#42287); kept our shared cp_extend_forward call shape (our
  runner_utils/cp_extend.py is byte-equivalent to upstream's
  _execute_extend_cp — single source of truth).
runner/flashinfer_autotune.py: import union (can_run_dummy_draft_extend +
  cdiv/ceil_align + upstream get_eager_max_batch_size sgl-project#43789).
arg_groups/model_hook.py: Gemma4 accepted_backends union fa4 + flashinfer
  (NVFP4-KV enablement).
multimodal_gen/runtime/layers/lora/linear.py: KEPT OUR sgl-project#37460 pipeline
  structure; upstream runtime_lora_scale==0 early-return ordering adopted;
  _add_lora_delta/_add_lora_output_offset wired into pipeline; kept
  UPSTREAM's quality-tiered _scale_lora_delta (deleted our simple variant).
  DEBT: upstream RowParallel bias_in_gemm lossless opt not ported (perf-only).
multimodal_gen/runtime/layers/attention/layer.py: _gather_sharded_sequence
  took upstream sgl-project#43793 .contiguous() fix (subsumes our 55aaa02 guard);
  our _forward_with_kv_gather k/v guards kept (separate path, not covered).
configs/pipeline_configs/base.py + configs/sample/minimax_h3.py + envs.py:
  unions (supports_continuous_batching / teacache_params+fields /
  SGLANG_TEACACHE_CALIBRATE).
models/dits/ltx_2.py mask-fill: took upstream (identical to our fix).
ltx_2/denoising.py: took upstream pass_specs (sgl-project#43667) — subsumes our
  legacy one-stage branch; our _ltx2_model_forward_context helpers already
  upstreamed (entry-142 sgl-project#42928 CONFIRMED SUPERSEDED).
ltx_2/decoding_av.py: KEPT OUR split-stage AV decode (independent pool
  scaling) over upstream single-class restructure; adopted upstream
  chunked pinned-memory _postprocess_video; TODO(merge-4): upstream
  EncodeWhileDecoding streaming + rank-0 retain gating not ported.
kernels/ops/diffusion/activation/silu_mul_bitexact.py: our out= column-slice
  support + XPU guard UNION with upstream @replay_launches (sgl-project#43859).
kernels/ops/diffusion/README.md + docs performance-optimization.mdx: unions.
rust/sglang-renderer: ACCEPTED upstream crate removal (sampling.rs git rm);
  our sgl-project#42779 top_k vocab-bound port moves to sglang-server message/sampling.rs
  (follow-up).
Tests: anthropic test_serving — UNION fake-class exception param + our
  request_preprocessor stubs, took upstream's _FakeNonStreamingOpenAI removal
  (68 pass). test_server_args — union both new tests (pre-existing GPU-only
  collection ENV fail unchanged). test_lora_inference_mode — took upstream
  sgl-project#43028 runtime_scale+quality-tier test (supersedes our adapted variant;
  our kept quality-tiered _scale_lora_delta satisfies it).
  test_fused_moe_triton_config — kept our int4-filename + RTX-PRO-6000 JSON
  tests despite upstream sgl-project#43503 test-drop. test_hicache_file_lru_unit —
  union our corrupt-page-degrade class + upstream sgl-project#42077 uncached-batch test
  (40 pass). test_hicache_host_register — upstream alias host_common.
  test_cuda_graph_setup — took upstream rewrite of our override-decode-runner
  test into draft-local-capture-sizes test (sgl-project#43303 API).

Verified auto-merged stack markers survived: flashinfer_backend KVLocPlan/
prefill_wrappers_ragged/NVFP4-KV forwarding, memory_pool set_kv_buffer_prefix_valid,
fp8 grouped_moe kwarg, fp8_utils reshape fix 3642490, SGLANG_QWEN4_PLE_FILE_REUSE,
schedule_batch freed_rows fix, prefill_chunk_alignment sites, sgl-project#42736 autotune
default-on, PCIe-IPC vocab gathers, flashinfer 0.7.1 pin taken (NOT installed).

Co-Authored-By: Claude Opus 5.5 (1M context)
detain added a commit to detain/sglang that referenced this pull request Oct 15, 2026
…orted streaming path

The test (from upstream sgl-project#43667) patches LTX2AVDecodingStage._decode_audio and
module symbols can_encode_while_decoding/EncodeWhileDecoding/streamed_video_
output_path; merge sgl-project#4 records the combined-stage streaming wiring as
intentionally unported for this fork's split video/audio stages
(TODO(merge-4) marker in ltx_2/decoding_av.py), so the stage never had the
method in this design - all 24 params failed at patch-object setup, not at
an assertion. Skips until the feature is ported; file 8P/33S.

(cherry picked from commit 644bc7ecd1a099092f024054f1ff900ce47f1e33)
Jianhong-Zhang added a commit to Jianhong-Zhang/sglang that referenced this pull request Oct 21, 2026
* [diffusion] perf: pipeline MiniMax-H3's Ulysses exchange against cuDNN SDPA on Blackwell (sgl-project#43373)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] fix: fail MiniMax-H3 quality="high" closed on substituted DiT weights (sgl-project#34978)

Co-authored-by: Claude Opus 5 <[email protected]>

* [diffusion] Z-Image: autotune the shared transformer block at both token scales (sgl-project#35755)

* [DSv4.1] Initialize the full-to-SWA mapping for request-window pools (sgl-project#43165)

* [Dsv4.1] Add DeepSeek V4.1 DSPARK TP and DP EP accuracy coverage (sgl-project#43478)

* [Refactor][TCPCG] Retire backend selection and configuration (3/9) (sgl-project#42287)

* [CI] Remove the GLM-5.3-Flash PTX KDA prefill nightly test (sgl-project#43470)

Co-authored-by: Mohammad Angkad <[email protected]>

* Clamp default decode CUDA graph max_bs to max_running_requests (sgl-project#43172)

* [Model Loader] Add InstantTensor loader support (sgl-project#40453)

* [CI] Fix Python 3.10 failure in prefill complete integration test (sgl-project#43505)

* [diffusion] fix: keep a LoRA unmerged under merge_mode auto when merging would round its update away (sgl-project#43385)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [AMD] Resolving bug in per batch size graph capture due to multiple capture runs per batch size (sgl-project#39840)

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: HAI <[email protected]>

* [AMD][CI] Drop removed tp_rank/tp_size kwargs from small-M FP8 proj test (sgl-project#43318)

* [AMD] Add an opt-in AITER CK blockscale GEMM for gfx942 block-FP8 linears (sgl-project#41071)

Signed-off-by: siliangchen-amd <[email protected]

* [CI] Drop CPU tests with no bug-catching signal and run Rust workspace tests in their own workflow (sgl-project#43503)

* [rust-server] preserve PD routing in chat and completions (sgl-project#42989)

Signed-off-by: Sage Ahrac <[email protected]>

* [AMD][CI] Cap pyarrow below 26 for lmms-eval (sgl-project#43547)

* [Rust] Upgrade sglang-radix-tree to PyO3 0.29 (sgl-project#42807)

Co-authored-by: colleen-tml <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [CI] Fix EAGLE3 CUDA parity prefill chunk alignment (sgl-project#43538)

* [diffusion] perf: pipeline every USPAttention Ulysses path's exchange over the copy engine (sgl-project#43521)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] perf: run head_dim-128 QK-norm + RoPE two rows per warp for every RoPE layout (sgl-project#43508)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [Responses] Fix max_output_tokens overestimate on multimodal requests (sgl-project#35524)

* [HiSparse] Avoid host synchronization in eager backup (sgl-project#41446)

* [MemCache] refactor: require an anchored lock receipt for non-root releases (sgl-project#41452)

* [HiCache] Add staged write-back for the page-unified KV cache layout (sgl-project#39606)

* [kv-shard 3/4] Enable Control Plane C (sgl-project#40102)

* [Docs] Document Qwen3-4B/8B H200 mixed-chunk latency tradeoffs (sgl-project#43551)

* [Docs] Let the Qwen3 B300 recipe use the default attention backend (sgl-project#43554)

* [HiCache] Keep protected cgroup page cache charged in host budgets (sgl-project#42788)

Co-authored-by: Ke Bao <[email protected]>

* [Scheduler] Use committed length in spec mamba track boundary check (sgl-project#43029)

Co-authored-by: Ke Bao <[email protected]>
Co-authored-by: Shuwen Wang <[email protected]>

* [Refactor] Record what a bound stage path does instead of reading it back (sgl-project#43453)

* [Fix] Keep residual rows and sums consistent across appends and pipeline handoffs (sgl-project#43454)

* [Refactor] Make residual read and update capabilities explicit and checked (sgl-project#43455)

* [Refactor] Decide input-scattered eligibility and stage rejections in one place (sgl-project#43456)

* [Refactor] Bind a layer stack in one pass over each stage's data flow (sgl-project#43457)

* [Refactor] Decide an exit's fixed facts when the stage is built (sgl-project#43458)

* [Refactor] Declare pipeline neighbours from a shared declaration function (sgl-project#43459)

* [Refactor] Declare every model's stages from a shared function and drop the meta-device neighbour build (sgl-project#43460)

* [CI] Fix Kimi-Linear DCP PD test startup (sgl-project#43598)

Co-authored-by: Mohammad Angkad <[email protected]>

* [Model] Keep gpt-oss router logits batch-invariant under deterministic inference (sgl-project#43624)

* [Dsv4.1] Mega-mhc integration (sgl-project#42808)

Co-authored-by: Yuwei An <[email protected]>
Co-authored-by: kpham-sgl <[email protected]>

* [diffusion] fix: accept request-level profiling on the image API (sgl-project#43573)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] feat: declare regional compile regions for flux (sgl-project#43575)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] feat: bind each GPU worker to its GPU's NUMA node (sgl-project#43565)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] feat: warn instead of disabling on unvalidated models for BCG(sgl-project#43568)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] feat: keep the TP all-reduce inside the graph (sgl-project#43602)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] fix: keep exported buffers out of expandable segments for IPC all-to-all(sgl-project#43584)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] fix: skip QKV packing while layers are offloaded (sgl-project#43576)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] perf: add the dynamic LoRA delta inside the second GEMM (sgl-project#43501)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] CI: skip the LTX-2 RMSNorm-modulation guard test off the CUDA platform (sgl-project#43574)

Co-authored-by: Mick <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] fix: skip inductor's saved multi-kernel pick for torch.compile (Z-Image warm starts crash or hang) (sgl-project#43601)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] comfyui: fail early instead of silently dropping features in SGLD integrated mode (sgl-project#43495)

Co-authored-by: OnePunchMonk <[email protected]>

* [Fix] Reserve remaining tokens for ignore_eos requests during prefill admission (sgl-project#43564)

* [DSA] Support TileLang FP8 KV cache on CUDA (sgl-project#42957)

Co-authored-by: Xiaoyu Zhang <[email protected]>

* fix: wait for HiCache load-back before hybrid MLA KV reads (sgl-project#38217)

Co-authored-by: zhouzechun <[email protected]>
Co-authored-by: alphabetc1 <[email protected]>

* [diffusion] fix: keep the overlay probe from stalling cached startup (sgl-project#43590)

* [diffusion] fix: serve whole graphs after offload-during-compile (sgl-project#43631)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] Support LLaDA-Image BF16 generation and editing (sgl-project#37907)

* [PD][HiCache] Fold the decode restore outcome into the MIN-reduced KV poll (sgl-project#43562)

Co-authored-by: Kevin Flansburg <[email protected]>

* [diffusion] perf: keep Qwen-Image-2.1 and Ulysses graphs whole (sgl-project#43586)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] perf: keep Cosmos3's fused kernels in the graph (sgl-project#43577)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] fix: Qwen-Image BCG prompt padding misses every graph and attends the pad (sgl-project#43632)

Co-authored-by: Mick <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] fix: replay Qwen-Image-2.1 BCG graphs across prompt lengths (sgl-project#43633)

Co-authored-by: Mick <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] perf: run the attention section eager under torch.compile for MiniMax-H3 (sgl-project#43634)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [1/N][DSv41] Enable DP attention with MegaMoE (sgl-project#43228)

* [diffusion] comfyui: consolidate FluxAdapter correctness fixes (sgl-project#43490)

Co-authored-by: niehen6174 <[email protected]>

* [diffusion] comfyui: consolidate executor conditioning-cache fixes (sgl-project#43492)

Co-authored-by: niehen6174 <[email protected]>

* [Scheduler] Keep waiting-prefix LRU refresh consistent across TP ranks (sgl-project#43479)

* [Perf] Fuse BF16 writes to native HND KV cache storage (sgl-project#43237)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* [diffusion] Don't report video jobs completed after their outputs are deleted (sgl-project#43084)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Xiaoyu Zhang <[email protected]>

* [GDN] Fix CuTe DSL decode to read the [N, HV, V, K] state layout (sgl-project#43332)

Co-authored-by: Xiaoyu Zhang <[email protected]>

* [KDA] Support Helion MTP verification and harden prefill, decode (sgl-project#42857)

* [AMD]Qwen add Sparse attention to capturing hip graphs (sgl-project#43383)

* [Spec] Allow Qwen3.5 backends to opt into packed target verification (sgl-project#43037)

* [qwen 3.8 next] Fuse QSA prefill KV gathering and dtype conversion (sgl-project#41933)

* [Scheduler] Requeue preempted requests when admission admits nothing (sgl-project#43298)

* [Test] Do not hang scripted-runtime teardown when the server died (sgl-project#43285)

* [KV canary] Expect sweep counters on the target runner only (sgl-project#43286)

* [Scheduler] Hold back decode rows on a mixed step when they do not fit the KV pool (sgl-project#43290)

* [Sampler] Sort only the max(top_k) leading columns in the torch sampler (sgl-project#43346)

* [Scheduler] Keep a DP-converted decode batch as the running batch (sgl-project#43283)

* [kvevents] fix missing topics in replayed kv events (sgl-project#43386)

Signed-off-by: Sage Ahrac <[email protected]>

* [DeepSeek-V4.1] Use num_stages=1 for the hc_mix stats partial kernel (sgl-project#43070)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Yuan Luo <[email protected]>

* [VLM] fix: repair multimodal VMM lease cleanup and source-stream ordering (sgl-project#43475)

Co-authored-by: Mick Qian <[email protected]>

* [Diffusion] Add ModelOpt FP8 checkpoint quantization for Pi0.5 (sgl-project#43062)

Co-authored-by: Mick Qian <[email protected]>

* fix: default Inkling to fa4 on Hopper (sgl-project#35292)

* [BugFix][DP] Prevent health checks from perturbing user request routing (sgl-project#35721)

Signed-off-by: Phoenix3334 <[email protected]>

* [Unified Radix] Invalidate lazy Mamba checkpoints before in-place tracking (sgl-project#43567)

* [diffusion] perf: encode LTX video/audio through the shared bounded MP4 path (sgl-project#43656)

Co-authored-by: Mick Qian <[email protected]>

* [HiCache] Keep storage workers alive on backend exceptions (sgl-project#43550)

* Build Mamba host pools from device buffer infos (sgl-project#43596)

* Share MLA host capacity initialization (sgl-project#43595)

* Preserve serialized page dtype in NIXL copy fallback (sgl-project#43593)

* [diffusion] fix: select VSA-H3 for FastH3 when no transformer backend is given (sgl-project#43690)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [KV Events] Publish LoRA adapter names and namespaced block hashes (sgl-project#42455)

Signed-off-by: Banruo Liu <[email protected]>
Co-authored-by: Shangming Cai <[email protected]>

* [DSpark] Run every markov head through one step interface (sgl-project#43620)

* [DSpark] Add `MarkovSampleStep`, one op for a markov draft step's add and token pick (sgl-project#43621)

* [DSpark] Draft the eager markov block through `MarkovSampleStep` (sgl-project#43622)

* [DSpark] Run the same markov block in the draft graph tail; drop `SGLANG_DSPARK_FOLDED_SAMPLING` (sgl-project#43668)

* [DSpark] Merge the draft TP sync sites into `dspark-draft` (sgl-project#43669)

* [DSpark] Add `SGLANG_DSPARK_USE_GREEDY_DRAFT`, an argmax draft accepted as one-hot (sgl-project#43670)

* [DSpark] Apply `SGLANG_SIMULATE_ACC_LEN` inside the accept instead of switching paths (sgl-project#43623)

* [diffusion] fix: shard Qwen-Image adaLN modulation and text FFN under TP (sgl-project#43691)

* [diffusion] perf: layerwise offload for the LTX-2.5 Gemma-4 text encoder (sgl-project#43683)

* [diffusion] perf: split and batch LTX-2.3 one-stage guidance passes under CFG parallel (sgl-project#43684)

Co-authored-by: Mick Qian <[email protected]>

* [Fix] Initialize BF16 GEMM dispatch in the one-batch benchmark (sgl-project#43702)

* Fix Mistral-native format detection when the Hub is unreachable (sgl-project#43446)

* [MoE] Skip block-padding rows in the TMA down activation and quant (sgl-project#42212)

* [MemCache] Split the SWA mapping move out of locked-full recovery as `RecoverEvictedSWA` (sgl-project#43721)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: Jialin <[email protected]>

* [Rust] Lock hyper 1.12.0 and want 0.3.2 in the rust workspace (sgl-project#43724)

Co-authored-by: hanminglu <[email protected]>
Co-authored-by: shodoco <[email protected]>

* [MemCache] Add shared component size and path APIs to the tree core interface (sgl-project#43722)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: Jialin <[email protected]>

* [CI] Fix TestQwenImageModulationCache after Qwen-Image modulation sharding (sgl-project#43747)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* [Bugfix] Preserve available host memory for integrated MUSA devices (sgl-project#43398)

Signed-off-by: Xucheng Zhou <[email protected]>

* [Tokenizer] Require fastokens>=0.3.2 and include it in the all extra (sgl-project#43104)

* [AMD][V4.1][*/N] Fix DP attention + TP MoE decode NaN and support bounded replay (sgl-project#43077)

Co-authored-by: wunhuang <[email protected]>
Co-authored-by: HAI <[email protected]>

* Support kv cache sharding for DSA indexer (sgl-project#40925)

* [AMD][MORI] Add MORI EP V2 support (sgl-project#40666)

* [PD] Retract transferred decode requests on a retract pause (sgl-project#43757)

* [DSV4.1] Reduce eager Engram extend preparation (sgl-project#42159)

Co-authored-by: Shangming Cai <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [Test] Re-anchor the VLM flashinfer throughput floor (sgl-project#43762)

Co-authored-by: Mohammad Angkad <[email protected]>

* [Fix] scheduler: stop latching batch_is_full when nothing can run (sgl-project#41872)

Co-authored-by: hnyls2002 <[email protected]>
Co-authored-by: Liangsheng Yin <[email protected]>

* [RL] Return a failed weight update when the cache flush is refused (sgl-project#43758)

* [CI] Skip eval retries in the PD transfer-failure test (sgl-project#43769)

* docs: sync LMSYS SGLang blog cards (sgl-project#43462)

Co-authored-by: sglang-bot <[email protected]>

* [Deps] Bump FlashInfer to 0.7.1 (sgl-project#43494)

Co-authored-by: Mohammad Angkad <[email protected]>

* [XPU CI] Optimize PR CI per-file timeouts and fail hanging tests fast (sgl-project#42048)

* [Fix] Adapt to transformers 5.18 / 5.19 changes (sgl-project#43688)

Co-authored-by: Mohammad Angkad <[email protected]>

* [diffusion][xpu] FLUX.2: enable the bit-exact Triton SwiGLU on XPU (sgl-project#41940)

Co-authored-by: Claude Opus 5 <[email protected]>
Co-authored-by: Mick Qian <[email protected]>

* docs: clarify prefill CP terminology and simplify wording (sgl-project#43787)

* [Fix] Link cuda_ipc JIT against CUDA driver stubs dir (sgl-project#43764)

* [Perf] Route BF16 mixed-batch decode tails through decode attention (sgl-project#43238)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Xiaoyu Zhang <[email protected]>

* [PD] Poison the deferred abort ack when a Mooncake send fails (sgl-project#43719)

Co-authored-by: Claude Fable 5.1 <[email protected]>

* [HiCache] Support Mamba in buffer-only host memory mode (sgl-project#36345)

* [HiCache] Preserve all MTP KV and recurrent state (sgl-project#40223)

Co-authored-by: alphabetc1 <[email protected]>
Co-authored-by: Shuwen Wang <[email protected]>

* [CI] Move tests that do not need GB300 off the per-PR GB300 suite (sgl-project#43784)

Co-authored-by: Mohammad Angkad <[email protected]>

* Capture KV host transfer buffers (sgl-project#43711)

* Keep NIXL Mamba checkpoint keys separate by TP rank (sgl-project#43594)

* [XPU] Support decode context parallelism (DCP) on Intel XPU (sgl-project#34355)

Co-authored-by: Siju Samuel <[email protected]>

* [BCG][DSV4-Flash][CP] Support DeepSeek V4 prefill with interleave CP and breakable CUDA graphs (sgl-project#38603)

* [DSV4.1][PD][1/N] Support prefill node use cp parallel strategy (sgl-project#40323)

* [Docs] Update GLM-5.3-Flash playground: B300 default, CP8, EP and PD (sgl-project#43802)

* [Docs] Cookbook: refresh SemiAnalysis AgentX launches (GLM-5.2 B300, DeepSeek-V4.1 GB300) (sgl-project#43799)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* [NPU] Stabilize HiCache and registered CI tests (sgl-project#43308)

* [sgl-router] Serve the Anthropic Messages API on /v1/messages (sgl-project#42316)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>

* [Fix] Make tokenizer request-state initialization atomic (sgl-project#41911)

Co-authored-by: Cheng Wan <[email protected]>

* [XPU] Upgrade XPU backend to PyTorch 2.14 (sgl-project#42003)

Co-authored-by: Ashwini Rathi <[email protected]>
Co-authored-by: Y <[email protected]>
Co-authored-by: Claude Opus 4.7 (1M context) <[email protected]>

* [PD][Spec] Give a PD decode's first EAGLE draft step a proposal distribution (sgl-project#41783)

Co-authored-by: Shangming Cai <[email protected]>

* [Fix] Adapt NPU Qwen-VL processor patch to transformers 5.19 resize() signature change (sgl-project#43309)

* [NPU] Diffusion CI fixes (sgl-project#43210)

* [diffusion] chore: bind worker CPUs to the GPU's NUMA node when memory policy is not permitted (sgl-project#43756)

Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [CI][Diffusion] Add caching for npu GT images in CI (sgl-project#37426)

Co-authored-by: Артем Савкин <[email protected]>

* [QSA] Bound the decode indexer's work by the context length (sgl-project#43463)

Co-authored-by: luoyuan.luo <[email protected]>

* Prebuild fixup_zero_kv JIT module at TRTLLM-MLA backend init (sgl-project#37525)

Co-authored-by: Claude Fable 5 <[email protected]>

* [Unified Cache] Abort requests whose external linker load fails instead of crashing the scheduler (sgl-project#40896)

* [DSpark] Share draft params, logits dtype, confidence and the accept tail between graph and eager (sgl-project#43790)

* [DFlash] Decide the Domino candidate pool in one place and apply simulated acceptance inside the accept (sgl-project#43791)

* Fix autograd retention in CUDA graph capture tail hooks (sgl-project#43854)

* [ROCm] Eliminate HiCache migration stalls and use exact-size host allocations (sgl-project#42553)

Signed-off-by: JohnQinAMD <[email protected]>
Co-authored-by: JohnQinAMD <[email protected]>

* [AMD] Keep the FP4 varctx schedule test off AITER's 2048-row compile (sgl-project#41793)

* [AMD] Add flydsl mxfp8 dense gemm kernel for dpsk v4.1 prefill (sgl-project#43803)

* [AMD] Fix test_compact_attention_hip.py CI (sgl-project#43836)

* [AMD] [Docker] Update MoRI to v1.2.4 (sgl-project#43834)

* [Kernel] Expose bundled FlashMLA MegaAttention kernels and APIs (sgl-project#43918)

* [DeepSeek-V4.1] Admit the NIXL transfer backend for DSpark PD (sgl-project#43734)

* [AMD] Recalibrate test_quark_mxfp4 GSM8K thresholds to observed MI355X noise (sgl-project#41980)

* [DSV4][CP] Write low-ratio page indices when CP prefill runs paged attention (sgl-project#43935)

* [Build][CI] Drop Python 3.10: require Python 3.11+ and run CUDA CI on Python 3.12 (sgl-project#43021)

Co-authored-by: Mohammad Angkad <[email protected]>
Co-authored-by: Mohammad Miadh Angkad <[email protected]>

* [DeepSeek-V4.1] mHC: drop seam_open, narrow precomputed stats in take_rows (sgl-project#43833)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* [DSv4.1] Reduce sparse-prefill workspace padding (sgl-project#43921)

* [HiCache] Avoid full-store scans for uncached file prefix lookups (sgl-project#42077)

Signed-off-by: apex-mochen <[email protected]>
Co-authored-by: apex-mochen <[email protected]>
Co-authored-by: Zhiqiang Xie <[email protected]>

* [Fix] Preserve HTTP errors for non-streaming /v1/messages (sgl-project#43796)

Co-authored-by: Xinyuan Tong <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>

* [DSv4.1] Temporarily disable B300 PD/CP accuracy test (sgl-project#43948)

* [PD] Recompute retracted DeepSeek-V4 requests on prefill instead of crashing decode (sgl-project#43936)

* [Fix] Account for captured inputs in DeepGEMM masked workspace budget (sgl-project#43563)

* [AMD] Update v4 amd cookbook 1012 (sgl-project#43962)

* [CI] Remove Mistral Small 4 e2e test (sgl-project#43973)

Co-authored-by: Mohammad Angkad <[email protected]>

* Reuse Hugging Face LFM2-MoE configuration (sgl-project#43939)

Co-authored-by: Codex <[email protected]>

* fix(openai): honor tool_choice=none in DeepSeek encoders (sgl-project#43006)

Co-authored-by: ai-jz <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>

* [diffusion] comfyui: run MiniMax H3, FastH3 and VDN in SGLD integrated mode (sgl-project#43504)

* [diffusion] fix: keep MiniMax-H3 VAE fused norms off ROCm (sgl-project#43350)

* [diffusion] fix: avoid redundant LoRA scaling while preserving exact numerics (sgl-project#43028)

Co-authored-by: Mick Qian <[email protected]>

* tokenizer perf optimization (sgl-project#39771)

Co-authored-by: BBuf <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>

* [diffusion] perf: implement paint_use_remesh (decimate to 40k faces before UV unwrap) for Hunyuan3D (sgl-project#42770)

Co-authored-by: Mick Qian <[email protected]>

* [AMD][Kimi-K3] Use public FlyDSL APIs in KDA decode kernels (sgl-project#43968)

Co-authored-by: wunhuang <[email protected]>

* [AMD] Fix Flux2 kv-gather abort on non-contiguous K/V (sgl-project#43793)

Co-authored-by: Mick Qian <[email protected]>

* [AMD] Fuse prefill index-Q RoPE fake-quant and fp4 quantize kernels in DSV4.1 (sgl-project#42911)

* [AMD][DI][CI] dsv4pro-fp8 2p1d-ep16-mtp: raise prefill mem fraction for MORI EP v2 memory (sgl-project#43944)

* [router] Fix power_of_two with --dp-aware (sgl-project#42027)

* [ROCm][Spec] Route NGRAM tree reconstruction to the JIT kernel on HIP (sgl-project#43328)

Co-authored-by: Cursor <[email protected]>
Co-authored-by: Thomas Wang <[email protected]>

* [PD] Support heterogeneous TP for hybrid SWA KV transfer (sgl-project#40909)

* [Diffusion] Speed up LTX-2 guidance and video output (sgl-project#43667)

* [AMD][PD] enable mori transfer for PD decode DCP (sgl-project#37358)

Signed-off-by: inkcherry <[email protected]>
Co-authored-by: Duyi-Wang <[email protected]>
Co-authored-by: HAI <[email protected]>
Co-authored-by: Shangming Cai <[email protected]>

* [Docs] Cookbook: refresh SemiAnalysis AgentX launches (DeepSeek-V4.1 GB200/GB300, GLM-5.2 FP8 B300) (sgl-project#43983)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* [PD][NIXL] Fix staging buffer startup by accepting slot_layer_ids (sgl-project#43723)

Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]>

* [router] power_of_two: in-flight request load for --dp-aware decode (sgl-project#43483)

* [Perf] Enable fast-math for JIT activations on Blackwell (sgl-project#43236)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* [NVIDIA][MegaMoE] Fix the default spec decoding moe backend when the target model uses flashinfer megamoe (sgl-project#40772)

Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]>

* [HiCache][PD] Allow DSA index-K elision under HiCache and disaggregation (sgl-project#41769)

Co-authored-by: Anish Shanbhag <[email protected]>

* [CI] Use sgl-eval for GLM-5.3-Flash GSM8K tests (sgl-project#43975)

Co-authored-by: Mohammad Angkad <[email protected]>

* [FlashInfer] Add startup autotuning for MegaMoE (sgl-project#43789)

* [Perf] Compact GDN causal-conv grids for skewed prefill batches (sgl-project#43570)

* [AMD][CI] Run test_tracing.py in the extra tier, matching CUDA (sgl-project#43928)

Co-authored-by: Claude Opus 5.5 (1M context) <[email protected]>

* Fix EVS for NemotronH_Omni_Reasoning_V3 (sgl-project#42933)

Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]>

* fix(multimodal): convert grayscale tensors to RGB in PIL backend (sgl-project#42127)

Co-authored-by: 周云昊 <[email protected]>

* [diffusion] comfyui: run Qwen-Image 2.1 in SGLD integrated mode (sgl-project#43581)

* [diffusion] feat: add configurable reference image resizing for MiniMax H3 Ref2VA (sgl-project#35839)

Co-authored-by: Mick Qian <[email protected]>

* Fix/compressed tensors nvfp4 hopper (sgl-project#40022)

Co-authored-by: Claude Opus 5 <[email protected]>

* [NPU] [DOC] update kimi k3 cookbook and supported features on NPU (sgl-project#44052)

* [DSA] Q8KV8 FP8 Sparse Prefill on GLM-5.3-Flash with BF16 KV Cache (sgl-project#41790)

Co-authored-by: Xiaoyu Zhang <[email protected]>

* [CI] Run test_pi05_modelopt_fp8_cuda in the kernel-unit lane (sgl-project#44055)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* fix(openai): omit absent tool_calls from chat responses (sgl-project#43027)

Co-authored-by: ai-jz <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>

* Skip fully-masked KV tiles in sliding-window extend attention (sgl-project#39769)

Co-authored-by: Cursor <[email protected]>

* fix(openai): keep chat stream created timestamp stable (sgl-project#43026)

Co-authored-by: ai-jz <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>

* fix(openai): preserve zero cached tokens when cache reporting is enabled (sgl-project#43005)

Co-authored-by: ai-jz <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>

* [AMD][DI][CI] glm52 2p1d-ep16: capture CUDA graph on decode (eager decode is too slow) (sgl-project#43977)

* [AMD][DI][CI] kimik26 2p1d-ep16: capture CUDA graph on decode (eager decode is slow) (sgl-project#43985)

* [perf] [multi-lora] remove empty CTAs from fused LoRA expand and add split-K to shrink (sgl-project#41951)

Co-authored-by: Yanbin Jiang <[email protected]>

* Rainj me/rust bench (sgl-project#43950)

* [Observability] Report per-request storage prefetch and staging waits in meta_info (sgl-project#43946)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: xiezhq-hermann <[email protected]>

* [lora] Support LoRA for the NemotronH_Nano_VL_V2 model family (sgl-project#39798)

Co-authored-by: Claude Opus 5 (1M context) <[email protected]>
Co-authored-by: Po-Han Huang <[email protected]>
Co-authored-by: Yanbin Jiang <[email protected]>

* [Rust] Refuse an unsupported multimodal model before the Rust listener binds (sgl-project#43925)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: shodoco <[email protected]>

* [Core] Keep request priority within the signed 64-bit range in radix caches (sgl-project#43920)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: qandrew <[email protected]>

* [DCP] Decode context parallelism for DSA (GLM-5.2 / GLM-5.3) with MTP (sgl-project#43735)

Co-authored-by: vincentzed <[email protected]>

* [HiCache] Block-group pool hits, caller-owned load destinations, allocation-target FULL eviction (sgl-project#43868)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: xiezhq-hermann <[email protected]>

* [Rust] Let an embedding package wrap the frontend HTTP app (sgl-project#43924)

Co-authored-by: hanminglu <[email protected]>
Co-authored-by: shodoco <[email protected]>

* [Core] Add request-level customized_info keys and mark Full prefill capture batches (sgl-project#43772)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: jiayisuse <[email protected]>

* [HiCache] Extract the buffer-mode prefetch and load-back lifecycle into pipeline operations (sgl-project#43870)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: xiezhq-hermann <[email protected]>

* [unified memory pool] Prefer SWA reclaim quotas with a HiCache storage backend or on PD decode (sgl-project#43919)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: ZYHowell <[email protected]>

* [Rust] Serve any `model` name on the OpenAI chat and completions routes (sgl-project#43923)

Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: shodoco <[email protected]>

* docs: add MiniCPM-V 4.7 cookbook (sgl-project#43829)

* [Feature] Add Aaronson-Gumbel text watermarking (sgl-project#37577)

Co-authored-by: Nihar Patel <[email protected]>

* [HiSparse] Add speculative decoding support with multi-step KV cache swapping (sgl-project#37771)

* [gRPC] Move runtime.v1 bindings to tonic 0.14, report OpenAI status codes, return text on request (sgl-project#42673)

Co-authored-by: Kan Wu <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>

* [DeepSeek-V4.1] Run decoder SWA bounded replay inside the breakable prefill CUDA graph (sgl-project#43736)

* fix(benchmark): request token IDs when counting OpenAI prompts (sgl-project#34511)

Co-authored-by: Zijie Xia <[email protected]>

* Mark FP32 redux asm volatile (sgl-project#44137)

* [Score] Send stacked GPU embedding overrides through a CUDA IPC pool (sgl-project#39730)

Co-authored-by: Sundara Raman Ramachandran <[email protected]>
Co-authored-by: hnyls2002 <[email protected]>

* [Feature] Return output top logprobs as flat base64 arrays on request (sgl-project#42890)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* [DSV4.1] Support decoder SWA bounded replay with CUDA DP attention (sgl-project#43812)

* GLM5.2 DSA Indexer Fallback (sgl-project#32947)

Co-authored-by: Shu Wang <[email protected]>
Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]>

* [Fix] Work around a CPython fork deadlock in the CPU preprocess pool (sgl-project#44143)

* [DSV4.1] Skip Mega mHC fusion on 0-row (DP-idle) batches (sgl-project#43993)

Co-authored-by: Claude Opus 5.5 <[email protected]>

* [Chore] release: Cherry-pick [Disagg] Return prompt routed experts from the PD prefill server to release/v0.5.22 (sgl-project#44002) (sgl-project#44212)

Co-authored-by: William Arnold <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: ishandhanani <[email protected]>

* [Chore] release: Cherry-pick [CI] glm5.2: Temporarily disable PD HiSparse+MTP B300 test to release/v0.5.22 (sgl-project#44192) (sgl-project#44214)

Co-authored-by: Mohammad Miadh Angkad <[email protected]>
Co-authored-by: Mohammad Angkad <[email protected]>

* [XPU] Fix FP8 KV cache support for ModelOpt quantized models (e.g. Llama-3.3-70B-FP8)

* [XPU] Add MXFP4 W4A16 MoE inference support for Intel Xe2 (GPT-OSS)

Enable MXFP4 quantized inference on XPU using the native Xe2 SYCL
fused_experts kernel (sgl-kernel-xpu PR#184).

- quantization/__init__.py: register mxfp4 quantization method for XPU
- quantization/fp4_utils.py: broaden flashinfer import exception to avoid
  crash on XPU where flashinfer is unavailable
- quantization/mxfp4.py:
  - align intermediate size to 64 for XPU (create_weights)
  - skip CPU dequant on XPU; leave weights as packed uint8 in VRAM
    (process_weights_after_loading)
  - add XPU dispatch in apply(): call sgl_kernel.fused_experts with
    use_mxfp4_w4a16=True; convert UE8M0 uint8 scales to float32 via
    exp2(uint8 - 127); default gemm1_alpha=1.702 / gemm1_limit=7.0 to
    select activation_type=2 (ACT_SWIGLU_GPT_OSS, interleaved weight
    layout required by GPT-OSS MXFP4 checkpoints)
- models/gpt_oss.py: replace hardcoded .cuda() with .to(get_device())
  in weight loading to support XPU

* [XPU] Improvement for fp4 and fp8

 Optimize FP8 KV cache: lazy mirror buffer to avoid full cast per step
 Fix MXFP4 MoE: read activation/gemm1 params from model config instead of GPT-OSS hardcoded values

* Remove WA for FP8 KV cache

* Add analyze support for XPU

* [Intel][XPU] Allow mamba extra_buffer radix cache strategy on XPU (#9)

Co-authored-by: root <[email protected]>

---------

Signed-off-by: siliangchen-amd <[email protected]
Signed-off-by: Sage Ahrac <[email protected]>
Signed-off-by: Phoenix3334 <[email protected]>
Signed-off-by: Banruo Liu <[email protected]>
Signed-off-by: Xucheng Zhou <[email protected]>
Signed-off-by: JohnQinAMD <[email protected]>
Signed-off-by: apex-mochen <[email protected]>
Signed-off-by: inkcherry <[email protected]>
Co-authored-by: Mick <[email protected]>
Co-authored-by: Mick Qian <[email protected]>
Co-authored-by: Claude Opus 5.5 <[email protected]>
Co-authored-by: Raymond Huang <[email protected]>
Co-authored-by: Frederik Gossen <[email protected]>
Co-authored-by: YAMY <[email protected]>
Co-authored-by: Yuwei An <[email protected]>
Co-authored-by: Mohammad Miadh Angkad <[email protected]>
Co-authored-by: Mohammad Angkad <[email protected]>
Co-authored-by: cctry <[email protected]>
Co-authored-by: tao <[email protected]>
Co-authored-by: Richard Wang <[email protected]>
Co-authored-by: mohbasit <[email protected]>
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Co-authored-by: Cursor <[email protected]>
Co-authored-by: HAI <[email protected]>
Co-authored-by: chuyeh <[email protected]>
Co-authored-by: siliangchen-amd <[email protected]>
Co-authored-by: Liangsheng Yin <[email protected]>
Co-authored-by: Sage <[email protected]>
Co-authored-by: Bingxu Chen <[email protected]>
Co-authored-by: colleen-tml <[email protected]>
Co-authored-by: colleen-tml <[email protected]>
Co-authored-by: Shuwen Wang <[email protected]>
Co-authored-by: hhy-seven <[email protected]>
Co-authored-by: huangtingwei <[email protected]>
Co-authored-by: Shunkangz <[email protected]>
Co-authored-by: Xiaoyu Zhang <[email protected]>
Co-authored-by: Ke Bao <[email protected]>
Co-authored-by: Khoa Pham <[email protected]>
Co-authored-by: Cheng Wan <[email protected]>
Co-authored-by: Yuwei An <[email protected]>
Co-authored-by: Mick <[email protected]>
Co-authored-by: WenhaoZhang <[email protected]>
Co-authored-by: OnePunchMonk <[email protected]>
Co-authored-by: Jzz1943 <[email protected]>
Co-authored-by: LoCinder <[email protected]>
Co-authored-by: zhouzechun <[email protected]>
Co-authored-by: alphabetc1 <[email protected]>
Co-authored-by: Shangming Cai <[email protected]>
Co-authored-by: Kevin Flansburg <[email protected]>
Co-authored-by: Avaya Aggarwal <[email protected]>
Co-authored-by: niehen6174 <[email protected]>
Co-authored-by: Chunan Zeng <[email protected]>
Co-authored-by: SunskyXH <[email protected]>
Co-authored-by: Nikolai <[email protected]>
Co-authored-by: paulzhang-tm <[email protected]>
Co-authored-by: Qiaolin Yu <[email protected]>
Co-authored-by: jiaqiang-dot-liu <[email protected]>
Co-authored-by: Ziyi Xu <[email protected]>
Co-authored-by: Yuan Luo <[email protected]>
Co-authored-by: trebladev <[email protected]>
Co-authored-by: FeiHong Guo <[email protected]>
Co-authored-by: Banruo Liu <[email protected]>
Co-authored-by: Alison Shao <[email protected]>
Co-authored-by: WangHemeng <[email protected]>
Co-authored-by: metamergebot <[email protected]>
Co-authored-by: Hanming Lu <[email protected]>
Co-authored-by: Jialin <[email protected]>
Co-authored-by: hanminglu <[email protected]>
Co-authored-by: shodoco <[email protected]>
Co-authored-by: Po-Han Huang (NVIDIA) <[email protected]>
Co-authored-by: adenzhou1350 <[email protected]>
Co-authored-by: weireweire <[email protected]>
Co-authored-by: kk <[email protected]>
Co-authored-by: wunhuang <[email protected]>
Co-authored-by: ChengYM <[email protected]>
Co-authored-by: Yufeng He <[email protected]>
Co-authored-by: hnyls2002 <[email protected]>
Co-authored-by: sglang-bot <[email protected]>
Co-authored-by: sglang-bot <[email protected]>
Co-authored-by: ashwini rathi <[email protected]>
Co-authored-by: Yihao Wang <[email protected]>
Co-authored-by: Baizhou Zhang <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>
Co-authored-by: Anupa Sajikumar <[email protected]>
Co-authored-by: Siju Samuel <[email protected]>
Co-authored-by: BingjiaWang <[email protected]>
Co-authored-by: Jinyan Yi <[email protected]>
Co-authored-by: ybyang <[email protected]>
Co-authored-by: C <[email protected]>
Co-authored-by: Pavan Sivaram Girijala <[email protected]>
Co-authored-by: Ashwini Rathi <[email protected]>
Co-authored-by: Sasha Sidorov <[email protected]>
Co-authored-by: ming_wang <[email protected]>
Co-authored-by: Артем Савкин <[email protected]>
Co-authored-by: Alexandr <[email protected]>
Co-authored-by: Yuan Luo <[email protected]>
Co-authored-by: luoyuan.luo <[email protected]>
Co-authored-by: Sam Shleifer <[email protected]>
Co-authored-by: ix-48 <[email protected]>
Co-authored-by: Zhang, Jiejing <[email protected]>
Co-authored-by: JohnQinAMD <[email protected]>
Co-authored-by: Michael <[email protected]>
Co-authored-by: Thomas Wang <[email protected]>
Co-authored-by: Duyi-Wang <[email protected]>
Co-authored-by: Yizheng Jiao <[email protected]>
Co-authored-by: dingdangmao <[email protected]>
Co-authored-by: apex-mochen <[email protected]>
Co-authored-by: Zhiqiang Xie <[email protected]>
Co-authored-by: Vegetog <[email protected]>
Co-authored-by: Xinyuan Tong <[email protected]>
Co-authored-by: Piotr Mazurek <[email protected]>
Co-authored-by: Codex <[email protected]>
Co-authored-by: ai-jz <[email protected]>
Co-authored-by: ai-jz <[email protected]>
Co-authored-by: Bingoo <[email protected]>
Co-authored-by: jacky.cheng <[email protected]>
Co-authored-by: Xinyi Song <[email protected]>
Co-authored-by: Zhaoyi Li <[email protected]>
Co-authored-by: AMD-yanfeiwang <[email protected]>
Co-authored-by: Jimmy Shong <[email protected]>
Co-authored-by: inkcherry <[email protected]>
Co-authored-by: Michal Shalev <[email protected]>
Co-authored-by: AMD-yanfeiwang <[email protected]>
Co-authored-by: Shu Wang <[email protected]>
Co-authored-by: Anish Shanbhag <[email protected]>
Co-authored-by: Ziang Li <[email protected]>
Co-authored-by: elvischenv <[email protected]>
Co-authored-by: Yunhao Zhou <[email protected]>
Co-authored-by: 周云昊 <[email protected]>
Co-authored-by: LittleNyima <[email protected]>
Co-authored-by: jlqibm <[email protected]>
Co-authored-by: amote-i <[email protected]>
Co-authored-by: Ho-Ren (Jack) Chuang <[email protected]>
Co-authored-by: Kailash Ranganathan <[email protected]>
Co-authored-by: Yanbin Jiang <[email protected]>
Co-authored-by: Rain Jiang <[email protected]>
Co-authored-by: xiezhq-hermann <[email protected]>
Co-authored-by: Po-Han Huang <[email protected]>
Co-authored-by: qandrew <[email protected]>
Co-authored-by: vincentzed <[email protected]>
Co-authored-by: jiayisuse <[email protected]>
Co-authored-by: ZYHowell <[email protected]>
Co-authored-by: Nihar Patel <[email protected]>
Co-authored-by: Kan Wu <[email protected]>
Co-authored-by: Kan Wu <[email protected]>
Co-authored-by: Jiaqi Li <[email protected]>
Co-authored-by: Zijie Xia <[email protected]>
Co-authored-by: Andrew Briand <[email protected]>
Co-authored-by: Chuanrui Zhu <[email protected]>
Co-authored-by: Sundara Raman Ramachandran <[email protected]>
Co-authored-by: HEJIAN SANG <[email protected]>
Co-authored-by: Shu Wang <[email protected]>
Co-authored-by: shyeh25 <[email protected]>
Co-authored-by: Kangyan-Zhou <[email protected]>
Co-authored-by: William Arnold <[email protected]>
Co-authored-by: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
Co-authored-by: ishandhanani <[email protected]>
Co-authored-by: Spurthi Lokeshappa <[email protected]>
Co-authored-by: root <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

diffusion SGLang Diffusion jit-kernel run-ci CI: run the baseline test suite on this PR

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant