YaRN: Yet Another RoPE extensioN
Published

Why do LLMs choose Yarn over RoPE? Because past its training window, RoPE runs out of angles. A twenty twenty-three paper by Bowen Peng and team created Yarn, and today DeepSeek’s flagships — V three, R one — ship it, stretching four thousand ninety-six tokens past one hundred sixty thousand, with Qwen three and GPT oss too. On our dial, RoPE lands token sixty-four on token one’s face; Yarn gives it ninety-one point seven degrees, its own angle. The fix is surgical: fast needles keep their speed, needles that never finished a turn are divided by the stretch, the middle blends. Inside the native window, plain RoPE is fine; serve beyond it, choose Yarn. That’s why LLMs choose Yarn over RoPE.