"How the weather today?" is split into tokens, each token maps to an
integer ID, and each ID indexes into an embedding matrix — a continuous, 768-dimensional
vector the transformer can actually compute with. The scatter below projects that
768d space down to 3 dimensions so nearby meanings can be seen as nearby points.
lm_head projects the final hidden state into one logit per vocabulary
token — 50,257 of them — then softmax turns those logits into probabilities that
sum to 1. Shown here: the top 5 candidates.
During training, NLL measures how much probability the model assigned to the correct next token. Lower NLL means the model was more confident in the right answer.
Click any node for a concise definition and where it showed up in the tour.