Summary

Code Llama is Meta's family of open-weight large language models specialised for programming, built by further training Llama 2 on code and announced in August 2023.

Key Features

Generates code from natural-language descriptions
Code completion, including fill-in-the-middle in existing files
Debugging assistance and documentation generation
Supports Python, C++, Java, PHP, TypeScript and JavaScript, C# and Bash
Three sizes: 7B, 13B and 34B parameters, plus a 70B variant
Three flavours: base Code Llama, Python-specialised and Instruct
Trained on 500 billion tokens of code and code-related text
Handles input contexts up to around 100K tokens
Open weights under the Llama 2 Community License for research and commercial use
7B model runs on a single GPU for real-time completion

About Code Llama


It generates code from natural-language prompts, completes code — including filling in the middle of an existing file in the 7B and 13B models — and helps with debugging and documentation across popular languages such as Python, C++, Java, PHP, TypeScript and JavaScript, C# and Bash. Each of the 7B, 13B and 34B sizes comes in a base, a Python-specialised and an instruction-tuned flavour, with a 70B variant added in January 2024, and the models were trained on 500 billion tokens of code with contexts up to around 100K tokens.


Released as open weights under the Llama 2 Community License for research and commercial use, Code Llama suits developers and teams who want to run a code model on their own machines. Note: it is now a legacy line — Meta archived the official inference-code repository in July 2025 and the line has effectively been succeeded by code-capable Llama 3 and 3.1 models, though the weights remain downloadable.

FAQs about Code Llama

Get more likes & reach the top of search results by adding this button on your site!

Embed button preview - Light theme
Embed button preview - Dark theme
TurboType Banner

Subscribe to the AI Search Newsletter

Get top updates in AI to your inbox every weekend. It's free!