AlgoViz

From an example to a next-token prediction

easy 7 min

Generation is a sequence of conditional choices.

Remember it

The few things worth knowing cold, and how to make them stick.

Memory hook

Generation is a sequence of conditional choices. During training a model learns which continuations reduce prediction error across many prefixes. At inference it runs the learned network on the current prefix, samples or selects a token, appends that token and repeats.