KQ-790 · SAMPLING/GRAPH
Sampling Graph
A bar chart of next-token probabilities drawn from the host's logits by a softmax at the given temperature, a repetition penalty on tokens already seen and a top-p nucleus that cuts the tail. Rows are keyed by token and sorted by probability, so a parameter change that reorders them is a FLIP layout move on glide while each bar scales on glide and the percentages roll on snap. A seeded draw picks one token and its bar lights: the fill turns signal and a pip lands on flick; a settle timer speaks the pick once the parameters are still.
KQ-790 · SAMPLING/GRAPH
Gaugeworks Reasoner · next tokenNextbegan
- rose% 25 percent
- lifted% 19 percent
- the% 15 percent
- began% 13 percent, picked
- were% 9 percent
- drifted% 8 percent
- boats% 6 percent
- bobbedcut% 4 percent, cut
Picked "began" · 13% · T 1.0 · P 0.90 · Pen 1.0 · Draw 1
Install
One command — the source lands in your repo. Or copy it from the Code tab.
$ pnpm dlx shadcn@latest add @kinetiq/sampling-graph
Props
- candidates
- SamplingCandidate[]
- default —
- { token, logit, seen? }; at most a dozen rows read well.
- temperature
- number
- default 1
- Softmax temperature; clamped to 0.05 or more.
- penalty
- number
- default 1
- Repetition penalty dividing the logit of seen tokens; 1 is off.
- topP
- number
- default 1
- Nucleus share; tokens past it are cut and never drawn.
- seed
- number
- default 1
- Seeds the draw that picks the token.
- onSettle
- (pick: SamplingPick) => void
- default —
- Fires from the settle timer with { token, probability, rank } once the parameters have been still for half a second.
- label
- string
- default —
- Names the chart.
| Prop | Type | Default | Description |
|---|---|---|---|
| candidates | SamplingCandidate[] | — | { token, logit, seen? }; at most a dozen rows read well. |
| temperature | number | 1 | Softmax temperature; clamped to 0.05 or more. |
| penalty | number | 1 | Repetition penalty dividing the logit of seen tokens; 1 is off. |
| topP | number | 1 | Nucleus share; tokens past it are cut and never drawn. |
| seed | number | 1 | Seeds the draw that picks the token. |
| onSettle | (pick: SamplingPick) => void | — | Fires from the settle timer with { token, probability, rank } once the parameters have been still for half a second. |
| label | string | — | Names the chart. |