Multi-Head Attention

One attention head can only focus one way at a time. Running several heads in parallel — each with its own queries, keys and values — lets a token attend to different things at once, then combine what they found.

Large Language Models: From Transformers to Frontier Models

Sign up free to read the rest of this lesson