Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion flashinfer/gemm/gemm_base.py
Original file line number Diff line number Diff line change
Expand Up @@ -4538,7 +4538,7 @@ def _cute_dsl_gemm_fp4_requirement(
return True


@supported_compute_capability([120])
@supported_compute_capability([120, 121])

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

medium

While adding 121 to the supported compute capability list enables the b12x backend when explicitly requested, the heuristic function _heuristic_func_mm_fp4 (around line 5070) also needs to be updated to include SM121. Currently, it only checks for is_sm120 (major 12, minor 0), which means backend="auto" will not select b12x on SM121 devices even if CUDA 13+ is present. Consider updating the heuristic logic to use major == 12 or _match_sm_version(a.device, ["120", "121"]) to ensure consistent behavior across Blackwell variants.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Auto not selecting b12x on SM121 devices is intentional at this point.

def _b12x_gemm_fp4_requirement(
a: torch.Tensor, # unused
b: torch.Tensor, # unused
Expand Down
Loading