Technology

Add as a preferred source on Google

AMD Tuning Lifts MI350X FlexAttention FP16 Throughput Up to 2.63x

The changes cut attention latency from 27.18 milliseconds to 16.05 milliseconds in a 16-GPU Minecraft Diamond planner workload.

Updated 2 min read
A technician adjusts an accelerator test board inside an MIT laboratory in Cambridge, Massachusetts / EconoTimes.ai
A technician adjusts an accelerator test board inside an MIT laboratory in Cambridge, Massachusetts / EconoTimes.ai

AMD reports that changing two FlexAttention execution settings produced as much as 2.63x FP16 throughput in tested MI350X configurations, while a 16-GPU Minecraft planner workload recorded lower attention latency.

The work changed kernel scheduling rather than the programming interface: wavefront count moved from eight to four, while software pipeline depth went from one stage to two. FlexAttention’s algorithm and public API stayed unchanged.

Across the tested configurations, the wavefront adjustment delivered 1.86x to 2.63x higher FP16 throughput. Adding a pipeline stage lifted BF16 performance 1.10x to 1.18x by overlapping computation with memory loads.

FlexAttention lets developers describe attention variants in Python, and PyTorch compiles those descriptions into fused kernels through torch.compile. AMD attributed the MI350X gains to more efficient use of each compute unit’s 160 kilobytes of local data storage, with fewer repeated matrix operations and memory conversions.

The MIT team behind Mirror: Self-Improving Video-to-Action Models applied FlexAttention to Minecraft Diamond video planners; the paper describes fine-tuning the planners on 16 MI350X GPUs. AMD reported that attention latency fell by a factor of 1.69, from 27.18 milliseconds to 16.05 milliseconds, while planner throughput rose 26%, from 15.8 to 19.9 video-seconds per second. The timing covered neither the model’s VAE nor its text-processing components.

AMD also described adding pointer-range annotations to HIP tensor arguments. The annotations helped Triton canonicalize pointers and route eligible memory accesses through buffer operations; for selected configurations, the causal path ran at 1.31x throughput and the unmasked path at 1.04x.

Those gains vary by setup. Deeper pipelining can increase VGPR allocation and shared-memory use, cutting performance in some cases, including FP16 workloads with eight wavefronts. The results favor tuning wavefront count and pipeline depth together rather than optimizing either setting alone.

Related articles

View all