RoPE Scaling: Code Llama's Context Extension Method

Code Llama's 16K context, and its ability to extrapolate up to 100K tokens, was achieved through advanced RoPE (Rotary Positional Embeddings) scaling, specifically by extending the base period θ from 10,000 to 1,000,000 during fine-tuning.

Sources

Open the full topic