Skip to content

fix(inference): guard FlashInfer trtllm all-reduce fallback on SM100 - #4934

Merged
skpulipaka26 merged 1 commit into
mainfrom
fix/flashinfer-allreduce-trtllm
Dec 3, 2026
Merged

skpulipaka26 merged 1 commit into
mainfrom
fix/flashinfer-allreduce-trtllm

Conversation

@skpulipaka26

@skpulipaka26 skpulipaka26 commented Dec 3, 2026 •

Copy link
Copy Markdown
Contributor

When NVSwitch multicast is unavailable on a B200 host (for example cuMulticastBindMem failing with CUDA_ERROR_ILLEGAL_STATE), vLLM falls back from FlashInfer mnnvl to backend=trtllm, which produced 100% NaN/corrupted generations on Qwen3.5-397B-A17B at TP=8. This adds an interim vLLM patch in apply_shared_vllm_patches to disallow the trtllm fallback on SM100+ at TP>=8 (falling through to CUSTOM/PYNCCL instead while keeping healthy hosts on mnnvl) and to pass trigger_completion_at_end=True on trtllm in standalone FlashInferAllReduce.all_reduce, matching allreduce_rms_fusion.py (tracked upstream in vllm-project/vllm#64420).

No breaking changes; healthy NVSwitch hosts continue using backend=mnnvl unchanged. Verified with ruff check/format and an isolated unit check covering SM100 TP=8/TP=4 resolution, idempotency, and trigger_completion_at_end behavior.

@skpulipaka26
skpulipaka26 marked this pull request as ready for review December 3, 2026 21:03
@skpulipaka26
skpulipaka26 merged commit 447ebd9 into main Dec 3, 2026
18 checks passed
@skpulipaka26
skpulipaka26 deleted the fix/flashinfer-allreduce-trtllm branch December 3, 2026 21:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants