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
  1. rose% 25 percent
  2. lifted% 19 percent
  3. the% 15 percent
  4. began% 13 percent, picked
  5. were% 9 percent
  6. drifted% 8 percent
  7. boats% 6 percent
  8. 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.