Skip to content

[Qwen 3.8 Flash Next] Add sm120 (RTX PRO 6000 Blackwell) support - #36787

Open
Dev-Jahn wants to merge 11 commits into
sgl-project:mainfrom
Dev-Jahn:pr-36497
Open

Dev-Jahn wants to merge 11 commits into
sgl-project:mainfrom
Dev-Jahn:pr-36497

Conversation

@Dev-Jahn

@Dev-Jahn Dev-Jahn commented Aug 28, 2026 •

Copy link
Copy Markdown

#36497 merged into main through #37500 on 2026-09-08, so this branch now sits on main (rebased at 9c8d4641f) with no external dependency. The commits listed below are the whole diff.

On sm120 the model from #36497 does not serve as written. The QSA sparse decode path is gated on is_sm100_supported() and falls back to a packed gather plus a FlashAttention varlen call; the QSA MQA indexer scoring runs TileLang with a silent torch fallback; and the JIT modules are built during graph capture. The PLE host-load path also performs a wasted row-zero read on non-owner ranks (correct output, unnecessary PCIe traffic). This PR adds the sm120 paths: a direct-paged Triton sparse decode with a fused split-K merge, Triton MQA scoring, a fused small-row NVFP4 MoE kernel in the in-tree CUDA JIT, sm120 launch geometry for the hyperconnection mix, tuned FP8 fused-MoE configs for this GPU, NUMA-interleaved pinning for the offloaded PLE table, and correctness fixes for the items above. With this branch both checkpoints serve with CUDA graphs and NEXTN speculative decoding: FP8 at TP4/EP4 and NVFP4 at TP2/EP1.

Motivation

sm120 is the workstation and consumer Blackwell architecture (RTX PRO 6000, RTX 5090, GB10 at sm_121). The QSA decode kernels this model depends on exist only for sm100: trtllm-gen has no sm120 cubins, so the gate is closed and the fallback gathers the selected tokens into a packed buffer before every attention call. Two day-0 reports describe the same gap: #36531 (the QSA fallback selects the pip FA4 path on sm120 and fails at the MLIR build) and the GB10 comment on #36497 asking to widen the sm100 gate. #36532 (FlashInfer GDN wanted fp32 state on sm120 while flag validation accepted bf16) is covered on main itself now, which converts the prefill state to fp32 on sm12x and ships the pooled bf16 decode kernel with FlashInfer 0.6.18, so the GDN commit this PR carried before the rebase is dropped.

Widening the gate was measured and is not the right fix: trtllm_batch_decode_with_kv_cache with backend="auto" routes compute capability below 10 to XQA, and forcing backend="trtllm-gen" fails at fmhaRunner.cuh:37: Unsupported architecture. XQA cannot address the paged pool directly, so it pays a page-aligned gather that costs more than the attention itself at large batch (measured below). The contribution here is a direct-paged kernel that skips the gather at large batch and splits along the top-k axis to reach XQA-class latency at small batch.

The irregular sparse-attention and gather paths are Triton: sparse decode, MQA scoring and the PLE gather have shape-dynamic index expansion where the compile keys are the fixed head and page tiles, not the sequence lengths. The quantized MoE GEMM is an in-tree sgl-kernel CUDA JIT kernel because it is a fixed-layout mma.sync.kind::mxf4nvf4 grouped GEMM with the architecture and model shape as compile keys. FlashInfer stays in place everywhere it owns the full production contract on sm100, including the NVFP4 MoE above 16 tokens, which remains the fallback.

Modifications

Eleven commits, oldest first (hashes omitted; see git log).

Subject What it does
[QSA] Add direct-paged Triton sparse decode on sm120 Reads the selected tokens straight from the paged KV pool through the request table. SGLANG_QSA_DECODE_BACKEND selects auto/triton/flash_attn/trtllm; auto picks Triton on sm120 (excluding sm121) and trtllm-gen where it exists. The MQA counterpart SGLANG_QSA_MQA_BACKEND accepts auto/tilelang/triton/torch.
[sm120] Fix serving fallbacks and graph capture Masks the PLE host load for non-owner ranks, makes the MQA path recoverable through SGLANG_QSA_MQA_BACKEND instead of dropping to torch silently, prewarms the Qwen4Exp JIT kernels before graph capture.
[MoE] Add tuned fused MoE configs for RTX PRO 6000 Triton 3.7.1 FP8 blockwise configs for E=64/128/256 at N=640, the EP8/EP4/EP2 layouts of this model.
[QSA] Add split-K sparse decode for small batches Two-stage split along the KV axis with the 12 grouped query heads packed into M; the split count is a static function of query rows so graph capture stays valid.
[QSA] Add Triton MQA scoring on sm120 Packed-prefill and direct-paged decode/verify scoring for the indexer; default on sm120, sm100 keeps TileLang.
[QSA] Fuse split-K merge into sparse decode The last program per row merges the partial softmax states with a graph-safe counter reset, removing the separate reduction launch.
[PLE] Interleave the pinned table across NUMA nodes Allocates the offloaded PLE table with mmap + numa_interleave_memory + cudaHostRegister instead of pin_memory=True so it does not exhaust the NUMA node local to the GPU. Goes through the allocate_ple_host_table backend switch that main gained with the file-backed table (pinned branch only; the mapping is read back with ple_pinned_mapping). Opt-out env provided.
[HC] Tune sm120 Triton geometry by row bucket Picks grid and tile from the static row count (1, 2-16, 17-64) on sm120; other architectures keep the previous choice.
[MoE] Add fused small-row NVFP4 kernel for sm120 One cooperative JIT launch per layer for 1-16 routed tokens: W4A4 quantize, FC1, SiLU-mul with group-16 requantization, grouped FC2, routing-weight finalize, all in checkpoint layout. Falls back to FlashInfer CUTLASS when cooperative launch or occupancy is not provable; above 16 tokens CUTLASS is unchanged.
[QSA] Bound sparse indices and use 64-bit KV addresses Prefill kernels bound the selected index by the request's own extent; decode, compaction and decode MQA compute slot-times-stride products in 64 bit.
[PLE] Select the prefetch buffer from capture state Asks the driver for the capture state instead of trusting a runner flag that some graph runners never set; keeps the mmap reachable until device work finishes. The prewarm reads the resolved graph config and draft width from the runtime context bags, since the worker's record only carries the raw flag value (found by @detain while running the stack on main).

New environment variables, all declared in environ.py with defaults that preserve non-sm120 behavior: SGLANG_QSA_DECODE_BACKEND, SGLANG_QSA_MQA_BACKEND, SGLANG_PLE_OFFLOAD_NUMA_INTERLEAVE, and SGLANG_NVFP4_MOE_SM120 (a kill switch for the small-row kernel, default on; turning it off restores the FlashInfer CUTLASS path everywhere).

New registered tests: kernels/ops/qsa/test_qsa_sparse_decode_triton.py, kernels/ops/qsa/test_qsa_mqa_triton.py, kernels/ops/qsa/test_qsa_sparse_index_bounds.py, kernels/ops/moe/test_nvfp4_moe_sm120.py, unit/models/test_qwen4_ple_prefetch_buffers.py, unit/utils/test_interleaved_pinned_table.py, unit/layers/moe/test_nvfp4_smallm_dispatch.py (CPU), an extension of unit/layers/moe/test_fused_moe_triton_config.py (CPU), plus additions to the existing QSA, PLE offload, PLE table, hc_mix and cuda graph tests. The three kernel benchmarks live under test/manual/kernels/benchmark/ (they need an sm120 GPU and, for the MoE one, local checkpoint tensors, so they are not registered CI jobs).

Environment

