Skip to main content
ToolPotion
AI Advisor
Submit a Tool (Free)

Code Llama

LLMs#21AI Models & LLMsOpen source · Web

Code Llama is Meta's family of large language models specialized for code, built by further training Llama 2 on code-heavy data. It generates code and natural language about code, completes and infills code, and follows coding instructions in a chat format, with dedicated variants for general code, Python and instruction-following.

Visit Website
Share
Code Llama screenshot
Code Llama screenshot

Code Llama is Meta's family of large language models specialized for code, created by taking Llama 2 and training it further on code-specific datasets. It is designed for general code synthesis and understanding: generating code and natural-language explanations of code from prompts, completing partial code, and infilling code based on surrounding context.

Read More

The family comes in three parameter sizes (7B, 13B and 34B, with a 70B size added later) and three variants at each size: the base Code Llama model for general code synthesis and understanding, Code Llama - Python, tuned specifically for Python, and Code Llama - Instruct, tuned for instruction-following and safer use in code-assistant applications. The models are auto-regressive transformers that take text input and produce text output, trained by Meta between January and July 2023 on a fixed, offline dataset; they are static releases rather than continuously updated ones. Documented model capabilities include code completion, infilling, instruction and chat interaction, and Python specialization, with language coverage including Python, C++, Java, PHP, TypeScript (JavaScript), C# and Bash.

This Hugging Face organization packages the models in the Transformers format for easy loading with the transformers and accelerate libraries; Meta's own official repository is hosted separately under its Meta Llama organization. Before downloading, the models can be tried through hosted demos: the Code Llama Playground for the base 13B model, Code Llama Chat for the 13B instruction-tuned model, and a 34B instruction-tuned version available through Hugging Chat.

Code Llama and its variants are licensed under Meta's custom commercial license and are intended for commercial and research use in English and the supported programming languages; use outside that scope, or in violation of Meta's acceptable use policy, is out of scope for the license.

