Skip to content
THTECHIEHACKER
Explore menu
HomeInteractive LabsAttention Lab
TECHIEHACKER / INTERACTIVE LABS
Interactive Labs.

Hands-on AI concepts • experiment safely in your browser.

Programmer working at a laptop
File photo · Free-Photos / Pixabay · CC0
Reading list
YOUR SAVED PAGES

Saved in this browser only.

Original page controls
TECHIEHACKER / INTERACTIVE WORLDS

Attention Lab

Change query weights and temperature to see softmax attention in action.

Illustrative query–key scores for four tokens. The softmax turns the scores into probabilities that sum to one.

Formula: weight = exp(score / temperature) / sum(exp(scores / temperature)). Real transformers also apply learned projections, masks and value vectors.

← All experiences · Home