Skip to content
Breakpoint logobreakpoınt

Triton Puzzles

Write Triton GPU kernels in a notebook, from vector add to FlashAttention

Triton Puzzles is a notebook of 12 exercises for learning Triton, the Python-based language for writing GPU kernels. Each puzzle states a small math task and gives you a kernel stub to fill in using block loads, stores and masks. The puzzles start with adding a constant to a vector and build up to softmax, a simple FlashAttention, 2D convolution, matrix multiply and quantized matrix multiply.

Play on github.com

Free · No login · Browser · Advanced

Triton Puzzles preview

About Triton Puzzles

It trains how GPU code splits work into blocks and how memory is loaded and stored, which is the hard part of fast kernels. It suits people who know NumPy or PyTorch. A visualizer shows which memory cells each block reads and writes.

It is free and open source. It runs in Google Colab or a local Jupyter setup, and it does not need a GPU because it uses a Triton interpreter. Colab needs a Google account.

Made this game? Claim it →

Keyboard shortcuts

j / k
Move down / up the list (this page)
] / [
Next / previous page
o
Open the focused game
b
Save or unsave the focused game
/
Search (the home list, or the command palette elsewhere)
Ctrl K
Command palette: games, skills, pages (works even when single keys are off)
?
This help