Engineering Notes
In-depth technical writing on AI architecture, large language models and deep learning systems, organised as a learning path.
Orientation · Module 01 · The Big Picture
See how an LLM works end to end in one sitting; the deep-dive modules then open up each part of this map.
Foundations · Module 02 · Building Blocks of Neural Networks
The five pieces that make a neural network trainable: activations, losses, backpropagation, optimizers and normalization.
- Activation Functions — the geometry of non-linearity, vanishing gradients, and the SwiGLU revolution
- Loss Functions — the geometry of error, Log-Sum-Exp stability, and the Cross-Entropy simplification
- Backpropagation and Autodiff — computational graphs, activation memory, and chain rule anatomy
- Optimization Algorithms — SGD oscillations, the AdamW paradox, and the Muon revolution
- Weight Initialization and Normalization — Xavier, Kaiming, LayerNorm, and RMSNorm mathematics
Architecture · Module 03 · A Prompt's Journey
Follow a prompt step by step, from the tokenizer through the transformer block to the final output layer.
- Tokenization — from text to integers, BPE mechanics, and fertility
- The Embedding Layer — from token IDs to continuous vectors, lookup tables, and RoPE
- Semantic Embeddings — the coordinates of meaning, cosine distance, and HNSW search space
- Inside Self-Attention — Q, K, V mechanics, step-by-step matrix arithmetic, and context vectors
- Inside Causal Attention — The Arrow of Time, Lower Triangular Matrices, and the Math of the Void
- Inside Multi-Head Attention — subspaces, symmetry breaking, and head pruning
- The Transformer Block — the gradient highway, the convex hull, and FFN associative memory
- The Output Layer (LM Head) — Logits, the Memory Wall, Megatron-LM, and Speculative Decoding
- Inside the Context Window — From the 2K Wall to FlashAttention, RoPE/YaRN, and 2026 Hybrid Mamba Architectures
Systems · Module 04 · LLM Systems in Production
What it takes to keep an LLM fast and affordable in production, from cost and latency down to the vLLM engine.
Systems · Module 05 · From Prompting to Autonomous Agents
From prompting techniques to an agent's system prompt and its long-term memory.
Systems · Module 06 · RAG & Retrieval Architecture
The retrieval layer, from inside the vector database to RAG patterns that survive production.
Standalone
Loading articles…