You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix scaled_mm CuTe compile contract for blockscaled persistent GEMM #18334
scaled_mm in tensorrt_llm/_torch/cute_dsl_kernels/blackwell/dense_blockscaled_gemm_persistent.py compiles Sm100BlockScaledPersistentDenseGemmKernel directly. Its positional arguments do not match Sm100BlockScaledPersistentDenseGemmKernel.__call__.
Required change
Update scaled_mm to compile the wrapper interface. Supply the required runtime dimensions and alpha_tensor. Preserve the existing pointer construction, layout mapping, cluster limit, stream, epilogue operation, and compilation options.
Rationale
The direct cute.compile(gemm_obj, ...) call binds the layout tuple where __call__ expects alpha. It then shifts the remaining positional arguments. This can produce an invalid compiled invocation.
Fixed on main by #19150 (commit 7b1bedb): scaled_mm now compiles through the kernel's call interface with a keyword-only alpha_tensor, and the Rubin path uses the same contract. Closing.
Activity
[None][fix] Compile scaled_mm through the SM107 wrapper
farazkh80 commentedon Sep 17, 2026
Fixed on
mainby #19150 (commit 7b1bedb):scaled_mmnow compiles through the kernel's call interface with a keyword-onlyalpha_tensor, and the Rubin path uses the same contract. Closing.