Skip to content
Inference Academy

Triton Kernels

The Triton programming model, a tensor-core matmul with autotuning, grouped ordering and fused epilogues, fused residual-add RMSNorm and SwiGLU registered as PyTorch custom ops, and a paged, split-KV decode-attention kernel.

0 of 4 complete

  1. ▶ Up nextPro24 min+50 XPThe Triton programming model: blocks, masks and pointersHow Triton turns CUDA's thousands of threads into one program per block of data, what tl.program_id, tl.arange, masks…
  2. Pro26 min+50 XPA Triton matmul: tl.dot, autotuning, grouped ordering and fused epiloguesWrite a tensor-core matmul in about 40 lines of Triton, see how block shapes map to the tiling you did in CUDA, use…
  3. Pro26 min+50 XPFused residual-add RMSNorm and SwiGLU, plugged into PyTorchWrite two fused kernels every Llama-style model can use (residual add plus RMSNorm, and SwiGLU), count the memory…
  4. Pro32 min+50 XPA decode-attention kernel in Triton: paged KV cache, GQA and split-KVWrite the kernel that dominates long-context decode: one query token per sequence attending over a KV cache stored in…