12-04 更新 实时
首页/ 技术栈/ 正文

Meta TLX 将 Warp Group GPU 控制带入 Triton

技术栈 来源:MarkTechPost 2026-11-23 16:24 4 阅读 机器翻译

Meta 发布了一份关于 TLX(Triton Low-Level Extensions)的详细报告。它正是支撑 Meta 生产环境机器学习 kernel 的 GPU 编译器扩展。Meta TLX 是 Triton 的扩展,可将 warp group、同步屏障(barrier)、TMA 和 cluster 暴露给 Python kernel。它的目标平台包括 NVIDIA Hopper 和 Blackwell,以及 AMD MI300 和 MI350 系列 GPU。对 kernel 工程师而言,这传递出的信息是:不必离开 Triton,也能获得 CUDA 级别的控制力。

Triton 在 block 层面为 GPU 编程,CUDA 则在 thread 层面编程。而现代 GPU 需要介于两者之间的东西。

Hopper 引入了 warp 专门化和张量内存加速器(TMA)。Blackwell 又增加了张量内存(TMEM)、cluster 执行和成对 CTA(paired-CTA)执行。Meta 表示,CUDA 能够表达这些模式,但需要大量针对特定架构的代码。

TLX 用一个被研究团队称为 MIMW(Multi-Instruction, Multi-Warp)的模型填补了这一空白。warp group 成为编排的基本单位。Triton 仍然定义运行什么,TLX 则定义如何编排。工程师照常编写普通的 Triton 代码,只在需要控制的地方加入 TLX 调用。

TLX 在 Triton 之上新增了 5 个扩展领域:

这套 API 的写法与 Triton 相似。Meta 的 Blackwell matmul 示例使用了 tlx.local_alloc、tlx.alloc_barriers、tlx.async_task、tlx.async_dot 和 tlx.barrier_wait。

以下所有数据均由 Meta 自行报告:

研究团队补充说,TLX 与最先进的 attention 实现之间的差距,在最小的 causal-forward 用例上最为明显。随着序列长度增加,这一差距会缩小。

Meta 的工程博客列出了 3 个案例研究:

Meta 还在 Blackwell 上针对 GEM 对比了 CUTLASS、CuTe DSL 和 TLX。它表示,对大多数 kernel 而言,TLX 在生产力与性能之间取得了最佳平衡,但没有给出具体数字。

TLX 位于 Meta 以 MIT 许可证开源的 Triton 分支 facebookexperimental/triton 中,路径为 third_party/tlx/。它也以 triton-utlx 的形式发布在 PyPI 上,作为上游 Triton 的一个插件。PyTorch-Triton 3.7 的插件系统无需 fork Triton 即可加载 TLX。AMD 也发布了针对 CDNA4 的 GEMM 加激活函数指南,其中使用了 TLX。

可查看 arXiv 上的论文、Meta 工程博客以及 GitHub 仓库。你可以通过我们的 GPULeaderboard.com Chrome 扩展在此查看部署选项和规格。

需要与我们合作推广你的 GitHub 仓库、Hugging Face 页面、产品发布或网络研讨会等?请联系我们

文章《Meta TLX Brings Warp-Group GPU Control to Triton on Hopper, Blackwell, AMD》最初发布于 MarkTechPost。

译文由英文原文机器翻译,术语按行业惯例统一,可在文末展开原文核对。

查看英文原文(Meta TLX Brings Warp-Group GPU Control to Triton on Hopper, Blackwell, AMD)

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

FeatureMeta TLXGluonCuTe DSLTileLang
MaintainerMeta with UC San Diego (paper)Triton projectNVIDIAtile-ai open source project
ApproachExtension on top of Triton; warp-group orchestration; layouts optionalLower-level Triton dialect; tensors carry explicit layouts (AMD)Python DSL isomorphic with CuTe C++ (FAQ)Tile-level DSL with layout and pipeline control
HardwareHopper, Blackwell, AMD MI300 and MI350 (Meta)NVIDIA Hopper+ for warp specialization (docs); AMD MI350/MI355 (AMD)NVIDIA Ampere, Hopper, BlackwellCUDA, ROCm, Metal, CPU, Ascend (SourceForge mirror)
LicenseMIT (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 GEMMNot disclosedUsed for FlashAttention-4 kernels, ~10K lines per Meta’s estimate (PyTorch)Not disclosed
Known production useMeta ads training, ads inference, LLM pretrainingNot disclosedFlashAttention-4DeepSeek 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

The post Meta TLX Brings Warp-Group GPU Control to Triton on Hopper, Blackwell, AMD appeared first on MarkTechPost.

正文保留英文原文,标题与摘要由机器翻译。

本文由采集器自动同步

原文发布于 MarkTechPost(Meta TLX Brings Warp-Group GPU Control to Triton on Hopper, Blackwell, AMD),标题、摘要与正文由机器翻译,术语按行业惯例统一,未经人工逐句校订。

阅读原文 ↗