Trace the Transformer Forward Pass

Follow one generation step through a transformer at tensor level: from text to token IDs, through the stack of blocks, to the logits for the next token.