All
Articles 131,978Blog Posts 136,781Tech Tutorials 34,209Research Papers 25,925News 18,714
⚡ AI Lessons

Dev.to · Gary Jackson
📐 ML Fundamentals
⚡ AI Lesson
2mo ago
Chapter 10: Multi-Head Attention and the MLP Block
Run several attention heads in parallel on embedding slices, add a two-layer MLP for per-position computation, and assemble a transformer block.

Dev.to · Gary Jackson
🧠 Large Language Models
⚡ AI Lesson
2mo ago
Chapter 9: Single-Head Attention - Tokens Looking at Each Other
Build causal self-attention with Q/K/V projections, scaled dot-product scoring, softmax weights, and a KV cache for sequential processing.

Dev.to · Gary Jackson
📐 ML Fundamentals
⚡ AI Lesson
2mo ago
Chapter 8: RMS Normalisation and Residual Connections
Add two stabilisation patterns deep networks need: RMSNorm to keep activations bounded, and residual connections to give gradients a highway.

Dev.to · Gary Jackson
📐 ML Fundamentals
⚡ AI Lesson
2mo ago
Chapter 7: The Training Loop and Adam Optimiser
Assemble a full training loop: forward, loss, backward, and Adam parameter updates with momentum, adaptive scaling, and learning rate decay.

Dev.to · Gary Jackson
📐 ML Fundamentals
⚡ AI Lesson
2mo ago
Chapter 6: Embeddings, the Forward Pass, and the Loss Function
Give tokens and positions learned vector identities, assemble a minimal forward pass to logits, and compute cross-entropy loss.

Dev.to · Gary Jackson
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
Chapter 4: The Bigram Model - Simplest Possible Language Model
Implement a counting-based bigram model to pin down the next-token prediction task and establish a loss baseline before neural networks enter.

Dev.to · Gary Jackson
🧠 Large Language Models
⚡ AI Lesson
3mo ago
Chapter 3: The Tokenizer - Text to Numbers and Back
Build a character-level tokenizer with a BOS delimiter that converts between characters and integer IDs.

Dev.to · Gary Jackson
📐 ML Fundamentals
⚡ AI Lesson
3mo ago
Chapter 2: Backward - Automatic Gradient Computation
Implement Backward() on Value: topologically sort the graph, then walk it in reverse using the chain rule to fill every .Grad.
DeepCamp AI