Skip to content

[Chore] [NVIDIA] deps: Bump FlashInfer to 0.7.3 and migrate the NVLink one-sided all-to-all to flashinfer.moe_ep - #48468

Merged
Fridge003 merged 17 commits into
sgl-project:mainfrom
leejnau:flashinfer-0.7.3-moe-ep
Nov 6, 2026
Merged

Fridge003 merged 17 commits into
sgl-project:mainfrom
leejnau:flashinfer-0.7.3-moe-ep

Conversation

@leejnau

@leejnau leejnau commented Nov 4, 2026 •

Copy link
Copy Markdown
Collaborator

Motivation

This PR bumps FlashInfer to 0.7.3. It also brings in @trevor-m's migration of the NVLink one-sided all-to-all to flashinfer.moe_ep from #46885, because neither change can land without the other:

#46926 (0.7.2.post1) stays open for now as a fallback.

Depends on

Modifications

0.7.3 requires nvidia-cutlass-dsl[cu13]>=4.8.0, and SGLang already pins 4.8.0.

Tests

🤖 Generated with Claude Code


CI States

Latest PR Test (Base): ⏳ Run #42263377649
Latest PR Test (Extra): ⏳ Run #42263377799
Latest PR Test (AMD ROCm 10): ⏳ Run #42263377681

Tip

Base CI only covers the core cases, and its workload may not exercise your change. Use /rerun-test to run the tests your change touches, or copy this prompt for an agent:

Find the registered tests this PR affects and run them with /rerun-test, following https://github.com/sgl-project/sglang/blob/main/.agents/skills/rerun-test/SKILL.md

@github-actions github-actions Bot added the dependencies Pull requests that update a dependency file label Nov 4, 2026

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Claude Code Review

This pull request is from a fork — automated review is disabled. A repository maintainer can comment @claude review to run a one-time review.

@github-actions

This comment has been minimized.

…FromProb

