2 min read
Add as a preferred source on Google

AMD Tuning Delivers Up to 3x FP16 Throughput on MI350X GPUs

Changes to wavefront count and software pipeline depth also reduced attention latency in a Minecraft video-planning workload using 16 MI350X GPUs.

Accelerator board beside simplified processing lanes in warm laboratory light / TokenPost.ai
Accelerator board beside simplified processing lanes in warm laboratory light / TokenPost.ai

AMD’s tuning of PyTorch FlexAttention delivers up to threefold FP16 forward throughput on Instinct MI350X GPUs, while also improving performance in a video-to-action workload running across 16 accelerators.

The changes reduce the wavefront count from eight to four and raise software pipeline depth from one stage to two. The underlying algorithm and user-facing application programming interface remain unchanged.

FlexAttention allows developers to define attention variants as Python functions that PyTorch compiles into fused kernels through torch.compile. On MI350X, the revised configuration makes better use of the compute unit’s 160 kilobytes of local data storage by reducing redundant matrix work and memory conversions.

The wavefront adjustment alone increased FP16 throughput by 1.86x to 2.63x in the tested configurations. Raising pipeline depth added a 1.10x to 1.18x gain on BF16 workloads by overlapping computation with memory loads.

MIT Computer Science and Artificial Intelligence Laboratory researchers used FlexAttention in Mirror: Self-Improving Video-to-Action Models. With 16 MI350X GPUs, they fine-tuned Minecraft Diamond video planners and reduced attention latency 1.69x, from 27.18 milliseconds to 16.05 milliseconds.

Planner throughput increased 26%, from 15.8 to 19.9 video-seconds per second. The measurement excluded the model’s VAE and text-processing components.

AMD also added pointer-range annotations for HIP tensor arguments. The annotations allow Triton to canonicalize pointers and convert eligible memory accesses into buffer operations, increasing throughput by 1.31x for causal attention and 1.04x for unmasked attention in specific configurations.

The tuning has tradeoffs. Higher pipeline depth can increase VGPR allocation and shared-memory use, reducing performance in some configurations, including FP16 workloads using eight wavefronts. The results point to evaluating wavefront count and pipeline depth together rather than optimizing either setting independently.

Simon Yoon

Reporter

Simon Yoon reports on blockchain technology for TokenPost. Send corrections or tips to info@tokenpost.com.

Loading…