Skip to content

Fix attention backend auto-detection for consumer Blackwell (sm120) - #146

Open
tao-plumber wants to merge 1 commit into
sgl-project:mainfrom
tao-plumber:fix/sm120-attn-backend-autodetect
Open

Fix attention backend auto-detection for consumer Blackwell (sm120)#146
tao-plumber wants to merge 1 commit into
sgl-project:mainfrom
tao-plumber:fix/sm120-attn-backend-autodetect

Conversation

@tao-plumber

@tao-plumber tao-plumber commented Jul 28, 2026

Copy link
Copy Markdown

Found this issue on my 5080.

Motivition

is_sm100_supported() in python/minisgl/utils/arch.py uses a plain compute_capability >= (10, 0) check to decide GPU support tiers. Consumer Blackwell GPUs (RTX 50-series, sm120) satisfy that check numerically, so they get misdetected as datacenter Blackwell (sm100/B200) and the engine auto-selects the trtllm attention backend. But trtllm's underlying kernels (flashinfer's TensorRT-LLM-Gen FMHA) are only built for Hopper/datacenter-Blackwell — they don't support sm120 at all, so the server crashes immediately on startup with RuntimeError: ... Unsupported architecture in fmhaRunner.cuh. This makes mini-sglang unusable out of the box on any RTX 50-series card with the default --attention-backend auto.

Goal

Make auto backend selection correctly detect consumer Blackwell as its own tier and route it to the portable fi (FlashInfer) backend instead of trtllm, so RTX 50-series users get a working server out of the box without needing to manually pass --attention-backend fi.

is_sm100_supported() used a plain ">=" compute-capability check, so
RTX 50-series GPUs (sm120) were misdetected as sm100 datacenter
Blackwell and auto-selected the trtllm backend, which only supports
Hopper/datacenter-Blackwell trtllm-gen kernels and crashes with
"Unsupported architecture" on sm120.

Add is_sm120_supported() and route consumer Blackwell straight to the
portable fi backend before the sm100 check.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@tao-plumber

Copy link
Copy Markdown
Author

@DarkSharpness this may resolve the issue for #129? I've run into same issue on my rtx5080.

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.

1 participant