← Latest papers
💻 computer science

Triton for MTIA: Bridging the Programming Model Gaps for Custom AI Accelerators

This paper presents the first production-scale deployment of the Triton programming language on Meta's custom MTIA-2i accelerator, demonstrating that a new compiler backend and minimal language extensions enable high-performance, efficient kernel development that bridges the gap between ML frameworks and custom hardware.

Original authors: Haishan Zhu, Domi Yan, Michael Levesque-Dion, Changxu Zhang, Mitch Gamburg, Kirsten Lee, Giancarlo Colmenares, Aditya Bhagwat, Arnab De, Markus Le Roux, Victor Perez Carrasco, Xin Tong, Will Cromar, S
Published 2026-08-04
📖 6 min read🧠 Deep dive

Original authors: Haishan Zhu, Domi Yan, Michael Levesque-Dion, Changxu Zhang, Mitch Gamburg, Kirsten Lee, Giancarlo Colmenares, Aditya Bhagwat, Arnab De, Markus Le Roux, Victor Perez Carrasco, Xin Tong, Will Cromar, Simran Barnwal, Andrew Uderian, Blaine Burton Rister, Jordan Fix, Jazlyn Li, Zejun Huang, Lite Ye, Nan Zhang, Xinchen Guo, Andiry Xu, Michael Roberts, Kunming Ho, Site Cao, Suryadev Sahadevan Rajesh, Tristan Trouwen, Mike Tsai, Jake Lee, Wayne Su, Yuhan Chen, Xiaolong Xie, David Eklov, Aaron Barnes, Max Bremer, Adam Belay, Shintaro Iwasaki, Roman Levenstein, Ajit Mathews

Original paper licensed under CC BY 4.0 (http://creativecommons.org/licenses/by/4.0/). This is an AI-generated explanation of the paper below. It is not written or endorsed by the authors. For technical accuracy, refer to the original paper. Read full disclaimer

Imagine you are trying to build a massive, high-speed train system to carry passengers (data) across a continent. For years, the only trains available were the standard, high-tech electric ones (GPUs) that everyone knew how to drive. They had automatic doors, built-in GPS, and a smooth ride. But recently, a new type of train engine has been invented (custom AI accelerators). These new engines are incredibly powerful and built specifically for heavy cargo, but they are weird. They don't have automatic doors; you have to manually open and close them. They don't have a GPS; you have to draw the map yourself. And they don't run on the same tracks as the old trains.

The problem is that the engineers who build the train cars (the software developers) are used to the old, easy-to-drive electric trains. If they want to use the new, super-fast engines, they have to learn a completely new, difficult way of driving, or they have to build a brand-new train car from scratch for every single new route. This slows everything down. The big question is: Can we teach the old, easy-to-use driving style to work on these weird, new engines without losing the speed advantage? This paper explores exactly that, trying to bridge the gap between the familiar world of standard AI software and the strange, custom hardware built by companies like Meta to run their AI models.


The Story: Teaching a New Engine to Speak an Old Language

Meta, the company behind Facebook and Instagram, has been building its own special computer chips called MTIA-2i to run its AI models faster and cheaper. Think of MTIA-2i as a custom-built race car engine. It's amazing at what it does, but it's built differently than the standard engines (GPUs) that most AI programmers are used to.

In the world of AI, there's a popular programming language called Triton. You can think of Triton as a "universal remote control" for AI. Instead of writing complex, messy code to tell a standard GPU how to move data, developers write simple, clean code in Triton, and a smart compiler translates it into the machine language the GPU understands. It's like speaking English to a translator who knows how to talk to the machine.

However, Triton was originally designed only for standard GPU engines. When Meta tried to use it on their custom MTIA-2i race car engine, it didn't work. The "remote control" didn't fit the new engine's buttons. The MTIA-2i engine works asynchronously (it takes orders and does them later), manages its own memory in a weird "circular buffer" way, and needs very specific instructions to keep everything flowing smoothly. Standard Triton code just couldn't handle these quirks.

What the Paper Does: Building a New Adapter

The team at Meta decided to fix this. They didn't just force the old remote to work; they built a new compiler backend specifically for MTIA-2i. This new system acts like a super-smart adapter. It takes the simple, easy-to-read Triton code that developers write and translates it perfectly into the complex, low-level instructions that the MTIA-2i engine needs.

Here is how they made it work, using some fun analogies:

  1. The "FIFO" Buffet Line: On standard GPUs, the computer automatically manages memory like a smart buffet where plates are grabbed and replaced instantly. On MTIA-2i, it's more like a manual assembly line with a "First-In, First-Out" (FIFO) buffer. The new compiler learned to manage this line perfectly, ensuring that data arrives exactly when the machine needs it, without the programmer having to manually push every single plate.
  2. The Two-Chef Kitchen: The MTIA-2i chip has two "cores" (like two chefs in a kitchen) that can work at the same time. The compiler figured out how to split the cooking tasks between them so they don't bump into each other or wait around. It even lets expert programmers tell the chefs exactly who should chop the onions and who should stir the soup if they want to get fancy.
  3. The "Zigzag" Delivery Route: Imagine you have to deliver packages to 64 houses. If you just go down the street in a straight line (linear), the first few houses get done quickly, but the last ones wait forever. The team discovered that a "zigzag" delivery route (going back and forth) balanced the work much better. They added a feature to Triton so programmers could easily choose this smarter route.

The Results: Fast, Flexible, and Ready for the Real World

The team didn't just build this in a lab; they put it to work in the real world. They successfully deployed these new Triton kernels in production across 60 different types of AI models.

Here is what they found:

  • Speed: The code written in the simple Triton language ran just as fast as code written by experts in complex, low-level C++ (the "native" language of the chip). In fact, for General Matrix Multiplication (GEMM)—a heavy math task—the Triton code hit over 80% of the theoretical maximum speed of the chip.
  • Adoption: Within just one quarter, the number of model types using Triton on MTIA tripled.
  • Impact: Triton now handles 50% of the layers and 47% of the non-GEMM execution time for these models. That's almost half the work being done by this new, easy-to-use system!

Why This Matters

The paper argues that you don't have to choose between "easy to write" and "super fast." Before this, if you wanted to use a custom chip like MTIA, you had to be a low-level coding wizard and write everything from scratch. If you wanted to use a high-level language like Triton, you were stuck with standard GPUs.

By bridging this gap, Meta showed that high-level languages can be adapted to work on almost any custom hardware. This means that in the future, as companies build even weirder and more specialized AI chips, developers won't need to learn a new, difficult language for every single one. They can keep using the familiar, powerful tools they already know, while the compiler handles the messy details of the new hardware.

The paper also notes that while they tried a different, very low-level language called KNYFE earlier, they abandoned it because it was too hard for most people to learn. They proved that sticking with a flexible, high-level language like Triton, even with some small custom tweaks, is the winning strategy for keeping AI development fast and efficient.

In short, the paper demonstrates that with the right compiler magic, we can make the "universal remote" work on almost any "TV," even the weird, custom-built ones, without sacrificing the picture quality.

Drowning in papers in your field?

Get daily digests of the most novel papers matching your research keywords — with technical summaries, in your language.

Try Digest →