Inference: predicting “sat”
Same forward pass with frozen weights: pick a word from the chances, append it, go again.
Hover or tap a token to follow it. In step 2, drag the temperature slider or tap − / +.
Exactly modules 1 to 5 again, with the tables from training. Now “sat” wins by far.
Inference = forward pass only. No loss, no gradients, no weight updates.
Before rolling the dice, divide every score by the temperature. Low = almost always the top token. High = more variety.
p = softmax(scores / T). Every frame is computed in Python with the same 20 fixed dice rolls.
The picked token is added to the input and the whole forward pass runs again, one token at a time.
This loop is called autoregressive generation.
The test: start each sentence from module 1's corpus and let the trained model finish it on its own.
Greedy generation, computed in Python with the trained tables from module 6.
Both run the same forward pass. Only training compares with a right answer and changes the tables.