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.
