# resid: [batch, pos, d_model] for step, ckpt in checkpoints("shoggoth-s"): logits = W_U @ resid[:, -1] log(step, loss(logits, targets))
Inline, a tensor shape reads as [batch, pos, d_model].
[batch, pos, d_model]