top candidates · probability
{distribution.length} shown of ~50000
{distribution.slice(0, 10).map((item, i) => {
const isChosen = active && phaseSample > 0 && item.tok === chosen.tok;
const shown = effectivePhaseLogits > i / 10;
return (
"{item.tok.replace(/ /g, '␣')}"
{(item.prob * 100).toFixed(1)}%
);
})}
0 ? 'var(--magenta)' : 'var(--line)'}`,
borderRadius: 4, padding: '10px 14px', minWidth: 170,
background: phaseSample > 0 ? 'color-mix(in oklch, var(--magenta) 8%, transparent)' : 'rgba(0,0,0,0.25)',
display: 'flex', flexDirection: 'column', justifyContent: 'center', alignItems: 'center', gap: 6,
transition: 'border-color 300ms, background 300ms',
boxShadow: phaseSample > 0 ? '0 0 20px color-mix(in oklch, var(--magenta) 30%, transparent)' : 'none',
}}>
0 ? 'var(--magenta)' : 'var(--text-faint)', letterSpacing: '0.1em' }}>SAMPLED
0 ? 'var(--magenta)' : 'var(--text-faint)',
textShadow: phaseSample > 0 ? '0 0 14px var(--magenta)' : 'none',
transition: 'color 300ms',
whiteSpace: 'pre',
}}>
{phaseSample > 0 ? `"${chosen.tok.replace(/ /g, '␣')}"` : '···'}
p = {phaseSample > 0 ? (chosen.prob * 100).toFixed(1) + '%' : '—'}