PyTorch users on AMD MI350-series GPUs can now access FlyDSL kernels for several compute-intensive operations through existing operator APIs. The integration adds an optional backend path, so applications do not need to call custom GPU kernels themselves.
Supported operations include dense and grouped matrix multiplication, MXFP8 and MXFP4 scaled multiplication, RMSNorm, and TopK. With torch.compile, eligible GEMM calls can be measured against other available implementations. Eligible RMSNorm and TopK calls can dispatch to FlyDSL automatically in eager mode. For attention, FlyDSL kernels are available through AOTriton and PyTorch’s SDPA operator.
In vLLM A/B tests, PyTorch reports whole-request speedups of up to 1.13x for BF16, 2.04x for MXFP8, and 3.01x for MXFP4. Results depend on the model and concurrency. Operator benchmarks were measured on MI355X GPUs and exclude compilation and initial autotuning, so they do not guarantee similar end-to-end model performance.
Current support focuses on MI350 GPUs with gfx950. Unsupported inputs retain existing PyTorch paths; FP32 is not currently supported for attention. The original post provides further detail on supported formats, layout requirements, and benchmark results. PyTorch: Accelerating PyTorch on AMD GPUs with FlyDSL
🇬🇧 https://pytorch.org/blog/accelerating-pytorch-on-amd-gpus-with-flydsl