CS336 Notes: Lecture 6 - Kernels and Triton
Writing efficient GPU kernels with Triton: profiling, benchmarking, kernel fusion, and when to hand-optimize versus using torch.compile.
Read
Blog
Filter
Writing efficient GPU kernels with Triton: profiling, benchmarking, kernel fusion, and when to hand-optimize versus using torch.compile.
GPU fundamentals for LLM training: memory hierarchy, arithmetic intensity, kernel optimization, FlashAttention, and bandwidth limits.
Resource accounting for LLM training: compute estimates, memory budgets, dtypes, tensors, and mixed precision.