LLM Math: a free guide explains 73 formulas behind LLMs with runnable NumPy snippets
attentionmech · x · 2026-11-29
avidlive.ai released a free online guide, LLM Math, covering 73 formulas across 20 sections that explain the math behind large language models.
- Content is ordered by how a model actually uses it: BPE tokenization, embeddings, positional encodings, attention, normalization, MLP blocks, then training (loss/perplexity, backprop, Adam/AdamW, LR schedules, scaling laws) and serving (KV cache, sampling, quantization, LoRA, RLHF/PPO, DPO, MoE, speculative decoding)
- Every formula comes with a plain-English explanation, where the LLM uses it, a runnable NumPy snippet, and the source paper (44 papers cited)
- Aimed at engineers rather than theorists
More from Research
- AI digital pathology finds tumor-fat border in breast cancer is key to spread — EricTopol · 2026-11-29
- DeepMind's multi-agent recipe: verified shared notebook, 4-hour syncs, 11.8x compute savings — Dedap85 · 2026-11-29
- Sophont open-sources ReadyNeuro: 16TB fMRI dataset and CortexMAE foundation model — iScienceLuvr · 2026-11-29
- Scott Aaronson lampoons rumors that AI labs have broken RSA in satirical blog post — austinc3301 · 2026-11-29
- Nathan Lambert's Cornell talk: post-training is now the center of AI progress — natolambert · 2026-11-29
- Hinton: RL should reward what AI agents and people achieve together, not alone — vitrupo · 2026-11-29