Back to Tools
Positional Encoding
Visualizing the sinusoidal waves that give Transformers a sense of order.
Mathematical Formula
The wavelength increases geometrically from to . This allows the model to easily learn to attend by relative positions.
Configuration
100
10500
256
161024
Loading Visualization...
Hover over the heatmap to see exact values.