Item Value
CPU 2x AMD EPYC 9355
GPU 8x NVIDIA RTX PRO 6000 Blackwell Server Edition 96 GB, sm_120a
Driver / CUDA 595.71.05 / 13.2
torch / Triton / FlashInfer 2.13.0+cu130 / 3.7.1 / 0.6.17
OS Ubuntu 24.04.4, kernel 6.8

PCIe workstation host, no NVLink; measured GDDR7 bandwidth 1.459 TB/s; two unequal NUMA nodes (257.6 GB and 128.9 GB), which is why the NUMA commit exists.

Accuracy Tests

Every serving and accuracy number below was measured at the branch tip. Sampling for sglang.test.run_eval: T=1.0, top-p 0.95, top-k 20, max tokens 32768, thinking on. Server: CUDA graphs, NEXTN 3 steps / 4 draft tokens, PLE offloaded to host.

Task n Checkpoint and layout Score
GSM8K 1314 FP8, TP4/EP4 98.10%
GSM8K 1314 NVFP4, TP2/EP1 97.87%
AIME26, reference protocol (8 passes, 131k max tokens) 30 FP8, TP4/EP4 96.25%
GPQA 198 FP8, TP4/EP4 80.81%
GPQA 198 NVFP4, TP2/EP1 78.28%
IFEval 541 FP8, TP4/EP4 prompt strict 0.9316, inst strict 0.9508
IFEval 541 NVFP4, TP2/EP1 prompt strict 0.9057, inst strict 0.9365

The NVFP4 model card publishes 98.75% for AIME26 under the 8-pass protocol; the 96.25% above is the FP8 checkpoint under the same protocol (per-pass spread 93.3 to 100; repeated 8-pass runs during development landed between 96.3 and 98.3). Multimodal observations exist but their protocols are not all matched to published ones, so they are not claimed as comparisons.

Speed Tests and Profiling

QSA sparse decode

Isolated kernel benchmark at the model's full-attention shape: 24 query heads, 2 KV heads, head dim 256, bf16, 2051 selected-token slots per row, page size 64 for the gathered paths, ragged valid counts. CUDA events around the complete call, 10 warmups.

Query rows flash_attn packed fallback (ms) XQA end to end (ms) XQA kernel alone (ms) Triton direct paged (ms) + split-K (ms) + fused merge, head (ms)
1 0.0633 0.0377 0.0181 0.0901 0.0363 0.0318
4 0.0772 0.0374 0.0183 0.0912 0.0363 0.0314
16 0.0767 0.0417 0.0184 0.0917 0.0367 0.0361
64 0.5489 0.5476 0.1848 0.1985 0.1991 0.1992

The final column carries a 3-4 us cost at small rows over the pre-review revision of this kernel; it combines a defensive reinitialization of the split-K reduction generation with a retuned split schedule, and still beats every fallback at every row count. At 64 rows the split count is 1, so the last two columns both run the non-split kernel and their near-identical times are expected. The XQA column is what widening the sm100 gate would select: at 64 rows it spends 0.363 ms of 0.548 in the gather, and its 1-16 row numbers are optimistic because the gathered working set stays L2-resident across benchmark iterations. Numerics against an fp32 reference stay at the bf16 output-rounding floor (max abs 0.000477 to 0.007577 across 1-64 rows); eager calls are bitwise reproducible and captured graphs replay with zero drift. The split-K path is clean under Compute Sanitizer memcheck, initcheck, racecheck and synccheck with guard bands, across capture and replay.

QSA MQA indexer scoring

Decode scores a 32k source sequence (8192 compressed keys); prefill is one causal packed sequence. CUDA events, 2 warmups.

Point Query rows torch (us) TileLang (us) Triton (us)
decode batch 1 1 95.7 16.6 17.7
decode batch 16 16 130.3 15.5 16.6
decode batch 64 64 727.1 37.9 29.4
prefill 8k 8192 1297.3 132.7 73.5
prefill 32k 32768 21841.9 3221.6 1083.4

