Goals of this repo:
Triton is easier to understand and start with than CUDA, especially for Python programmers experienced with PyTorch. And it has recently seen an uptick in its usage -- there is more Triton code around the web than there was before!
This repo collects these kernels in one place, for the benefit of practitioners and learners in our community.
Contributions are very, very welcome!
A Practioner's Guide to Triton is a great gentle intro to Triton (here's the accompanying notebook).
The Triton Tutorials are a great intermediate resources.
Flash Attention has a number of useful Triton kernels.
Unsloth contains many ready-to-use Triton kernels especially for finetuning applications
flash-linear-attention has a massive number of Linear attention or subquadratic attention replacement architectures, written using several different approaches of parallelization in Triton.
xformers contains many Triton kernels throughout, including some attention kernels such as Flash-Decoding.
Applied AI contains kernels such as a Triton MoE, fused softmax for training and inference
AO contains kernels for GaLoRe, HQQ and DoRA
torch.compile can codegenerate Triton kernels from PyTorch code
Liger Kernel is a collection of Triton kernels designed specifically for LLM training
To add a new entry:
Brought to you by the communtiy, initiated by Hailey and Umer ❤️
2,858 followers · starred Jun 2024
595 followers · starred May 2024
9,331 followers · starred Feb 2026
31 followers · starred Feb 2025
Goals of this repo:
Triton is easier to understand and start with than CUDA, especially for Python programmers experienced with PyTorch. And it has recently seen an uptick in its usage -- there is more Triton code around the web than there was before!
This repo collects these kernels in one place, for the benefit of practitioners and learners in our community.
Contributions are very, very welcome!
A Practioner's Guide to Triton is a great gentle intro to Triton (here's the accompanying notebook).
The Triton Tutorials are a great intermediate resources.
Flash Attention has a number of useful Triton kernels.
Unsloth contains many ready-to-use Triton kernels especially for finetuning applications
flash-linear-attention has a massive number of Linear attention or subquadratic attention replacement architectures, written using several different approaches of parallelization in Triton.
xformers contains many Triton kernels throughout, including some attention kernels such as Flash-Decoding.
Applied AI contains kernels such as a Triton MoE, fused softmax for training and inference
AO contains kernels for GaLoRe, HQQ and DoRA
torch.compile can codegenerate Triton kernels from PyTorch code
Liger Kernel is a collection of Triton kernels designed specifically for LLM training
To add a new entry:
Brought to you by the communtiy, initiated by Hailey and Umer ❤️
2,858 followers · starred Jun 2024
595 followers · starred May 2024
9,331 followers · starred Feb 2026
31 followers · starred Feb 2025