Skip to content
Residual Stream

What actually happens inside a transformer, layer by layer.

The residual stream is the shared path every layer reads from and writes to. This notebook traces it — attention, KV caches, quantization, and the inference engines built to serve it fast. Mechanism first, benchmarks second. Written as I go, in English and Vietnamese.

Recent Posts

All Posts