CodeLlama

Meta's code-specialized model for development workflows

Last updated: May 22, 2026

Meta Meta
πŸ“… Released: August 2023 (updated 2024) πŸ†“ Open Weights CODE SPECIALIST

Overview

CodeLlama is Meta's code-specialized model built on the Llama architecture. Trained on code-specific datasets, it excels at code generation, debugging, refactoring, and documentation across multiple programming languages.

Sizes
7B / 13B / 34B / 70B
Context Window
16K-100K tokens
Languages
Python, Java, C++, JS, more
License
Llama Community

βœ…Strengths

  • βœ“Code-specialized training for better accuracy
  • βœ“Multiple sizes for different hardware
  • βœ“Supports code infilling (complete partial code)
  • βœ“Open weights - run locally in VS Code, Cursor
  • βœ“Strong multilingual code support

⚠️Weaknesses

  • βœ—Less capable than general models for non-code tasks
  • βœ—Older training data than newer Llama versions
  • βœ—May generate outdated code patterns
  • βœ—Requires code-specific prompting

Best Use Cases

πŸ’» Code Completion

IDE autocomplete

πŸ› Debugging

Error diagnosis

πŸ”„ Refactoring

Code improvement

πŸ“ Documentation

Comments, docstrings

πŸ§ͺ Test Generation

Unit tests, fixtures

πŸŽ“ Learning

Code explanations

Benchmarks

HumanEval (34B)48.8%
HumanEval (70B)57.3%
MBPP (34B)57.0%

Other Meta Models

πŸš€ Try CodeLlama β†’