Code Llama is aimed at developers and researchers building code generation, completion or coding-assistant applications who want an open, self-hostable alternative to a closed code-generation API.

  • CategoryAI Models & LLMs
  • Pricing ModelOpen source
  • DeploymentCloud, Self-hosted
  • PlatformsWeb

  • Code generation and natural-language explanation of code from prompts

  • Code completion and infilling based on surrounding context

  • Instruction-following Instruct variants for chat-style coding assistance

  • Python-specialized variants tuned specifically for that language

  • Available in 7B, 13B, 34B and 70B parameter sizes

  • Covers Python, C++, Java, PHP, TypeScript/JavaScript, C#, Bash and more

  • Distributed as Hugging Face Transformers-format checkpoints for each size and variant

  • Hosted demos (Playground, Chat, Hugging Chat) for trying models before downloading

  1. Pick a size and variant: Choose a parameter size (7B, 13B, 34B or 70B) and variant (base, Python or Instruct) for your task.

  2. Install the library: Install the Hugging Face transformers and accelerate packages.

  3. Load the model: Download the chosen codellama/* checkpoint from Hugging Face.

  4. Try a demo first: Test the Code Llama Playground, Code Llama Chat or Hugging Chat demo before deploying your own.

  5. Prompt the model: Ask for code generation, completion, infilling or an explanation in natural language.

  6. Review the license: Check Meta's commercial license and acceptable use policy before production use.

  • Code generation
  • Code completion and infilling
  • Coding assistant chat
  • Python-specific development

Popular AI Tools Like Code Llama

StarCoder

AI GitHub Repos

StarCoder is a large language model trained on source code and natural language. It excels at code generation, completion, and text generation tasks. This repository provides…

AI Models & LLMs
View Tool

AI GitHub Repos

Large language model trained on source code and natural language. It excels at code generation, completion, and text generation tasks. This repository provides…StarCoder is a large language model trained on source code and natural language. It excels at code generation, completion, and text generation tasks. This repository provides…

AI Models & LLMs
See the Top 250 AI GitHub Repos

DeepSeek is an AI research company dedicated to developing general artificial intelligence. It offers open-source frontier LLMs like DeepSeek-V4, DeepSeek-R1, and DeepSeek-Coder,…

AI Models & LLMs

Ranked #2 in LLMs

View Tool

AI research company dedicated to developing general artificial intelligence. It offers open-source frontier LLMs like DeepSeek-V4, DeepSeek-R1, and DeepSeek-Coder,…DeepSeek is an AI research company dedicated to developing general artificial intelligence. It offers open-source frontier LLMs like DeepSeek-V4, DeepSeek-R1, and DeepSeek-Coder,…

FeaturedAI Models & LLMs
Ranked #2 in LLMs

Falcon3-10B-Instruct is a state-of-the-art language model designed for reasoning, language understanding, and instruction following tasks. It supports multiple languages and…

AI Models & LLMs

Ranked #47 in LLMs

View Tool

State-of-the-art language model designed for reasoning, language understanding, and instruction following tasks. It supports multiple languages and…Falcon3-10B-Instruct is a state-of-the-art language model designed for reasoning, language understanding, and instruction following tasks. It supports multiple languages and…

AI Models & LLMs
Ranked #47 in LLMs

Llama-3.2-3B-Instruct is an advanced AI model designed for multilingual text and code generation. It offers robust capabilities for various applications, emphasizing safety and…

AI Models & LLMs
View Tool

Advanced AI model designed for multilingual text and code generation. It offers robust capabilities for various applications, emphasizing safety and…Llama-3.2-3B-Instruct is an advanced AI model designed for multilingual text and code generation. It offers robust capabilities for various applications, emphasizing safety and…

AI Models & LLMs
See the Top 50 LLMs

Mixtral-8x22B-Instruct-v0.1 is a large language model fine-tuned for instructional tasks. It supports function calling and integrates with Hugging Face transformers, offering…

AI Models & LLMs

Ranked #49 in LLMs

View Tool

Large language model fine-tuned for instructional tasks. It supports function calling and integrates with Hugging Face transformers, offering…Mixtral-8x22B-Instruct-v0.1 is a large language model fine-tuned for instructional tasks. It supports function calling and integrates with Hugging Face transformers, offering…

AI Models & LLMs
Ranked #49 in LLMs

Qwen3-235B-A22B-Instruct-2507 is an advanced AI model designed for improved instruction following, logical reasoning, and multilingual capabilities. It excels in long-context…

AI Models & LLMs
View Tool

Advanced AI model designed for improved instruction following, logical reasoning, and multilingual capabilities. It excels in long-context…Qwen3-235B-A22B-Instruct-2507 is an advanced AI model designed for improved instruction following, logical reasoning, and multilingual capabilities. It excels in long-context…

AI Models & LLMs
See the Top 50 LLMs

Qwen3-Coder-480B-A35B-Instruct is a powerful AI model designed for agentic coding tasks. It supports long-context capabilities and excels in tool calling, making it suitable for…

AI Models & LLMs
View Tool

Powerful AI model designed for agentic coding tasks. It supports long-context capabilities and excels in tool calling, making it suitable for…Qwen3-Coder-480B-A35B-Instruct is a powerful AI model designed for agentic coding tasks. It supports long-context capabilities and excels in tool calling, making it suitable for…

AI Models & LLMs
See the Top 5 AI Models

Mistral-Large-Instruct-2411 is a dense Large Language Model with 123B parameters, offering advanced reasoning, coding, and multilingual capabilities. It supports long contexts,…

AI Models & LLMs
View Tool

Dense Large Language Model with 123B parameters, offering advanced reasoning, coding, and multilingual capabilities. It supports long contexts,…Mistral-Large-Instruct-2411 is a dense Large Language Model with 123B parameters, offering advanced reasoning, coding, and multilingual capabilities. It supports long contexts,…

AI Models & LLMs
See the Top 5 AI Models
1 of 8