← Chapter 10. Inside the transformer
One token attends: query, keys, values, heads
Swipe to change step
Step 1 of 8. Focus on one token, sat. Its vector is multiplied by a learned matrix W_Q to make a query: what sat is looking for. Here the query is [1, 0]. Query: sat ([1, 0]), highlighted.
Keys: → or J next, ← or K back, Home and End jump, Space toggles auto-play when the diagram has focus.