Skip to content

Glossary: Transformers Basics

SwiGLU

A gated MLP used in Llama-style models, where a learned gate multiplies two branches. It gives better quality for the same compute than a plain GELU MLP.

Where the book teaches it

Related terms

GELUMLP (multilayer perceptron)