Positional Encodings Visualization next

Transformer Positional Encodings

This page recreates the Python positional encoding code in JavaScript and visualizes the result as a heatmap. Hover cells to see values. Use sliders below to inspect a token across dimensions or a dimension across positions.

Tip: shorten the sentence to see fewer tokens.