Lesson 6 of 96 min

Queries, keys, values and heads

Each token makes a query, a key and a value; a share comes from a query's dot product with each key, divided and put through softmax, and the shares blend the values.

After this lesson you can compute attention weights by hand for a tiny example.

Loading the video…

Refreshers

An idea from an earlier lesson shows up here when the video leans on it.

You use this lesson in Lab 2: Attention, written by hand, which comes next.

Facts last checked on .