Index Ai Academy
Glossary · Phase 1 · Building with LLMs

Next-token prediction

Also written: next-word prediction

The one task a language model is trained on: guess the next piece of text from everything before it.

Learn it properly

What an LLM actually does · Next-token prediction, and why that produces useful behavior. About 25 minutes.

Start this free lesson

Other terms from the same lesson