Index Ai Academy
Glossary · Phase 5 · Transformers

Language model

Also written: language models, language modeling

A model that predicts the next token from the ones before it.

Try it now

A language model is this table, for every possible context. Press Sample and it writes the next word by drawing from these made-up odds.

Learn it properly

Language modeling · Predict the next token, and score it with cross-entropy. About 30 minutes.

Start this free lesson

Other terms from the same lesson

Never trained an AI?

Teach a small one to write, right in your browser. It takes about 20 seconds and needs no account.

Teach it to write