-
LLM inference: core concepts and terms
A map of the terms in LLM serving: prefill and decode, batching, KV cache, metrics, sampling, engines and libraries.
-
LLM from scratch - 1.3 Multi Head Self Attention
Why Multi Head Attention is important, mathematical formulations, and implementation.
-
LLM from scratch - 1.2 Single Head Self Attention
Implementation details of single head self attention and causal masks.
-
LLM from scratch - 1.1 Positional Encoding
Positional encoding explanations and code implementations, including learned and sinusoidal encoding.
-
Deep Dive into MicroGPT by Karpathy
A detailed walkthrough of Karpathy's MicroGPT, covering dataset preparation, character-level tokenization, a minimal autograd engine (the Value class), Python special methods, and backpropagation via topological sort.