Frontier Research Engineering

Transformers, Hands-On

Socratic Tutor

Attention, masks, positional encodings and the modern transformer block, built piece by piece.

Attention by Hand

Multi-Head Attention as One Big Matmul
12 min
Causal and Padding Masks
12 min

Position

Positions: Learned, Sinusoidal and RoPE
14 min

The Model

A Decoder-Only Model, End to End
15 min
StackSweep | Engineering practice