TileLang keeps a 2-4 us edge at decode batch 1-16; Triton wins at batch 64 and both prefill points and removes both the third DSL and the silent torch fallback from the sm120 path. Max abs logit error against torch is 2.4e-6 and all selected top-k sets matched exactly, including rows below the 512-block budget.

NVFP4 small-row routed MoE

Layer 0 real checkpoint tensors, TP2 rank 0, 512 local experts, hidden 2560, rank-local intermediate 320, top-k 10. One MoE call per captured graph, 30 repeats, 256 MiB L2 flush per sample.

Tokens FlashInfer CUTLASS median (us) This PR median (us) Median change
1 72.1 45.1 37.4% faster
4 111.6 84.5 24.3% faster
16 216.1 195.1 9.7% faster

Both GEMMs stay W4A4 group 16; relative L2 error against fp32-dequantized weights matches FlashInfer to the third decimal (0.1375 vs 0.1377 at 16 tokens). Graph capture replays all three shapes with stable workspace addresses.

Hyperconnection mix and FP8 MoE configs

hc_mix: a captured graph of 97 mix calls with distinct weights runs 5.0/5.4/20.8% faster at 1/16/64 rows (13.93 us per call at one row); max abs error is unchanged and 10,000 replays show no drift. The tuned FP8 fused-MoE configs reduce the isolated TP4/EP4 chain from 37.05 to 24.04 us at one token and 0.5-3.3% at 16-2048 tokens; the same chain measures 22.94 us against 49.90 us on FlashInfer CUTLASS per-tensor FP8 and 57.39 us on the CuTe-DSL sm12x grouped MoE from flashinfer PR 4720. E=512/N=160 (TP4 without EP) is rejected by the FP8 quantization layer before any config selection: the per-partition gate-up output size 160 is not divisible by the weight quantization block size 128, so no config exists for it.

End to end serving

sglang.bench_serving, random dataset, ISL 1024 / OSL 512, CUDA graphs on, PLE offloaded to pinned host memory. Each row issues more prompts than its concurrency window, so median TTFT includes scheduler queueing for the requests beyond the window: NEXTN drains the window roughly twice as fast at concurrency 16, which is why its TTFT drops there, while at concurrency 64 the draft-extend prefill overhead dominates and TTFT rises.

FP8, TP4/EP4:

Concurrency Spec Output tok/s TPOT med (ms) TTFT med (ms) Accept len
1 none 115.8 8.41 101.1
16 none 873.8 16.27 1066.7
64 none 1682.2 32.42 2719.9
1 NEXTN 3/4 220.6 4.40 109.9 2.92
16 NEXTN 3/4 1111.4 12.47 216.9 2.98
64 NEXTN 3/4 1754.2 25.01 3836.6 3.05

NVFP4, TP2/EP1 (two GPUs matching the four-GPU FP8 numbers is expected here: decode is weight-bandwidth-bound, NVFP4 halves the streamed weight bytes, and tensor-parallel traffic over PCIe scales poorly, so fewer ranks lose little):

Concurrency Spec Output tok/s TPOT med (ms) TTFT med (ms) Accept len
1 none 124.7 7.83 95.2
16 none 855.7 16.84 974.8
64 none 1666.7 33.18 2552.4
1 NEXTN 3/4 216.0 4.56 101.8 2.94
16 NEXTN 3/4 1069.2 13.20 194.5 3.00
64 NEXTN 3/4 1703.1 25.22 3711.8 3.02

Reference point at the #36497 head 73a255206 on the same host: FP8 TP4/EP4, eager, no MTP, concurrency 1, 17.4 output tok/s at 57.21 ms median TPOT; a baseline for "it serves at all", not a like-for-like graph comparison.

