# Accelerating PyTorch on AMD GPUs with FlyDSL

DevFeed: [Accelerating PyTorch on AMD GPUs with FlyDSL](<https://devfeed.tech/articles/accelerating-pytorch-on-amd-gpus-with-flydsl-93059.md>)

Original publisher: [Read original article](<https://pytorch.org/blog/accelerating-pytorch-on-amd-gpus-with-flydsl/>)

Author: AMD: Xiaobing Zhang, Yutao Xu, Rui Li, Heng Yi, Xinya Zhang, Shijie Feng, Felix Li, Jeff Daily, Jiong Gong, Hattie Wu, Peng Sun, Emad Barsoum; META: Jason Ansel and Simon Layton

Published: 2026-10-21T17:45:40Z

Content type: release

Language: en

Sources: [PyTorch](<https://devfeed.tech/sources/blog-pytorch.md>)

Topics: [PyTorch](<https://devfeed.tech/topics/pytorch.md>), [GPU optimization](<https://devfeed.tech/topics/gpu-optimization.md>), [rocm](<https://devfeed.tech/topics/rocm.md>), [LLM optimization](<https://devfeed.tech/topics/llm-optimization.md>), [quantization](<https://devfeed.tech/topics/quantization.md>)

Tags: [amd](<https://devfeed.tech/tags/amd.md>), [apis](<https://devfeed.tech/tags/apis.md>), [attention](<https://devfeed.tech/tags/attention.md>), [blog](<https://devfeed.tech/tags/blog.md>), [gpus](<https://devfeed.tech/tags/gpus.md>), [mxfp4](<https://devfeed.tech/tags/mxfp4.md>), [pytorch](<https://devfeed.tech/tags/pytorch.md>)

## AI overview

On MI350-series GPUs (`gfx950`), PyTorch can use FlyDSL for supported GEMMs, RMSNorm, TopK, and attention through existing APIs. `torch.compile` benchmarks eligible GEMM candidates against ATen and Triton and caches a winner; supported eager RMSNorm and TopK calls dispatch automatically when the optional FlyDSL runtime is installed and enabled. Attention runs through AOTriton, which selects among FlyDSL, Triton, and AITER kernels. On MI355X, reported operator-suite geometric-mean gains include 1.10x for dense GEMM, 1.58x-1.68x for MXFP GEMM, 1.20x over Triton for grouped GEMM, and up to 4.82x for small-K TopK over ATen with determinism disabled. End-to-end vLLM results vary by model and concurrency; low-precision tests show larger gains than BF16, whose largest model remains within measured noise. Support has limits: MXFP requires specific quantized operands and layouts, attention does not support FP32, and unsupported workloads retain other PyTorch backends. The excerpt describes current MI350 support; broader hardware and operation coverage are future work.

## Source excerpt

PyTorch users on AMD MI350-series GPUs can now use FlyDSL through existing operator APIs for dense and grouped GEMM, fused multi-head attention (FMHA/Attention), MXFP8/MXFP4 scaled GEMM, RMSNorm, and TopK, without... The post Accelerating PyTorch on AMD GPUs with FlyDSL appeared first on PyTorch.