Meta has published a detailed report on TLX (Triton Low-Level Extensions). It is the GPU compiler extension behind Meta’s production ML kernels. Meta TLX is a Triton extension that exposes warp groups, barriers, TMA and clusters to Python kernels. It targets NVIDIA Hopper and Blackwell plus AMD MI300 and MI350-series GPUs. For kernel engineers, the message is CUDA-level control without leaving Triton.
TL;DR
- What it is: an extension to Triton, not a new language. A Blackwell GEMM takes roughly 200 lines of Python-level Triton.
- Runs on: NVIDIA Hopper (H100) and Blackwell (B200, GB200), AMD MI300 and MI350-series. MIT-licensed.
- Performance: within -0.9% to +3.7% of cuBLAS on 6 H100 FP16 GEMM shapes (PyTorch).
- Best: a 4x speedup on an H100 linear compression kernel for ads inference (Meta).
- Worst: dense LLM-style attention forward reaches about 87% of FlashAttention-4 on B200 (PyTorch).
- Bottom line: Best: hand-tuned performance from short Triton code. Worst: all numbers are self-reported, with no independent benchmarks yet.
What is TLX and what problem does it solve?
Triton programs GPUs at the block level. CUDA programs them at the thread level. Modern GPUs need something in between.
Hopper introduced warp specialization and the Tensor Memory Accelerator (TMA). Blackwell added tensor memory (TMEM), cluster execution and paired-CTA execution. Meta says CUDA could express these patterns, but only with large amounts of architecture-specific code.
TLX fills that gap with a model the research team calls MIMW (Multi-Instruction, Multi-Warp). The warp group becomes the basic unit of orchestration. Triton still defines what runs. TLX defines how it is orchestrated. Engineers write ordinary Triton and add TLX calls only where control matters.
How does TLX work?
TLX adds 5 extension areas on top of Triton:
- Warp-group orchestration: warp groups get roles such as producer, consumer and epilogue.
- Synchronization: warp groups sync through hardware mbarriers. Thread-level sync stays with the compiler.
- Memory orchestration: direct access to TMA, asynchronous tensor-core ops and TMEM.
- Cluster execution: multiple CTAs cooperate through distributed shared memory and cluster-wide barriers.
- Optional layouts: the compiler infers layouts. Programmers override them only for speed.
The API reads like Triton. Meta’s Blackwell matmul example uses tlx.local_alloc, tlx.alloc_barriers, tlx.async_task, tlx.async_dot and tlx.barrier_wait.
How fast is TLX? Benchmarks
All figures below are self-reported by Meta:
- H100 GEMM: across 6 FP16 shapes, TLX lands between -0.9% and +3.7% of cuBLAS. On 8192x8192x8192 it reaches 577.0 TFLOPS versus 582.3 for cuBLAS (PyTorch).
- MI350 GEMM: TLX beats rocBLAS by 11.8% to 15.2% on square shapes from 256 to 2048.
- B200 attention: On production jagged shapes, Meta’s Jagged Flash Attention beats FlashAttention-4 by about 13% forward. Backward runs about 50% faster. On dense LLM-style shapes, forward reaches about 87% of FA4 (PyTorch).
- Code size: that attention kernel is about 3.2K lines. Meta estimates FA4 at 10K lines of CuTe DSL.
The research team adds that TLX trails state-of-the-art attention most on the smallest causal-forward cases. The gap narrows as sequence length grows.
Where is TLX used in production at Meta?
Meta’s engineering post lists 3 case studies:
- Generative Ads Model (GEM) training: 20% to 25% end-to-end MFU on thousands of GPUs. TLX delivered up to 2x forward speedup for Generalized Dot Product Attention.
- In-Kernel Broadcast Optimization (IKBO): a warp-specialized linear compression kernel hit 4x speedup on H100. FlashAttention under IKBO cut compute-intensive net latency by up to two-thirds.
- Distributed grouped GEMM: fuses mixture-of-experts matmuls with communication for LLM pretraining on Blackwell. Meta gives no speedup figure.
Meta also compared CUTLASS, CuTe DSL and TLX on Blackwell for GEM. It says TLX gave the best productivity-performance balance for most kernels, but shares no numbers.
How do developers install and use TLX?
TLX lives in Meta’s MIT-licensed Triton fork, facebookexperimental/triton, under third_party/tlx/. It also ships as triton-utlx on PyPI, a plugin for upstream Triton. The PyTorch-Triton 3.7 plugin system loads TLX without forking Triton. AMD has also published a GEMM plus activation guide for CDNA4 with TLX.
TLX vs Gluon vs CuTe DSL vs TileLang
| Feature | Meta TLX | Gluon | CuTe DSL | TileLang |
|---|---|---|---|---|
| Maintainer | Meta with UC San Diego (paper) | Triton project | NVIDIA | tile-ai open source project |
| Approach | Extension on top of Triton; warp-group orchestration; layouts optional | Lower-level Triton dialect; tensors carry explicit layouts (AMD) | Python DSL isomorphic with CuTe C++ (FAQ) | Tile-level DSL with layout and pipeline control |
| Hardware | Hopper, Blackwell, AMD MI300 and MI350 (Meta) | NVIDIA Hopper+ for warp specialization (docs); AMD MI350/MI355 (AMD) | NVIDIA Ampere, Hopper, Blackwell | CUDA, ROCm, Metal, CPU, Ascend (SourceForge mirror) |
| License | MIT (repo) | MIT (part of Triton) | NVIDIA EULA for CuTe DSL files (license) | MIT (mirror) |
| Headline published result | -0.9% to +3.7% vs cuBLAS, H100 FP16 GEMM | Not disclosed | Used for FlashAttention-4 kernels, ~10K lines per Meta’s estimate (PyTorch) | Not disclosed |
| Known production use | Meta ads training, ads inference, LLM pretraining | Not disclosed | FlashAttention-4 | DeepSeek TileKernels (repo) |
Key Takeaways
- TLX adds warp-group, barrier, TMA and cluster control to ordinary Triton code.
- It lands within -0.9% to +3.7% of cuBLAS on H100 FP16 GEMM.
- Production wins include 4x on an H100 ads kernel and 20% to 25% MFU on GEM.
- Dense attention forward still trails FA4 at about 87% on B200.
- It is MIT-licensed and loads into upstream Triton as a plugin.
Check out the paper on arXiv, the Meta engineering post and the GitHub repo. You can check the deployment options and specs here through our GPULeaderboard.com chrome extension.
Also, feel free to follow us on Twitter and donโt forget to join our 150k+ML SubReddit and Subscribe to our Newsletter. Wait! are you on telegram? now you can join us on telegram as well.
Need to partner with us for promoting your GitHub Repo OR Hugging Face Page OR Product Release OR Webinar etc.? Connect with us
Asif Razzaq is the CEO of Marktechpost AI Media Inc.. As a visionary entrepreneur and engineer, Asif is committed to harnessing the potential of Artificial Intelligence for social good. His most recent endeavor is the launch of an Artificial Intelligence Media Platform, Marktechpost, which stands out for its in-depth coverage of machine learning and deep learning news that is both technically sound and easily understandable by a wide audience. The platform boasts of over 2 million monthly views, illustrating its popularity among audiences.







