AI engineering glossary · Transformers LLM architecture

What is yaRN?

YaRN (also called Yet another RoPE extensioN): A method for extending the context window of models using rotary position embeddings. It rescales different frequency components by different amounts and adjusts attention temperature, so a model can handle much longer inputs with relatively little extra training compared with plain position interpolation.

Level: advancedTopic: Transformers LLM architecture

YaRN: an example

A team applies YaRN to an open model trained on 8K tokens and fine-tunes briefly to serve 64K-token contracts.

Related terms

More Transformers LLM architecture terms

Where you learn it

YaRN is part of the AI Engineering Program, which teaches it with notes, a hands-on lab and an exam. The first lesson is free.

Before you go

Take the cheat sheet with you

One free PDF: the key AI-engineering terms, formulas and Python idioms. No spam; unsubscribe any time.