Temperature and truncated sampling
Change parameters and inspect the actual computation behind temperature and truncated sampling.
| A | B | C | D | E | F |
|---|---|---|---|---|---|
| 0.692 | 0.255 | 0.034 | 0.013 | 0.005 | 0.002 |
0.81Entropy (nats)
0.692Most likely token probability
Fixed logits=[4,3,1,0,−1,−2]. Keep top-k, then normalize using temperature. Values are exact probabilities rather than random sample counts.
Predict the effect of changing a parameter before inspecting the output. Identify the responsible term in the formula and explain how the teaching model differs from a real application.