---
title: "How We Built TLX: A Hardware-Native GPU Compiler for Production ML at Scale"
description: "Triton Low-Level Extensions (TLX) add explicit warp-group, synchronization, memory and cluster-level orchestration to Triton, so engineers can use Hopper and Blackwell features such as TMA, TMEM, mbarriers and paired-CTA execution without dropping to CUDA."
url: "https://swe.quest/articles/how-we-built-tlx-a-hardware-native-gpu-compiler-for-production-ml-at-scale-f66815adb066ecad"
canonical: "https://engineering.fb.com/2026/11/10/open-source/tlx-a-hardware-native-gpu-compiler-for-production-ml/"
source: "Meta Engineering"
published: "2026-11-10"
difficulty: "hard"
kind: "Deep dive"
reading_minutes: 17
tags: ["compilers","hardware","performance","language-design","model-training"]
---

# How We Built TLX: A Hardware-Native GPU Compiler for Production ML at Scale

A post on [Meta Engineering](https://swe.quest/sources/meta.md), published 2026-11-10, 17 min read, Deep dive. Original: [https://engineering.fb.com/2026/11/10/open-source/tlx-a-hardware-native-gpu-compiler-for-production-ml/](https://engineering.fb.com/2026/11/10/open-source/tlx-a-hardware-native-gpu-compiler-for-production-ml/)

## Summary

Triton Low-Level Extensions (TLX) add explicit warp-group, synchronization, memory and cluster-level orchestration to Triton, so engineers can use Hopper and Blackwell features such as TMA, TMEM, mbarriers and paired-CTA execution without dropping to CUDA. Meta frames the design as a "Multiple Instructions, Multiple Warps" (MIMW) model that sits between CUDA's thread-level SIMT and Triton's block-level SIMB. Triton tensor ops still describe the computation, while TLX constructs describe producer/consumer/epilogue warp-group pipelines. Layouts are inferred by default, which makes kernel fusion much easier, and TLX already runs production RecSys training, RecSys inference and LLM pretraining workloads on NVIDIA and AMD GPUs.

Written by swe.quest, not by the author.

**Difficulty:** Hard: written for specialists in the field

## Topics

- [Compilers](https://swe.quest/tags/compilers.md) (Compilers & runtimes)
- [Hardware](https://swe.quest/tags/hardware.md) (Infrastructure)
- [Performance engineering](https://swe.quest/tags/performance.md) (Reliability & operations)
- [Language design](https://swe.quest/tags/language-design.md) (Compilers & runtimes)
- [Model training](https://swe.quest/tags/model-training.md) (AI & ML)

## Prerequisites

- GPU programming with CUDA ([easy posts on Hardware](https://swe.quest/tags/hardware.md?difficulty=easy))
- Triton kernel language ([easy posts on Operating systems](https://swe.quest/tags/operating-systems.md?difficulty=easy))
- Tensor cores and shared memory
- Software pipelining

## Keywords

TLX, Triton, Blackwell, Hopper, TMA, TMEM, MIMW, FlashAttention

## Related posts

- [Last year we built megakernels. This year we deleted them: The road to Together Compiler](https://swe.quest/articles/last-year-we-built-megakernels-this-year-we-deleted-them-the-road-to-together-8e97dcf4bda731c8.md): Together AI · 2026-11-16 · Hard · 28 min read · Compilers, Inference & serving, Performance engineering, Hardware
  Megakernels for Llama 1B hit 990 TPS on H100 but were too inflexible to productionize, supporting only one model, batch size and precision.
- [Hugging Face on AMD Instinct MI300 GPU](https://swe.quest/articles/hugging-face-on-amd-instinct-mi300-gpu-f116bf43c7c06916.md): Hugging Face · 2024-05-21 · Easy · 7 min read · Inference & serving, Hardware, LLMs, Performance engineering, Model training
  Hugging Face's transformers and text-generation-inference (TGI) now run on AMD Instinct MI300X GPUs with no code changes, backed by a Kubernetes-scheduled CI pipeline that runs tens of thousands of unit tests on MI250 and MI300 hardware.
- [Accelerating SD Turbo and SDXL Turbo Inference with ONNX Runtime and Olive](https://swe.quest/articles/accelerating-sd-turbo-and-sdxl-turbo-inference-with-onnx-runtime-and-olive-c7ff7774ed240b5b.md): Hugging Face · 2024-01-15 · Medium · 8 min read · Inference & serving, Performance engineering, Computer vision, Hardware
  ONNX Runtime's CUDA and TensorRT execution providers run SD Turbo and SDXL Turbo faster than PyTorch on NVIDIA A100 and RTX 4090 GPUs for every batch-size and step combination tested.
- [How Meta trains large language models at scale](https://swe.quest/articles/how-meta-trains-large-language-models-at-scale-c827e36c67bd0ee6.md): Meta Engineering · 2024-06-12 · Easy · 6 min read · Model training, Networking, Hardware, Datacenters, Distributed systems
  Training LLMs at Meta shifted workloads from many small recommendation jobs to a few enormous GPU jobs, forcing changes across hardware, data center layout, reliability, networking and storage.
- [Introduction to ggml](https://swe.quest/articles/introduction-to-ggml-4a813c7570ba2e02.md): Hugging Face · 2024-08-13 · Medium · 12 min read · Inference & serving, C & C++, Machine learning
  ggml is a minimal C/C++ tensor library focused on Transformer inference that underpins llama.cpp, whisper.cpp, ollama and LM Studio.

Browse: [Latest posts](https://swe.quest/index.md) · [Topics](https://swe.quest/tags.md) · [Sources](https://swe.quest/sources.md) · [Topic map](https://swe.quest/map.md) · [Site guide (llms.txt)](https://swe.quest/llms.txt)
