AI From Scratch/Phase 07/Lesson 12/~75 minutes

KV Cache, Flash Attention & Inference Optimization

BuildPythonNo prerequisites

Training is parallel and FLOP-bound. Inference is serial and memory-bound. Different bottleneck, different tricks.

Loading lesson page...