FlashInfer 0.7.3 (flashinfer-ai/flashinfer#5352) added an int& last_valid_index
parameter to flashinfer::sampling::DeviceSamplingFromProb, so the JIT tree
speculative sampling kernel no longer compiled and EAGLE verify crashed the
scheduler. Keep the per-thread candidate across the scan, as FlashInfer's own
chain speculative sampling kernel now does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@Fridge003 Fridge003 removed highest-priority CI: all three control labels, plus never batch-cancelled or stale-closed run-ci-nv-extra CI: NVIDIA/shared Extra suite (requires run-ci) labels Nov 6, 2026
@Fridge003 Fridge003 added highest-priority CI: all three control labels, plus never batch-cancelled or stale-closed and removed max-concurrency CI: a suite fans out to every shard; apply before triggering the run labels Nov 6, 2026
@leejnau leejnau added the run-ci-nv-extra CI: NVIDIA/shared Extra suite (requires run-ci) label Nov 6, 2026
…e-ep

# Conflicts:
#	python/sglang/kernels/ops/moe/moe_finalize_fuse_shared.py
@Fridge003

Fridge003 commented Nov 6, 2026 •

Copy link
Copy Markdown
Collaborator

@Fridge003 Fridge003 added the release-highlight Candidate PR for release note highlight label Nov 6, 2026
@Fridge003
Fridge003 merged commit dc4b17b into sgl-project:main Nov 6, 2026
321 of 384 checks passed
@leejnau
leejnau deleted the flashinfer-0.7.3-moe-ep branch November 6, 2026 23:02
tohaowu added a commit to tohaowu/sglang that referenced this pull request Nov 11, 2026
…lm_mla decode

FlashInfer changed trtllm_batch_decode_with_kv_cache_mla to default to
backend="auto", which constructs every candidate backend runner, sizes
CuTe-DSL workspaces, and queries AutoTuner.choose_one on each eager
decode call. FlashInfer 0.7.3 (pinned in sgl-project#48468) also removed the legacy
private runner classes used by the earlier tactic-cache prototype.

Remove the obsolete private-runner cache and pass backend="trtllm-gen"
explicitly from TRTLLMMLABackend._run_decode_kernel when self.backend ==
"trtllm-gen" on SM10x outside trtllm-gen's (64, 128) head-count hole,
keeping FlashInfer's "auto" fallback for SM12x XQA and 64 < H < 128.

Signed-off-by: Hao Wu <[email protected]>
detain added a commit to detain/sglang that referenced this pull request Nov 11, 2026
…nd the flashinfer wheel/floor pairing REVERTED to the fork's 0.7.2

Found by the damage batteries + the entry-228 pairing rule (not in the conflict
set -- silent auto-merge cargo):
- upstream sgl-project#48468 bumped flashinfer floor pyproject==0.7.3 + engine.py assert
  0.7.3 as a clean hunk. Prod venv ships the 0.7.2 wheel (READ-ONLY here);
  assert_pkg_version is MIN-version semantics -> boot dies. BOTH lines flipped
  back to 0.7.2 with a TODO(merge6) zone=b6 marker recording the paired
  adoption path (wheel first, then pin+assert together).
- sgl-deep-gemm (venv 0.2.3.post2 vs tree ==0.2.7) and sgl-flash-mla (venv
  1.0.0 vs ==1.0.4): upstream pins TAKEN (no recorded fork pairing; no boot
  asserts gate them) + OPERATOR-OWED WHEEL CHECK markers zone=b6.
- test_scheduler_hybrid_ssm_admission_retry / test_scheduler_running_batch_
  finished: DisaggregationMode import retargeted to upstream's new
  disaggregation/mode.py home.
- test_ngram_mamba_verify_update: mock target retargeted to
  layers.dp_attention.get_eager_max_batch_size (upstream moved the helper out
  of utils/common during the module prune).
- qwen3_moe.py: merged the grafted get_mixed_precision_moe_quant_algos import
  into the existing configs.quant_utils import.

Marker census after this commit: 125 = b1 12 / b2 23 / b3 18 / b4 39 / b5 17 /
b6 16. Gates: py_compile + ruff (F401,F821,F823,UP037) + ruff format clean on
all touched files; batteries re-run post-change (managers/spec totals unchanged
-- the blake3 env class masks these fixes until the wheel lands).
detain added a commit to detain/sglang that referenced this pull request Nov 11, 2026
…server_args field-order markers, C2's own file) -- WHEEL PAIRING RESOLVED AS VERIFICATION + TWO TREE-SIDE REVERTS TO VENV TRUTH

pairing matrix (tree pin | venv | verdict): flashinfer_python[cu13]==0.7.2 | 0.7.2 | MATCH -- engine assert 0.7.2 matches too, sgl-project#48468's 0.7.3 stays HELD (entry-228 rule: wheel+floor move together; docker/Dockerfile* FLASHINFER_VERSION=0.7.3 leaked in with the window -> REVERTED to 0.7.2 to honor pyproject's own "keep aligned with Dockerfile" comment). sglang-kernel==0.4.10 | 0.4.10 | MATCH, engine floor 0.4.9 <= installed (floor-assert is a floor, not a pin). blake3>=1.0.0 | 1.0.11 | SATISFIED (sgl-project#47120 dep). torch==2.14.1 | 2.14.1 | MATCH. nvidia-cutlass-dsl[cu13]==4.8.0 | 4.8.0 | MATCH (b12x >=4.6.0 requirement satisfied). triton: unpinned in pyproject | 3.8.0 | n/a.
drift pair REVERTED TO VENV (live-tree law: fix tree, never venv; era base 2d87757 -- the FIRST POST-MERGE PROD BOOT 321 -- pinned exactly the venv versions and the check_dockerfile_wheel_pins gate passed at the base): sgl-deep-gemm 0.2.7->0.2.3.post2 (pyproject + Dockerfile.cu134 DEEPGEMM_REF/SGL_DEEP_GEMM_VERSION), sgl-flash-mla 1.0.4->1.0.0 (pyproject; builder Dockerfile sources-only, no version to move).
reachability evidence (deep-reconcile obligation): both wheels import on the live path (SGLANG_ENABLE_JIT_DEEPGEMM default True; SM120 configurer probe fp8_einsum/m_grouped_fp8_fp4_gemm_nt_contiguous/transform_sf_into_required_layout ALL PRESENT in 0.2.3.post2). Every window-grown API the tree touches that 0.2.3.post2/1.0.0 LACK is guarded or arch-inert: get/set_compile_mode behind hasattr (compile_utils.py:252); sparse_decode_num_sm_parts behind supports_native_heads (flash_mla_interface.py:41-44); tf32_hc_prenorm_gemm_dual only on current_arch().is_sm(10) (mhc.py:2772, SM100 -- ours is SM120) inside the dsv4-only mhc sinkhorn route; deep_gemm.localize inside the dsv4 mega_moe weight-localize block. Residual symbol sweep vs the installed wheels: zero ungated misses.
non-wheel markers: exec_.py b12x FP8-GEMM help clause RE-PLANTED (choice exists in choices.py since the entry-316 port; help silently lost it); memory.py fast_file descriptor RE-PLANTED (+ server_arguments.mdx row, keeps the new npu_memcache/tensorcast/seaweedfs entries); exec_.py PLE-staging help + server_arguments.mdx PLE row = OBSOLETE-CONSUMED (upstream rewrote the mechanism to direct pageable reads, qwen4_exp_ple_table.py:17-19 documents it, the staging/limits prose describes a removed path); hicache_best_practices.mdx DUAL block = SUPERSEDED-CONSUMED (current text matches the file_storage_path config generation, fast_file_store.py:22); model_hook.py Gemma4: fork flashinfer acceptance RE-HOMED into gemma4_attention_backends() exactly as the marker prescribed (_BUILTIN_ATTENTION_BACKENDS += "flashinfer"; contested-message marker consumed -- the f-string now interpolates the helper, so no stale list can rot); sampling_params.mdx n-bound row = the sgl-project#44047 env-bounded doc, already correct, consumed (its contract is C3's anchor); engine.py pairing marker converted to the durable VERIFIED note; pyproject flashinfer marker likewise.
gates: ruff repo ruleset + format clean on all 5 touched .py; check_registered_tests / check_no_registered_tests_in_package / check_no_bare_pytest_main / check_opt_in_ci_tiers / check_dockerfile_wheel_pins ALL rc=0 (the wheel-pin gate was BROKEN by the window's 0.2.7 landing and is GREEN again only because of the revert).
detain added a commit to detain/sglang that referenced this pull request Nov 11, 2026
…ckerfile re-applied upstream's sgl-project#48468 form

Reverts the flashinfer half of dea2641's entry-228 hold, restoring the
exact upstream dc4b17b (sgl-project#48468) form at all four sites it flipped
(verified byte-for-byte against eb73a50; engine.py post-image blob
4b0ec5b is the pre-revert blob):
  - python/pyproject.toml:41  flashinfer_python[cu13]==0.7.3
  - engine.py assert_pkg_version floor 0.7.3 (MIN semantics proven:
    utils/common.py assert raises iff installed < min)
  - docker/Dockerfile + Dockerfile.cu134  ARG FLASHINFER_VERSION=0.7.3

WHY NOW: the canary boot of era tip proved the JIT tension real -- the
merge took sgl-project#48468's 8-arg DeviceSamplingFromProb call (last_valid_index)
into kernels/jit/include/sgl_kernel/speculative/sampling.cuh but held the
wheels at 0.7.2, so the first sampled traffic died compiling against the
0.7.2 flashinfer/sampling.cuh header. The fix direction is header-version
ADOPTION (upstream pairs this .cuh with 0.7.3 in the same commit), not a
fork patch reverting the .cuh. Entry 323's hold note ("adopt =
WHEEL-FIRST-THEN-PIN") is discharged by this commit ON THE TREE SIDE ONLY.

WHEEL PENDING OPERATOR INSTALL -- DO NOT BOOT EITHER ARM OFF THIS COMMIT
BEFORE flashinfer 0.7.3 IS IN THE VENV. Booting this tree on the 0.7.2
wheel now fails LOUDLY at startup (engine assert) instead of at first
sampled traffic (JIT) -- strictly earlier, strictly clearer.

Gates: check_dockerfile_wheel_pins rc=0 (no flashinfer expectation in it
-- covers sgl-deep-gemm/sgl-deep-ep only), check_opt_in_ci_tiers /
check_no_bare_pytest_main / check_registered_tests / check_rust_ext_cache_
prefix rc=0, py_compile + ruff (F401,F821,F823,UP037) + ruff format clean
on engine.py. 21-arg plan() tail (fast_prefill_plan fixed_uniform_q_len)
ALREADY CARRIED -- era tree hunk identical to upstream, no fix commit
needed. Remaining soft 0.7.2 mentions left per deep-reconcile: the
muse_spark/MiniMax-H3 cookbook wheel pins (upstream itself still 0.7.2
there -- sgl-project#48468 missed it) and fork comment/advisory-text only.
@nvpohanh nvpohanh mentioned this pull request Nov 11, 2026
2 of 5 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

blackwell SM100/SM120 bypass-fail-fast CI: a failing job no longer aborts its siblings (lint still gates) dependencies Pull requests that update a dependency file highest-priority CI: all three control labels, plus never batch-cancelled or stale-closed jit-kernel release-highlight Candidate PR for release note highlight run-ci CI: run the baseline test suite on this PR run-ci-nv-extra CI: NVIDIA/shared Extra suite (requires run-ci)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants