PyTorch
Read post

Triton Plugin Extensions: Enabling TLX and Custom Compiler Passes Out of the Box – PyTorch

PyTorch-Triton 3.7 introduces a plugin extensions system that lets developers load custom compiler passes, MLIR dialects, and DSL extensions into upstream Triton at runtime via shared libraries and the TRITON_PLUGIN_PATHS environment variable — no forking or recompiling required. Meta's Triton Language Extensions (TLX) are the first major consumer, now distributed as the standalone `utlx` Python package. TLX provides hardware-aware ops for explicit shared memory management, async loads, and asynchronous matrix multiply-accumulate, enabling persistent GEMM kernels. On NVIDIA H100, Triton+TLX matches or exceeds cuBLAS by up to 3.7%. On AMD MI350, it outperforms rocBLAS by 12–15% across all tested shapes. The plugin path produces identical PTX/AMDGCN codegen to the compiled-in fork, confirming zero overhead from dynamic loading. A real-world validation on a GPU Mode Trimul competition achieved 1.61x speedup over the cuBLAS+torch.compile baseline.

    #gpu#pytorch#compiler
Jul 15•9m read time•From pytorch.org
Post cover image
Table of contents
The Problem: Why Extensions?The Triton Plugin Extensions SystemTLX: Triton Language Extensions, Now Built-InCross-Hardware: NVIDIA H100 and AMD MI350Identical CodeGen, Zero Fork RequiredGetting StartedWhat’s Next
2.9K Impressions
PyTorch's image
PyTorch

PyTorch offers insights into deep learning, neural network modeling, and machine learning research, ...

142 Followers

•

231 Upvotes

Would you recommend this post?

Copy link
WhatsApp
Facebook
X
New Squad
  • © 2026 Daily Dev Ltd.
  • Guidelines
  • Explore
  • Tags
  • Sources
  • Squads
  • Leaderboard