Lesson 3 of 96 min

Language modeling

A language model gives every token a chance of coming next. It practices on plain text, where each next token is the answer. Perplexity expresses its average uncertainty as a count of equally likely choices.

After this lesson you can explain "predict the next token" and score a model with perplexity.

Loading the video…

Refreshers

An idea from an earlier lesson shows up here when the video leans on it.

You use this lesson in Lab 1: Score any text, token by token, which comes next.

Facts last checked on .