AI Video Academy · How LLMs Work · intermediate

What Is a Transformer?

The layer stack behind modern language models.

0:55 · captions in English · instrumental music, no narration

Transcript

What is the T in GPT?

The transformer, introduced in 2017, is a stack of identical layers.

Each layer mixes information across tokens with attention, then transforms each token with a feed-forward network.

Attention links any two positions, residuals keep deep stacks trainable, and prompts are processed in parallel.

Today’s models are mostly decoder-only, often use rotary positions, and some use mixtures of experts.

A transformer is attention plus feed-forward, stacked many times.

Experiment with this concept in PromptFlowEngine.