YaRN (Yet another RoPE extensioN) extends context windows by employing a piecewise frequency-scaling scheme for RoPE and attention-temperature augmentation, which helps maintain both local detail and long-range dependencies, yielding significant gains in perplexity and retrieval accuracy with fewer fine-tuning steps.