Algo-Scape
← Dashboard
Controls
Predict
Steps
1. Input Tokens & Config
2. Token Embeddings
3. Positional Encodings
4. Input + Positional Encoding
5. Encoder Self-Attention
6. Decoder Target Embeddings
7. Decoder Positional Encodings
8. Target + Positional Encoding
9. Decoder Self-Attention
10. Decoder-Encoder Attention
11. Final Output (Softmax)
5. Head 1: Q, K, V Projection
6. Head 1: Attention Scores
7. Head 1: Attention Weights
8. Head 1: Weighted Values
9. Head 2: Q, K, V Projection
10. Head 2: Attention Scores
11. Head 2: Attention Weights
12. Head 2: Weighted Values
13. Concatenate Head Outputs
14. Final Output (MatMul with W_o)
// Input: "hello world ai" // Config: dModel=16, nHeads=2, seqLength=4
1. Input Tokens & Config: No data