NTK-aware scaling enhances RoPE by differentially adjusting frequencies, scaling high frequencies less and low frequencies more, which significantly reduces performance degradation and allows LLaMA models to extend context up to 4096 tokens effectively, often without needing extensive fine-tuning.