OpenAI releases Triton 1.0, a Python-like language for GPU kernels
Curated by the Inblix editorial team
OpenAI is shipping Triton 1.0 to the public, and it’s the kind of tool that could quietly rewrite how a lot of neural network research gets done. If you’ve ever tried to squeeze performance out of a GPU by writing custom CUDA kernels, you know the pain: coalescing memory transfers, manually stashing data into SRAM, and dancing around shared memory bank conflicts. The team’s pitch is disarmingly simple. Triton is an open-source, Python-like language where researchers with zero CUDA experience can produce code that runs on par with expert-level hand-tuning.
The numbers they’re tossing out aren’t shy. A fused softmax kernel written in Triton reportedly runs significantly faster than PyTorch’s own internal CUDA code because it keeps a row of data in SRAM throughout the whole normalization process rather than leaning on slower temporary memory. The team also claims you can write an FP16 matrix multiplication kernel that matches cuBLAS’s peak performance in under 25 lines of code. For context, a lot of seasoned GPU programmers can’t pull that off at all. Our own researchers, the post notes, have already used Triton to write kernels that are twice as efficient as equivalent Torch implementations.
The secret sauce isn’t a brand-new language from scratch. Triton extends and improves on an existing language and compiler whose original creator now works at OpenAI. Under the hood, it abstracts away the maddening concurrency details inside CUDA thread blocks by exposing intra-instance parallelism through operations on blocks—small arrays with dimensions that are powers of two. It deliberately doesn’t schedule work automatically across Streaming Multiprocessors, though. The team left that level of control to the developer, which suggests they’re serious about this being a tool for performance work, not just a toy for simpler element-wise operations.
I’ve seen a lot of domain-specific languages and JIT compilers that promise to make GPU programming easier. Most either drown you in verbosity, box you in with inflexible abstractions, or generate code that’s noticeably slower than a hand-tuned baseline. Triton’s closest cousin is probably Numba, but the resemblance stops at the Python decorator syntax. The bet here is that by making specialized kernel development feel almost like writing NumPy, we’ll see an explosion of efficient, bespoke operations that leave general-purpose library code in the dust.
💡 Key Takeaways
- Triton abstracts away CUDA thread-block complexities like memory coalescing and shared memory synchronization, replacing the SIMT model with block-based operations.
- A fused softmax kernel in Triton runs faster than PyTorch's internal CUDA code by keeping data in SRAM rather than using temporary memory, demonstrating the speed of specialized kernels.
- Triton intentionally leaves cross-SM scheduling to developers, preserving algorithmic control for complex tiling and synchronization strategies.
- OpenAI researchers have already produced kernels up to 2x more efficient than equivalent Torch implementations using this tool.
Keep reading: See related articles below for more coverage on this topic.
Get smarter about AI
The sharpest AI news, curated daily. Delivered free to your inbox.