🟡 🔧 Hardware Published: · 2 min read ·

AMD: GEAK Agent Automatically Optimized DeepSeek-V4 MLA Kernel on MI355 with Up to 9× Speedup

Editorial illustration: diagram of AMD MI355 GPU accelerator with the GEAK agent generating an optimized Triton kernel

AMD's GEAK agent for automated GPU kernel optimization migrated the DeepSeek-V4 MLA kernel from PyTorch to Triton for MI355 accelerators. Results show up to 9.13× prefill speedup, 4.94× geomean decode speedup, and 2.10× higher end-to-end throughput in the SGLang framework.

🤖

This article was generated using artificial intelligence from primary sources.

AMD has released results from applying the GEAK agent — an AI system for automatic GPU kernel generation and optimization — to the DeepSeek-V4 model running on AMD MI355 accelerators. The automated migration from PyTorch to Triton delivers speedups that manual optimization would struggle to match in comparable time.

What Are MLA and Triton — Key Concepts?

MLA (Multi-head Latent Attention) is a memory-efficient variant of the attention mechanism that DeepSeek-V4 uses to dramatically reduce KV-cache costs compared to classic Multi-head Attention — a key innovation of the model, but demanding for hardware optimization. Triton is a programming language for writing GPU kernels that directly targets the hardware characteristics of accelerators; unlike generic PyTorch, Triton code can exploit the specifics of AMD MI355’s memory hierarchy. The GEAK agent automates exactly this transition — without writing Triton code manually.

Concrete Speedups: Prefill, Decode, and End-to-End

Measurements on the AMD MI355 show clear gains across all inference phases. In the prefill phase (processing the input prompt), the speedup is 9.13× for Config 1 and 6.92× for Config 2 compared to the original PyTorch implementation. In the decode phase (token generation), the geomean speedup across 26 different configurations is 4.94×. End-to-end in the SGLang framework, GEAK delivers 2.10× higher throughput and 3.71× lower TTFT (time-to-first-token — the time until the first generated word), a critical parameter for user experience.

SGLang Integration and Accuracy Verification

Integration with the SGLang framework shows 16%–110% E2E improvement depending on concurrency level (2 to 32 simultaneous requests) — higher concurrency yields proportionally larger gains. Particularly important is the accuracy verification result: all 304 prefill and 4,748 decode test cases pass without any regressions. The speedups were not achieved through approximation or sacrificing precision, but through pure hardware kernel optimization. GEAK thus demonstrates that AI-assisted GPU code optimization can replace weeks of manual engineering work.

Frequently Asked Questions

What are MLA and Triton in the context of this research?
MLA (Multi-head Latent Attention) is a memory-efficient variant of the attention mechanism used by DeepSeek-V4 to reduce KV-cache costs. Triton is a programming language for writing highly optimized GPU kernels that directly targets hardware characteristics of accelerators like the AMD MI355.
How accurate are the speedups — are there accuracy regressions?
Accuracy checks were performed on 304 prefill and 4,748 decode test cases. All pass without any regressions, confirming that speedups were achieved without sacrificing output precision.

📬 AI news in your inbox

A daily digest built your way — pick topics, sources and cadence. One-click unsubscribe.