Lesson 8 of 96 min

The transformer block

A transformer is one block repeated: in each, attention lets the tokens share and an MLP works on each token alone, each part reading a rescaled copy and adding its change to the vector that runs up through them all.

After this lesson you can follow a token through attention, the MLP, the residual and the norm.

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, after Encoders and decoders.

Facts last checked on .