gpu-mode/Triton-Puzzles

Puzzles for learning Triton

Jupyter Notebook

2,644

54 commits

updated Apr 1, 2026

See the code

README

Triton Puzzles

w/ Tejas Ramesh and Keren Zhou based on Triton-Viz

Open In Colab

Programming for accelerators such as GPUs is critical for modern AI systems. This often means programming directly in proprietary low-level languages such as CUDA. Triton is an alternative open-source language that allows you to code at a higher-level and compile to accelerators like GPU.

Coding for Triton is very similar to Numpy and PyTorch in both syntax and semantics. However, as a lower-level language, there are a lot of details that you need to keep track of. In particular, one area that learners have trouble with is memory loading and storage which is critical for speed on low-level devices.

This set of puzzles is meant to teach you how to use Triton from first principles in an interactive fashion. You will start with trivial examples and build your way up to real algorithms like Flash Attention and Quantized neural networks. These puzzles do not need to run on GPU since they use a Triton interpreter.

Discord: https://discord.gg/gpumode #triton-puzzles

image

If you are into this kind of thing, this is 7th in a series of these puzzles.

machine-learning
puzzle

gpu-mode/Triton-Puzzles

Puzzles for learning Triton

Jupyter Notebook

2,644

54 commits

updated Apr 1, 2026

See the code

README

Triton Puzzles

w/ Tejas Ramesh and Keren Zhou based on Triton-Viz

Open In Colab

Programming for accelerators such as GPUs is critical for modern AI systems. This often means programming directly in proprietary low-level languages such as CUDA. Triton is an alternative open-source language that allows you to code at a higher-level and compile to accelerators like GPU.

Coding for Triton is very similar to Numpy and PyTorch in both syntax and semantics. However, as a lower-level language, there are a lot of details that you need to keep track of. In particular, one area that learners have trouble with is memory loading and storage which is critical for speed on low-level devices.

This set of puzzles is meant to teach you how to use Triton from first principles in an interactive fashion. You will start with trivial examples and build your way up to real algorithms like Flash Attention and Quantized neural networks. These puzzles do not need to run on GPU since they use a Triton interpreter.

Discord: https://discord.gg/gpumode #triton-puzzles

image

If you are into this kind of thing, this is 7th in a series of these puzzles.

machine-learning
puzzle

Significant stargazers

(top 24 of 82)

An Long

642 followers · starred Oct 2026

Isotr0py

352 followers · starred Dec 2025

Yuxuan Wang

126 followers · starred Nov 2024

Kazuki Fujii

125 followers · starred Mar 2025