use case · basics · variable-length RoPE O(T) scaling · WASM q8 · 28.18 MB
Inside Moonshine Tiny: Variable-Length RoPE vs 30s Padding
Whisper encoders pad every audio input to 30 seconds (480,000 samples) before running self-attention.
Moonshine Tiny uses rotary position embeddings (RoPE, partial_rotary_factor: 0.9)
over the true utterance length — slice one recording from 2 s → 11 s below to watch real
inference latency scale linearly instead of paying a flat 30-second tax.