Handwritten notes
72 of 72 resources
FlashAttention: online softmax and tiling
IIT Delhi · COL851
Open PDF
Efficient attention
Matt Gormley & Pat Virtue · Carnegie Mellon University
Open PDF
PagedAttention, KV blocks and serving metrics
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 13 pages
Online softmax: running maximum and correction factor
Umar Jamil
Open PDF · 6 pages
Scalar quantization, FP4, GPTQ and LDLQ
Yury Polyanskiy; MIT EECS, Princeton ML School 2025
Open PDF · 15 pages
NanoFlow and vLLM: KV cache, prefill/decode and serving throughput
Shivaram Venkataraman; University of Wisconsin-Madison CS 744, Spring 2025
Open PDF · 18 pages
Continuous batching and chunked prefill
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 12 pages
Block matrix multiplication for attention
Umar Jamil
Open PDF · 9 pages
Efficient LLM decoding II: speculative decoding and Medusa
Yatin Nandwani · IIT Delhi LCS2, ELL881/AIL821
Open PDF · 87 pages
Modern transformers: RoPE, GQA and KV caching
Matt Gormley and Pat Virtue · Carnegie Mellon University, 10-423/10-623
Open PDF · 54 pages
Quantization: codebooks, scales and zero points
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 10 pages
Introduction to GPU and CUDA
Umar Jamil
Open PDF · 7 pages
FlashAttention-2 and inference optimization
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 15 pages
Quantization for matrix multiplication
Yury Polyanskiy; MIT EECS, Princeton ML School 2025
Open PDF · 20 pages
FlashAttention handwritten derivations — Arunabh
Arunabh · IIT Delhi COL851
Open PDF · 7 pages
CUDA grids, blocks, threads and memory
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 11 pages
GPU cluster scheduling
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 15 pages
GPU hardware and arithmetic intensity
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 15 pages
GPU scheduling and introduction to CUDA
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 13 pages
GPU tiling, memory access and attention optimization
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 12 pages
Linear attention and FlashAttention derivations
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 12 pages
ML compilers and execution graphs
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 12 pages
Mixture of experts and memory-efficient models
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 13 pages
Transformer FLOPs and the KV-cache tradeoff
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 15 pages
ZeRO, tensor parallelism and pipeline parallelism
Deepti Raghavan · Brown University, CSCI1390
Open PDF · 14 pages
FlashAttention-2 handwritten paper notes — Sarthak
Sarthak · IIT Delhi COL851
Open PDF · 28 pages
Autograd and gradients
Umar Jamil
Open PDF · 9 pages
Gradient of matrix multiplication
Umar Jamil
Open PDF · 2 pages
Gradient of softmax
Umar Jamil
Open PDF · 2 pages
Making softmax numerically safe
Umar Jamil
Open PDF · 4 pages
Multi-head attention
Umar Jamil
Open PDF · 5 pages
Software pipelining
Umar Jamil
Open PDF · 3 pages
Tensor layouts: shapes, strides, reshape and transpose
Umar Jamil
Open PDF · 3 pages
FlashAttention: scanned notebook
Vignesh (viai957), repository host; scan author unconfirmed
Open PDF · 37 pages
Vector quantization II: random coding and non-MSE distortion
Yury Polyanskiy; MIT EECS, Princeton ML School 2025
Open PDF · 8 pages
Vector quantization and tokenization
Yury Polyanskiy; MIT EECS, Princeton ML School 2025
Open PDF · 15 pages
Distributed transformers: tensor and pipeline parallelism
Matt Gormley and Pat Virtue · Carnegie Mellon University, 10-423/10-623
Open PDF · 40 pages
Learning LLMs and decoding
Matt Gormley and Pat Virtue · Carnegie Mellon University, 10-423/10-623
Open PDF · 30 pages
Long context: blockwise and ring attention
Matt Gormley and Pat Virtue · Carnegie Mellon University, 10-423/10-623
Open PDF · 39 pages
Mixture of experts
Matt Gormley and Pat Virtue · Carnegie Mellon University, 10-423/10-623
Open PDF · 26 pages
State space models and Mamba
Matt Gormley and Pat Virtue · Carnegie Mellon University, 10-423/10-623
Open PDF · 34 pages
Llumnix: request scheduling and live migration for LLM serving
Shivaram Venkataraman; University of Wisconsin-Madison CS 744, Spring 2025
Open PDF · 15 pages
PipeDream: pipeline parallelism and distributed execution
Shivaram Venkataraman; University of Wisconsin-Madison CS 744, Spring 2025
Open PDF · 20 pages
TPU architecture, systolic execution and roofline analysis
Shivaram Venkataraman; University of Wisconsin-Madison CS 744, Spring 2025
Open PDF · 19 pages
Advanced attention: KV caching, MQA, GQA and sliding windows
Sourish Dasgupta · IIT Delhi LCS2, ELL881/AIL821
Open PDF · 16 pages
Efficient LLM decoding I: KV cache and PagedAttention
Yatin Nandwani · IIT Delhi LCS2, ELL881/AIL821
Open PDF · 139 pages
Mixture of experts, Switch Transformers and model parallelism
Yatin Nandwani · IIT Delhi LCS2, ELL881/AIL821
Open PDF · 96 pages
Hierarchical speculative decoding: paper with personal annotations
Joe Barrow; paper by Wenhui Liao et al.
Open PDF · 22 pages
FlashAttention: highlighted paper with typed marginal notes
Sachin Kalsi (annotations); paper authors credited in PDF
Open PDF · 16 pages
EAGLE: annotated paper
Shreyansh Singh (annotations); paper authors credited in PDF
Open PDF · 13 pages
FlashAttention: annotated paper
Shreyansh Singh (annotations); paper authors credited in PDF
Open PDF · 34 pages
FlashInfer: annotated paper
Shreyansh Singh (annotations); paper authors credited in PDF
Open PDF · 21 pages
PagedAttention: annotated paper
Shreyansh Singh (annotations); paper authors credited in PDF
Open PDF · 16 pages
QServe: annotated paper
Shreyansh Singh (annotations); paper authors credited in PDF
Open PDF · 15 pages
SmoothQuant: annotated paper
Shreyansh Singh (annotations); paper authors credited in PDF
Open PDF · 13 pages
Speculative decoding: annotated paper
Shreyansh Singh (annotations); paper authors credited in PDF
Open PDF · 13 pages
Demystifying LLM inference memory: KV cache and VRAM math
Riddhiman Sherlekar
Open notes
Reimplementing FlashAttention for performance and giggles
AmineDiro
Open notes
Softmax and its Jacobian — Brandon Rohrer
Brandon Rohrer; linked by IIT Delhi COL851
Open PDF · 10 pages
FlashAttention 1, 2 and 3 — supplementary slides
IIT Delhi COL851 · Riju / Rijurekha Sen course
Open PDF · 30 pages
LLM quantization: GPTQ, SmoothQuant and DuQuant
IIT Delhi COL851 · Riju / Rijurekha Sen course
Open PDF · 27 pages
PagedAttention — supplementary slides
IIT Delhi COL851 · Riju / Rijurekha Sen course
Open PDF · 41 pages
A visual guide to the roofline model
Joe Barrow
Open notes
DeepSeek V3: MLA, DualPipe and expert load balancing discussion
MIT MLSys Discussion Group
Open notes
Speculative decoding: discussion and sampling intuition
MIT MLSys Discussion Group; whiteboard idea credited to Aniruddha (Ani) Nrusimha
Open notes
LLaMA: KV cache and grouped-query attention
Umar Jamil
Open PDF · 68 pages
Mistral: sliding-window attention and rolling buffer cache
Umar Jamil
Open PDF · 71 pages
Quantization explained
Umar Jamil
Open PDF · 32 pages
ServerlessLLM architecture and critical analysis — Vaibhav
Vaibhav · IIT Delhi COL851
Open PDF · 20 pages
TurboQuant: personal handwritten paper notes
Akash Jangid
Open PDF · 6 pages
GPU programming: data parallelism, warps and memory
James R. Glenn · Yale CPSC 474 (2018)
Open PDF · 3 pages
GPUs, CUDA and deep learning frameworks
Nicholas D. Lane & Titouan Parcollet · Cambridge L46
Open PDF · 61 pages