The NUMA commit is what lets the NVFP4 NEXTN configuration start with the PLE table offloaded: pin_memory=True put both TP2 ranks' 47.7 GiB on the 128.9 GB node local to GPUs 4-7, the node went into reclaim and the driver failed with Xid 31 MMU faults at a host address during the draft load. Interleaved, each rank spreads 23.8 GiB evenly across both nodes and startup completes; single-stream throughput is about 2 percent below a GPU-resident table, the expected cost of PCIe reads.

Rebase notes (2026-09-16)

Rebased from the #36497 head onto main at 9c8d4641f. Besides the GDN commit drop and the PLE allocation change described above, the QSA tests sit in test/registered/kernels/ops/qsa/ following the test layout consolidation (#39966), and the tree is formatted with ruff-format as the pre-commit config now asks. CPU verification on the rebased tree: the touched CPU suites pass (61 tests, 51 subtests). GPU check of the rebased tree on a DGX Spark (GB10, sm_121) on 2026-09-17: file-backed PLE boots and serves with defaults, with the Triton QSA kernels forced on, and with NEXTN (table in the comments). The exact-sm120 numbers above are from before the rebase; @detain reports the pre-rebase stack running on 4x RTX PRO 6000 Workstation Edition together with #37275, #38144, #38209 and #36644 (see the #37275 thread). An sm120 re-run of the rebased tree follows when a card frees up.

Not covered

  • FP8 KV cache. --kv-cache-dtype fp8_e4m3 still asserts in the QSA path (Qwen3.8-Flash-Next QSA crashes with FP8 KV cache (BF16 q vs FP8 k dtype assertion) #36545); neither checkpoint requests it. Separate PR.
  • QSA prefill. Decode is direct-paged; prefix and chunked prefill still gather more than they need. Separate PR.
  • RealWorldQA. Under the official Qwen3-VL protocol (exact prompt, 602K-4M pixel smart resize, thinking recipe, rule-plus-judge extraction, all 765 items) scores 86.4-87.2 against the published 88.5; runs with NEXTN off and with rejection sampling land in the same band, so speculative decoding is excluded as the cause and the residual gap is still being investigated as an evaluation-protocol or serving-numerics question, not claimed as a kernel result.
  • CI coverage. The registered kernel and GPU unit tests use the base-b-kernel-unit suites, as the test taxonomy check asks, and those run on H100/B200/H200 runners, so the sm120-gated tests skip there; the architecture-independent parts do run. The 1-gpu-small runner is a 5090 (SM120), but no kernel-unit suite is defined on it. If maintainers want the sm120 paths exercised in CI, a base-b-kernel-unit-test-1-gpu-small suite would do it and I can wire the registrations to it.
  • Other sm120 parts. Only RTX PRO 6000 Blackwell Server Edition was measured. RTX 5090 (sm_120) should take the same paths but is untested here. GB10 (sm_121) keeps upstream defaults everywhere: the backend auto-selection does not route it onto the new Triton QSA paths (the env vars allow an explicit opt-in), and the small-row NVFP4 kernel refuses it and falls back to CUTLASS.
  • Adoption instead of duplication. sglang feat(moe): add SM120/SM121 dispatch for fp8_blockwise_scaled_grouped_mm #28125, [Kernel] Add Qwen3.8 NVFP4 skinny GEMM for SM120 #36043, feat(moe): enable DeepGEMM MoE runner on SM120 (RTX PRO 6000 / RTX 6000D) #34827 and flashinfer Support dynamic version name in sglang's pyproject.toml #4720/[Feat.] Enable grafana to show metrics #4718 overlap with the FP8 MoE and NVFP4 GEMM area. The tuned Triton FP8 configs here are an interim path; when one of those lands with the checkpoint's scale format and wins on the full routed chain, it should replace them.

Checklist

Review and Merge Process

  1. Ping Merge Oncalls to start the process. See the PR Merge Process.
  2. Get approvals from CODEOWNERS and other reviewers.
  3. Trigger CI tests with comments or contact authorized users to do so.
  4. After green CI and required approvals, ask Merge Oncalls or people with Write permission to merge the PR.

CI States

Latest PR Test (Base): ❌ Run #35953552532
Latest PR Test (Extra): ❌ Run #35953552457
Latest PR Test (AMD ROCm 10): ❌ Run #35953552494

@Dev-Jahn

Copy link
Copy Markdown
Author

Boot check of the rebased tree (c2bfe9dc6) on a DGX Spark, GB10 (sm_121, 121 GB unified memory), 2026-09-17. Stack: python/sglang from this branch mounted over lmsysorg/sglang:dev-cu13 (arm64, image commit 408d233), FlashInfer 0.6.18, sgl_kernel 0.4.7, torch 2.13.0+cu130, checkpoint nvidia/Qwen3.8-Flash-Next-NVFP4 (resolves to modelopt_mixed). Common flags follow the cookbook single-Spark row: --tp 1 --ple-offload-embedding --mem-fraction-static 0.85 --moe-runner-backend flashinfer_cutlass --ple-offload-dir <nvme>, the PLE table file deleted before every boot. Bench: bench_serving, random dataset, 8 prompts at 512 in / 128 out, 8 concurrent.

Step Result Output tok/s TPOT med Note
file-backed PLE, defaults pass 52.3 110 ms boot 726 s, 200-token completion coherent, 8/8 requests ok
pinned PLE not run to completion host memory exhausted 30 s into weight load, before any PLE code ran: 78 GB of weights plus the 47.7 GB table exceed the 121 GB pool, which is the case the file backend exists for on GB10
file-backed PLE, SGLANG_QSA_DECODE_BACKEND=triton SGLANG_QSA_MQA_BACKEND=triton pass 50.7 111 ms the Triton sparse decode and MQA scoring paths forced on (sm121 does not select them by default), no errors in the server log
file-backed PLE, NEXTN 3 steps / 4 draft tokens pass 57.5 93 ms accept length 2.48 to 2.90 on thinking-style output, draft load 92 s, QSA MTP index sharing on

What this covers: the shared code the rebase touched (PLE table allocation through the backend switch, the prewarm reading the runtime context bags, the kernel registry, the env declarations) on the current main, plus the Triton QSA kernels under a forced selection. What it does not cover: the exact-sm120 defaults, whose numbers in the description are from the RTX PRO 6000 Server Edition before the rebase, and the NUMA-interleaved pinned path, which sm121 skips by design. Both were exercised before the rebase (the Server Edition runs above, and @detain's Workstation Edition run on the same commits), and the rebase changed only the call into that allocation. I will post an sm120 re-run when a card frees up; the PR moves out of draft now that the base is in main and the rebased tree serves.

Use the paged Triton path for sparse decode on SM120. Keep the environment override resolution cached for the process lifetime.
Mask non-owner PLE host loads so ranks that do not own a row no longer issue
the clamped row-zero read over PCIe. The old read could not corrupt output,
because the load mask already included the in-range predicate, but it was an
out-of-range access pattern and wasted host bandwidth on every non-owner rank.
Also retain the MQA fallback after a compile failure instead of dropping to
torch silently, and prewarm the Qwen4 JIT kernels before graph capture so the
first capture does not compile inside the graph.
Add Triton 3.7.1 FP8 blockwise configurations measured for the Qwen3.8 expert-parallel layouts on the RTX PRO 6000 Blackwell Server Edition.
Use split-K work partitioning for low-row sparse decode and register the SM120 benchmark with the kernel benchmark suite.
Use Triton for QSA MQA scoring on SM120 and register the architecture-gated benchmark with the kernel benchmark suite.
Merge split-K partials in the final decode program to remove the separate reduction launch.
Spread the GPU-read host table across online NUMA nodes before registering its pages. Keep node-local pinning as an explicit fallback.
Select the hc_mix Triton geometry from the row count on SM120 while preserving the existing path on other architectures.
Use the grouped W4A4 kernel for small routed-row counts on SM120 and register its architecture-gated benchmark.
Clamp sparse attention indices before lookup, keep KV pool address arithmetic
in 64 bits, and guard the degenerate inputs the bounds work exposed: empty
rows, negative and past-the-end indices, and prefill rows whose visible
extent is shorter than the selected budget.
Choose the PLE prefetch buffer from the active capture state so graph replay uses the buffer that was actually captured.
detain added a commit to detain/sglang that referenced this pull request Oct 7, 2026
Brings in 311 upstream commits up to f209e67 (sgl-project#39643, 2026-09-28).

Conflict resolutions:
- qwen_sparse_attn_backend.py: keep the SM120 triton decode branch and FP8
  descales; adopt upstream's HIP packed-decode path and move the flash-attn
  resolve after it (matches the rebased sgl-project#36787 head).
- cuda_graph_setup.py: prewarm after EagerRunner(run_warmup=...) and in
  elastic recapture (as in the rebased sgl-project#36787 head).
- mega_moe.py: upstream flydsl early return + stack deep_gemm_wrapper import.
- hybrid_cache_controller.py: upstream per-chain sidecar batch_get_v2, wrapped
  in the stack's degrade-to-miss guard.
- unified_radix_cache.py: take upstream allocate_host_transfers (group.alloc
  already reclaims only the shortfall).
- hiradix_cache.py: accept upstream deletion (sgl-project#40787).
- hybrid_pool_assembler.py + its test, test_hc_mix.py: unions.
- qsa kernel tests follow the ops/qsa -> ops/attention/qsa move (sgl-project#41243).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
detain added a commit to detain/sglang that referenced this pull request Oct 7, 2026
The 09-24 rebase of sgl-project#36787 (head 7431002) adapted three of its tests to
upstream API drift that also arrived through the 09-28 merge:
- test_cuda_graph_setup: EagerRunner now takes run_warmup=, and the new
  recapture_elastic_cuda_graph prewarm (carried in the merge resolution)
  gets its test.
- test_nvfp4_moe_sm120: flashinfer_cutlass reads get_parallel().tp_group;
  get_tp_group no longer exists there.
- test_nvfp4_smallm_dispatch: the fallback stub gains swiglu_alpha/beta/limit.
Files taken verbatim from the PR head (a6c20ce, which keeps entry 93).

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
detain added a commit to detain/sglang that referenced this pull request Oct 7, 2026
…prewarm

Upstream sgl-project#41243 moved sglang.kernels.ops.elementwise.fast_topk to
ops.attention.fast_topk. sgl-project#36787's _prewarm_cuda_graph_jit_kernels (also on
its rebased head 7431002) still imported it from elementwise, so on
SM120 the first CUDA-graph prewarm at boot raised ImportError. Caught by
test_qwen4_ple_prefetch_buffers (2F -> 10P), which had the same import.

Co-Authored-By: Claude Opus 5.5 (1M context) <[email protected]>
detain added a commit to detain/sglang that referenced this pull request Oct 7, 2026
- test_hicache_fast_file_unit (sgl-project#39880): HiCacheFile._get_component_path
  was removed upstream (sgl-project#40963); build the path from _get_component_key.
- test_qwen4_exp_ple_staging (sgl-project#40235): eager_runner no longer imports
  get_parallel (sgl-project#40638); patch it only where it is read.
- test_elastic_cuda_graph_setup (upstream, new): give the runner stubs a
  device -- the stack's SM120 graph prewarm (sgl-project#36787) reads it first and is
  a no-op off CUDA.
- test_serving_decisions (upstream, new): its ScoringManager fake gets
  request_preprocessor like the other fakes sgl-project#39716 updated, and the
  yield-order check no longer pins where the first encode lands (request
  conversion hops through sgl-project#39716's worker thread); it still fails when
  encodes run back to back while another request is waiting.

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

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant