1. Home
  2. Turing Post

Sep 9

OpenAI models write their own GPU kernels

Philippe Tillet

33 min → 2:06

Overview

OpenAI infrastructure engineers Philippe Tillet and Matthew Ferrari explain how they optimize inference efficiency, cut serving costs, and use advanced models to write low-level code and debug complex hardware systems.

3 things to know

Tillet says AI models now write their own chip code

Philippe Tillet notes that while human engineers previously wrote custom hardware code using languages like Triton, advanced AI models now use lower-level tools like Gluon to write highly optimized hardware instructions on their own.

More

While humans previously wrote custom GPU kernels using languages like Triton, advanced models now utilize lower-level abstractions like Gluon to write custom, highly optimized hardware kernels autonomously.

▶ Watch at 10:24

Ferrari: Tuning chip code fails when upper software lags

Matthew Ferrari states that optimizing low-level chip code brings minimal benefits if higher-level systems like network routing and load balancers are inefficient, requiring full coordination across all hardware and software layers.

More

True optimization requires holistic, end-to-end coordination across both the hardware and software layers.

▶ Watch at 6:56

Tillet: Faster AI systems bring capable models to everyone

Philippe Tillet explains that because computing resources are finite, reducing the cost and improving the speed of the system running AI models allows organizations to offer capable tools to a broader public at lower prices or for free.

More

Improving the performance and reducing the cost of the inference stack is directly tied to model accessibility.

▶ Watch at 2:06

Also in this episode

Turing Post: AI cannot maximize smarts, speed, and cost

Turing Post explains that running AI models requires balancing reasoning effort, response speed, and cost, meaning optimization cannot solve all three at once but instead lets developers choose which priority to favor.

More

Optimization cannot solve all three simultaneously; instead, it shifts the Pareto frontier, allowing developers to choose which dimension to prioritize for their specific use cases.

Quotes

“As AI's get better, you don't really want a compiler to make decisions that an AI could make. So what we've done is we've developed Gluon... and now this is mostly what our models are using.”

▶ Watch at 10:24

“If you don't have efficiency at the higher layers of the stack, it's impossible to get efficiency no matter how hard you work at the lower layers of the stack because it's what dictates the workload.”

▶ Watch at 6:56

“Every time we make our inference stack faster and more efficient, this allows us to just distribute our products more broadly to free users, to paid users, and to everyone.”

▶ Watch at 2:06

2 more quotes

“As we make our stack more efficient, we're able to pass on the wins to our customers, whether that be in the shape of costs or efficiency in terms of speed or reliability.”

▶ Watch at 12:00

“If you point it at some issue that's not actually a problem and say try to optimize this, it'll happily go optimize it, even though the end-to-end impact might not be very substantial.”

▶ Watch at 20:18

Full summary

Episode Overview

  • This episode features an interview with Philippe Tillet (creator of Triton) and Matthew Ferrari, two key infrastructure engineers at OpenAI focusing on inference stack optimization and system efficiency.
  • It explores how inference efficiency is critical to democratizing AI, reducing serving costs, and scaling large language models to hundreds of millions of users globally.
  • The narrative traces the evolution of OpenAI's inference stack from manual kernel tuning to a collaborative engineering paradigm where advanced models actively write lower-level code (using Gluon) and debug complex hardware systems.
  • This discussion is highly relevant to software engineers, AI researchers, and systems architects interested in the co-design of hardware, compilers, and developer-model workflows.

Key Concepts

  • Inference Efficiency as an Enabler for Access: Improving the performance and reducing the cost of the inference stack is directly tied to model accessibility. Because compute resources are finite, optimizing the stack allows organizations to distribute highly capable models to a broader public at lower price points, or even for free.
  • The Global Dependencies of Stack Optimization: Optimizing low-level device code (like GPU kernels) yields minimal benefits if higher-level systems—such as API orchestrators, load balancers, and network routing—are inefficient. True optimization requires holistic, end-to-end coordination across both the hardware and software layers.
  • Models as Low-Level Code Co-Designers: As AI models have advanced, they have shifted from writing high-level scripts to authoring low-level system code. While humans previously wrote custom GPU kernels using languages like Triton, advanced models now utilize lower-level abstractions like Gluon to write custom, highly optimized hardware kernels autonomously.
  • The Three-Way AI Trade-Off: AI model serving is governed by a core trade-off between intelligence (reasoning effort/compute per token), latency (speed of response), and cost. Optimization cannot solve all three simultaneously; instead, it shifts the Pareto frontier, allowing developers to choose which dimension to prioritize for their specific use cases.

Quotes

  • At 2:06 - "Every time we make our inference stack faster and more efficient, this allows us to just distribute our products more broadly to free users, to paid users, and to everyone." - Philippe Tillet, explaining the direct link between infrastructure efficiency and the democratization of AI access.
  • At 6:56 - "If you don't have efficiency at the higher layers of the stack, it's impossible to get efficiency no matter how hard you work at the lower layers of the stack because it's what dictates the workload." - Matthew Ferrari, clarifying why system-wide optimization must be approached holistically rather than focusing solely on low-level GPU kernels.
  • At 10:24 - "As AI's get better, you don't really want a compiler to make decisions that an AI could make. So what we've done is we've developed Gluon... and now this is mostly what our models are using." - Philippe Tillet, discussing why high-level compilers like Triton are being supplemented by lower-level languages like Gluon that allow models more granular hardware control.
  • At 12:00 - "As we make our stack more efficient, we're able to pass on the wins to our customers, whether that be in the shape of costs or efficiency in terms of speed or reliability." - Matthew Ferrari, illustrating how backend engineering improvements translate directly into tangible user benefits.
  • At 20:18 - "If you point it at some issue that's not actually a problem and say try to optimize this, it'll happily go optimize it, even though the end-to-end impact might not be very substantial." - Matthew Ferrari, highlighting the critical role of human engineers in directing AI agents to the correct bottlenecks.

Takeaways

  • Avoid premature or isolated optimization by profiling your entire system end-to-end to identify the true bottlenecks before deploying optimization efforts.
  • Leverage advanced LLMs not just for writing application code, but as active collaborators in complex systems engineering tasks like debugging, analyzing hardware system logs, and suggesting low-level performance enhancements.
  • Balance the three-way trade-off of latency, cost, and intelligence in your AI applications by selecting different model configurations and reasoning efforts based on the specific constraints of your end-users.

Watch the full episode 33 min

Read along with the audio summary

Advanced artificial intelligence models are now writing the very low level hardware code that makes them run faster, and OpenAI engineer Philippe Tillet points out that as these models improve, you do not want a standard software compiler making decisions that an AI could make instead. In this episode that came out on September 9, 2026, OpenAI infrastructure engineers Philippe Tillet, the creator of Triton, and Matthew Ferrari discuss optimizing the systems that run AI. By the end, you will learn how system efficiency unlocks broader access, why optimizing isolated parts of a system fails, and how to balance the core trade offs of serving AI models.

Making the backend systems that run AI models faster is actually the secret to making AI available to everyone. Compute resources are finite, which creates a strict limit on how many people can use advanced tools at once. Tillet explains that every time they make their inference stack faster and more efficient, it allows them to distribute their products more broadly to paid users, free users, and everyone, scaling large language models to hundreds of millions of users globally.

Yet making the lowest level of hardware code faster is useless if the rest of the software above it is slow. Tuning low level device code, like the specialized instructions known as graphics processing unit kernels, yields minimal benefits if higher level systems—such as API orchestrators, load balancers, and network routing—are inefficient. Think of it like putting a race car engine inside a delivery van that is stuck in gridlock, where the raw engine speed means nothing until the traffic routing improves. You should profile your entire system from end to end to find the true bottlenecks before you start trying to optimize isolated pieces of code.

Once you know where the real bottlenecks are, you no longer have to write the complex code to fix them by hand. Humans previously wrote custom graphics processing unit kernels using programming languages like Triton, which Tillet created, to translate code for the hardware. Now, Tillet explains that OpenAI developed a lower level framework called Gluon, which gives models more granular hardware control so they can write custom, highly optimized kernels autonomously. You can use advanced large language models as active collaborators in complex systems engineering tasks, though Ferrari warns that if you point a model at a non issue, it will happily optimize it with very little impact on the whole system.

Even with AI helping to tune the hardware, serving these models is always governed by a three way tug of war. Every AI system faces a core trade off between intelligence, which is the reasoning effort and compute used per word piece, latency, which is the speed of the response, and cost. Optimization cannot solve all three at the same time, so instead it shifts the boundary of what is possible, allowing Ferrari and his team to pass wins on to customers as lower costs, higher speed, or better reliability. When building your own AI applications, you should balance this three way trade off by choosing different model configurations and reasoning efforts based on the specific constraints of your end users.

True systems optimization means looking at your entire architecture as a single connected machine, using AI models to help tune the deepest hardware layers while human engineers direct them to the bottlenecks that actually matter. If you don't have efficiency at the higher layers of the stack, it's impossible to get efficiency no matter how hard you work at the lower layers of the stack because it's what dictates the workload.

More from Turing Post

Related Episodes