Graph Neural Networks Explained: Message Passing in Plain English
Message passing explained without heavy maths: a four-node example you can do on paper, GCN, GraphSAGE and GAT, and the failure modes that bite in practice.
Mixed Precision Training Explained: FP16 vs BF16 vs FP8
How FP16, BF16, and FP8 differ in range and precision, the two failures low precision causes, and the recipe that fixes each one, with measured numbers.
Grouped-Query and Multi-Query Attention Explained
Why Llama 3 70B keeps 64 query heads but only 8 key-value heads: how MQA and GQA shrink the KV cache, with the arithmetic, the serving impact, and NumPy code.
FlashAttention Explained: Why Attention Was Memory-Bound
Attention looks cheap on paper but spends most of its time waiting on memory. Here is the tiling and online-softmax trick, with NumPy code proving it is exact.
Mixture of Experts (MoE) Explained: How Sparse Models Get Big Without Getting Slow
How MoE layers route each token to a few expert FFNs, why a 671B model can really run at 37B cost, and where the memory and communication bills still bite.
Scaling Laws Explained: Why Bigger Models Trained on More Data Keep Improving
What Kaplan and Chinchilla actually found, why the 20-tokens-per-parameter rule is a fit rather than a law, and how to run your own scaling experiment.
Decoding Strategies Explained: Greedy, Beam Search, Top-k, Top-p, and Temperature
How greedy, beam, top-k, top-p, and temperature actually pick the next token, with a runnable toy distribution that shows what each knob does to the tail.
LayerNorm vs RMSNorm and Pre-Norm vs Post-Norm: What Changed in Modern LLMs
Why modern LLMs dropped LayerNorm's mean-centering and moved the norm inside the residual branch, with measured numbers on stability and activation growth.
Encoder vs Decoder vs Encoder-Decoder Transformers: BERT, GPT, and T5 Compared
How BERT, GPT, and T5 differ by which half of the transformer they keep, what each pretraining objective actually buys you, and how to pick one for a task.
Positional Encodings Compared: Sinusoidal, Learned, RoPE, and ALiBi
Sinusoidal, learned, RoPE, and ALiBi compared on parameters and length extrapolation, with runnable NumPy snippets that actually show why RoPE is relative.
Self-Attention Explained Step by Step in PyTorch
Build self-attention from scratch in PyTorch, one tensor at a time, then verify your manual math against PyTorch's fused kernel with a single allclose call.
Tokenization and Byte-Pair Encoding (BPE) Explained, with a Tokenizer Built from Scratch
Why tokenization decides what your model can see, how byte-pair encoding actually merges, and a 50-line Python tokenizer that you can train and run today.