20/23
Part 6 of 6 · One decode step, and long linesWatch
Watch · 5 min
Karpathy writes generate for that model: keep the last position's logits, take a softmax, draw one id with torch.multinomial and concatenate it onto idx, then reads the garbage an untrained model writes.
Let's build GPT: from scratch, in code, spelled out. · Andrej Karpathy · Jan 2023YouTube