TRANSFORMERS & LLMs • 45 / 397
Follow text from characters to tokens, attention, transformers and generation.

Attention

Attention lets a model assign different importance to different parts of the context while processing a token.

Think of it like

Think of Attention as part of a very fast reader that repeatedly decides what information matters and what should come next.

Real life

Autocomplete, translation and chat assistants depend on concepts such as Attention.

SRE lens

When analyzing “the database timed out because it was overloaded,” attention helps connect “it” with “database”.

Remember thisAttention lets a model assign different importance to different parts of the context while processing a token.
AIForSREJump to a concept
Search is optional. The main journey is simply ↓ Next.