embed
encoder
Runs once per German sentence. Every word attends to every word, later ones too: nothing on this side is being predicted.token tape
embed
self-attention
q, k and v all come from this sentencecross-attention
q from this English token; k and v from the encoder's GermanMLP
this token alone: no looking at the othersread out
a probability for every token in the vocabularyEvery little square is one number: blue positive, red negative, pale near zero. Hover a strip, press “show numbers”, or click a plate to read them exactly. The tinted plates are the learned weights. Everything else is worked out fresh for each token and thrown away.