Skip to main content
Primary: Phase 8Technical TutorialsResearchFree Learning Material
Triton

Triton Programming Tutorials

Official hands-on tutorials for OpenAI's Triton language: vector addition, fused softmax, tiled matrix multiplication, LayerNorm, and FlashAttention kernels in Python.

Triton allows AI engineers to write high-efficiency block-tiled GPU kernels directly in Python without managing low-level CUDA warp synchronization manually. The official Triton tutorial sequence walks from a simple vector addition kernel to a fused row-wise softmax (demonstrating massive memory-bandwidth speedups over naive PyTorch), tiled matrix multiplication in SRAM, fused LayerNorm, and FlashAttention.

Resource Tracking

Course status is tracked independently from roadmap topic checkboxes so you can mark external courses without altering your topic mastery percentage.

Suggested Learning Position

Phase 8 Hands-On Kernel Engineering (Modules 8.1 & 8.3)

Language:English
Access & Link Verification

100% free open-source documentation and executable Python kernel scripts.

Status: Verified (2026-11-09)

What You Will Learn from This Resource

  • Write block-tiled GPU kernels in Python using `tl.load`, `tl.store`, and `tl.dot`.
  • Implement a fused softmax kernel that keeps intermediate reductions in on-chip SRAM.
  • Understand how FlashAttention tiles `Q`, `K`, and `V` blocks using online softmax.

Recommended Prerequisites

Review these foundations before starting so you get the most out of this material:

  • GPU memory hierarchy (SRAM vs. HBM) and Transformer attention math (Phases 5 & 8.1).

Topics & Keywords

TritonGPU KernelsFused SoftmaxFlashAttentionSRAM Tiling
Curriculum Integration

How This Resource Fits Into Your AI & LLM Roadmap

Open Interactive Roadmap

Phase-Specific Study Recommendations (1)

Phase 8 · Resource 8.7Practice & Reference

Triton Programming Tutorials

In Phase 8: Advanced LLM Systems & Research

Work through Tutorials 01 (Vector Add), 02 (Fused Softmax), 03 (Matrix Multiplication), and 06 (Fused Attention) during Modules 8.1 and 8.3.

Continue Exploring
Browse Full Library
Phase 8Recommended StartVideo Lectures
GPU MODE
ResearchFree Learning Material

GPU Programming Lectures

Community-driven advanced research and engineering lecture series covering GPU hardware architecture, CUDA kernels, Triton, FlashAttention, quantization, and PyTorch compiler internals.

GPU MODECUDATritonFlashAttentionGPU Architecture
Your Status:
Phases 5, 6, 8Recommended StartUniversity Course Materials
Stanford University
AdvancedFree Learning Material

CS336 — Language Modeling from Scratch

Graduate-level Stanford course walking through every aspect of building language models from scratch: Transformer architecture, tokenization, pretraining data pipelines, GPU systems, parallelism, and scaling laws.

Used across:Phase 5 (5.2)Phase 6 (6.1)Phase 8 (8.1)
StanfordCS336Language ModelingPretrainingScaling Laws
Your Status:
Phase 8Documentation
vLLM
AdvancedFree Learning Material

vLLM Documentation

Official documentation for vLLM, the high-throughput open-source LLM inference and serving engine powered by PagedAttention, continuous batching, speculative decoding, and quantized kernels.

vLLMPagedAttentionKV CacheContinuous BatchingInference
Your Status: