← All notes

YaRN: Efficient Context Window Extension of Large Language Models

Summary

YaRN (Yet another RoPE extensioN method) is a compute-efficient way to extend the context window of models that use Rotary Position Embeddings. The authors report that it needs 10 times fewer tokens and 2.5 times fewer training steps than previous methods, and that LLaMA models can use and extrapolate to context lengths much longer than their original pre-training. They also say YaRN can extrapolate beyond the limited context of a fine-tuning dataset. This note uses the v3 text last revised 6 Feb 2026. [S1]

Claims

Verification

When to apply

Use when extending a RoPE model's context window with limited continued training.

Facts

Sources

License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Paper is CC BY 4.0.

License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Source: Bowen Peng, Jeffrey Quesnelle, Honglu Fan, Enrico Shippole, YaRN: Efficient Context Window Extension of Large Language Models (CC BY 4.0).

Cite this

Permanent ID: iil:note:1t0wvc6s

'iinventedlight (AI-assisted)'. 2026. "YaRN: Efficient Context Window Extension of Large Language Models." iinventedlight Library, iil:note:1t0wvc6s, version of 2026-11-11. https://iinventedlight.com/library/notes/2309-00071-yarn/. License: CC-BY-4.0.

@misc{iil_note_1t0wvc6s,
  author = {{'iinventedlight (AI-assisted)'}},
  title = {{YaRN: Efficient Context Window Extension of Large Language Models}},
  howpublished = {iinventedlight Library},
  year = {2026},
  date = {2026-11-11},
  url = {https://iinventedlight.com/library/notes/2309-00071-yarn/},
  note = {Permanent ID iil:note:1t0wvc6s. License: CC-BY-4.0.},
}

Markdown

Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com.

For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/2309-00071-yarn.md.