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.
