Skip to content

Glossary: Transformers Basics

MLP (multilayer perceptron)

Also written: MLP

A small feed-forward network. In a transformer block it widens each token's vector four times, applies an activation, and narrows it back, processing each token on its own.

Where the book teaches it

Related terms

GELUSwiGLU