Order the three steps of a position-interpolation fine-tune that takes RoPE from 4k to 16k.
Same topic, related formats. Practice these next.
Same topic, related formats. Practice these next.
Rescale positions first (cheap, no training), then fine-tune at long context (mandatory adaptation), then evaluate, then optionally swap linear scaling for YaRN for better short-context quality.
Picture stretching a song to play in slow motion so it lasts four times longer. First you change the playback speed (cheap, instant). The instruments now sound weird because they were not designed for that tempo, so you give the band a brief practice session to adapt their playing (the fine-tune). Then you record a test concert to check it sounds good. Finally, if some instruments still sound off, you could swap the uniform slowdown for a smarter scheme that slows down only certain pitches, that is YaRN.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example. Click to expand.
Everything you need to truly understand this topic: intuition, mechanics, step by step explanation, code, formulas, and worked example.
Everything important, quickly.
Order the four steps (rescale, fine-tune, evaluate, optionally YaRN), explain each step's role, justify the order dependencies, and mention YaRN as the refinement for the short-context cost of uniform scaling.
Real products, models, and research that use this idea.
What an interviewer would ask next. Try answering before peeking at the approach.
Red flags and common mistakes that signal junior thinking. Click to expand.
Fine-tuning BEFORE rescaling positions. The rescale is the cheap algebraic prerequisite; the fine-tune is what adapts the model to the rescaled spectrum.
The night-before-the-interview bullets. Scan these on the way to the call.
Primary sources. Skim if you want the original framing.