Lesson 9 of 97 min

Encoders and decoders

A decoder's tokens see only the tokens before them so it can write, while an encoder's tokens see the whole text so it reads, and for a label on many texts a small trained encoder beats a chat model asked.

After this lesson you can choose between a BERT-style and a GPT-style model for classification, extraction or generation.

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 3: Open up a real transformer, which comes next.

Facts last checked on .