RoPE Visualizer
đ¯ RoPE Embeddings with YaRN
Interactive Visualization of Rotary Position Embeddings
Yet another RoPE extensioN (YaRN) Scaling Analysis
đī¸ Configuration Parameters
4.0Ã
2048
8192
Effective Context
32
Frequency Pairs
65536
Max Wavelength
2
Min Wavelength
đ Frequency Analysis
đ Wavelength Comparison
đ Frequency Scaling Ratio
đ¯ YaRN Ramp Function Effect
đĨ RoPE Embeddings Heatmap
âšī¸ About YaRN and RoPE
Rotary Position Embedding (RoPE) encodes positional information by rotating query and key vectors using rotation matrices based on position and dimension.
YaRN (Yet another RoPE extensioN) extends the effective context length by intelligently scaling frequency components, allowing models to handle longer sequences than their training context.
Key Benefits: YaRN maintains performance on shorter sequences while enabling processing of much longer sequences, making it ideal for long-form text generation and analysis.