Code Llama 16K Context: Benchmark Performance Edge

Code Llama 34B achieved 53.7% on HumanEval and 56.2% on MBPP, while the 70B-Instruct variant scored 67.8% on HumanEval, outperforming many other open models and even Llama 2 70B with significantly fewer parameters.

The top 3

  1. Code Llama's Leading Scores on HumanEval & MBPP: Code Llama 34B achieved a 53.7% score on HumanEval and 56.2% on MBPP, outperforming other open-source code-specific LLMs. The models generally reach up to 67% on HumanEval and 65% on MBPP, establishing state-of-the-art performance among open models in these key coding benchmarks.
  2. 16K Context: Enhanced Debugging & Codebase Reasoning: Code Llama's 16K context window, capable of stable generations up to 100,000 tokens, significantly enhances practical coding by enabling comprehensive codebase analysis within single prompts. This extended context is crucial for debugging larger codebases and generating more relevant code by providing broader context.
  3. RoPE Scaling: The Key to Code Llama's 16K Context: Code Llama achieved its significant 16K context window, a substantial increase from Llama 2's base 4K context, through advanced RoPE (Rotary Position Embeddings) scaling techniques. This enabled powerful extrapolation capabilities, allowing the model to effectively handle inputs up to 100,000 tokens.

Sources

Open the full topic