L2 Intermediate · Module 8: Transformer kernels and compilers

8.5FlashAttention: tiling and online softmax

The kernels an LLM actually runs, plus Triton and torch.compile.

GPU optional✦ Interactive

Sources for this module

course · CUDA100100 Days of CUDAPavel SimoDays 14, 20, 26–28, 31, 34, 38–41, 77
book · FREGLYAI Systems Performance EngineeringChris Freglytorch.compile / Triton chapter

Finished chapters so far: all of Level 1 (Modules 0–3), Module 4: CUDA fundamentals, Module 5: parallel patterns, Module 6: GEMM and memory optimization, Module 7: profiling and 9.1 How big is the KV cache?