CodeLlama 13B

Released
2023-08-24
Last refreshed
2026-10-07
Status
Researched 148d ago
Open weightsCommercial use: restrictedClassificationJSON / Tool use
AI at Meta releases · 11 in the last 12 monthsChangelog →
Specifications
Released
2023-08-24
Context
100K
Parameters
13B
Architecture
Decoder Only
Knowledge cutoff
2022-09
Specialization
general
Openness
Open weights
License
Llama 2 CommunityRestricted
Weights
Available
Code
Unknown
Training
Fine-tuned
Created by

Large-scale open-source AI for social technologies.

Menlo Park, California, United States
Founded 2013
Website
Pricing
Output / 1M
$0.200
Input / 1M
$0.200

Cheapest of 4 routes · Fireworks AI

About

CodeLlama 13B is a state-of-the-art generative text model developed by Meta, specifically designed for code synthesis and understanding tasks. Released on August 24, 2023, this 13-billion-parameter model excels in general code generation and comprehension, making it suitable for a wide range of programming tasks, including code completion, infilling, and instruction following. It utilizes an optimized transformer architecture and has been trained on a diverse dataset similar to Llama 2, ensuring robust understanding of programming languages and coding practices.

Overview

CodeLlama 13B is Meta's 13-billion-parameter general code generation model, released August 24, 2023. It is produced by further training Llama 2 13B on code-heavy data and supports code completion, fill-in-the-middle (FIM) infilling, and code understanding across multiple programming languages. The listing carries a 100K-token context, so it should be read as a long-context hosted listing for the 13B base model rather than a guarantee that every CodeLlama 13B endpoint exposes the same window.

At 13 billion parameters, CodeLlama 13B offers a meaningful capability improvement over the 7B variant: stronger handling of complex multi-function code, less common programming languages, and more accurate code completions for longer functions. The model covers Python, C, C++, Java, PHP, TypeScript, C#, and Bash, among others. The 100K context row is most relevant when a provider exposes extended code context for larger files, repository excerpts, or long autocomplete histories; verify the selected provider's cap before designing around full-window prompts.

CodeLlama 13B is available as open weights on Hugging Face (meta-llama/CodeLlama-13b-hf) under Meta's Code Llama Community License, and is hosted on Together AI, Fireworks AI, Azure AI Foundry, and Replicate. For Python specialization, the CodeLlama 13B Python variant is preferred. The 34B and 70B variants offer higher accuracy at greater compute cost.

Providers(4)

Compare all 4

Compare API pricing across 4 tracked provider routes for input and output tokens, batch, and cached reads when available.

ProviderInput / 1MOutput / 1MRoute
Fireworks AI$0.200$0.200
Provisioned
Together AI$0.300$0.300
Serverless
Replicate API$0.100$0.500
Serverless
Microsoft Foundry$0.810$0.940
Provisioned

Available via routers & gateways(6)

Capabilities

Structured Outputs

Benchmark peer barsfor Classification

No task-mapped benchmark peers are available for this model yet.

Migration checks

No linked migration route is available for this model yet.