Zenaique
Glossary · Architecture

SwiGLU

Also known as: Swish-Gated Linear Unit

Gated activation in transformer MLP blocks (Swish gate × linear up-projection), used in LLaMA and friends.

An activation function used in the MLP block of modern transformers (LLaMA, PaLM). Combines a Swish gate with a linear up-projection; slightly more expressive than ReLU/GeLU at the cost of one extra projection.

In practice

Small architectural choice with measurable quality gain. Worth knowing for any model-architecture deep dive question.

Related topics

Related terms