Skip to content

Glossary: Transformers Basics

GELU

Also written: nn.GELU

A smooth activation function used in GPT models. Like ReLU it passes large positive values and blocks large negative ones, but it bends smoothly around zero.

Where the book teaches it

Related terms

SwiGLU