Loading Larkspur mini
Layer 1 · head 1 · token 12 of 12 (␣business)The bar: what the sampler draws from at temperature 0, top-p 1. Computed live from Larkspur mini.
Chapter 5 of 7
Choosing the next token
Picking the likeliest token every time makes the same reply every time. The team wants to know how a model picks, and what a provider’s settings change.
This chapter: How do temperature and top-p change which token gets picked?
About this chapter
You will learn
- What sampling is, and why the same prompt can give different replies
- How temperature sharpens or flattens the probabilities
- How top-p keeps only the likeliest tokens before picking
Words you’ll meet
- Sampling
- Picking the next token at random, in proportion to its probability.
- Temperature
- A setting that sharpens the probabilities when low (0 always picks the likeliest) and flattens them when high.
- Top-p
- Nucleus (top-p) sampling, from Holtzman and colleagues, draws from the smallest set of tokens whose probabilities add up to at least p.
- Seed
- The number a random draw starts from. The same seed gives the same draws, so a run can be repeated.
Step 1 of 6
Something has to pick one token. Always taking the likeliest is greedy: a of 0.
Write 8 tokens.
Loading Larkspur mini…