vllm.model_executor.kernels.linear.nvfp4.pytorch
¶
Classes:
-
TorchNvFp4LinearKernel–NVFP4 GEMM implemented with PyTorch's native
torch._scaled_mm.
TorchNvFp4LinearKernel
¶
Bases: NvFp4LinearKernel
NVFP4 GEMM implemented with PyTorch's native torch._scaled_mm.
Eager execution uses PyTorch's native scaled-matmul implementation. Under
torch.compile, TorchInductor may select any enabled scaled-GEMM backend,
including NVGEMM on supported Blackwell systems.