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%