Inside Transformer
Walk one GPT-2 forward pass in 3D, eighty-nine steps from token ids to the next token: embedding lookups, LayerNorm, the fused Q/K/V projection, heads, scaled and masked scores, softmax, value mixing, the output projection and residual add, the MLP, and the tied head's argmax. Scrub any step while tracking shapes, memory, and arithmetic.