whatmodel.sh / Code Llama 13B Instruct

Code Llama 13B Instruct is an open-weights language model from Meta, released August 2023. Its published size is 13.02B parameters and a 16k-token context window. Licence: llama2.

Catalogue identity notes

Maker repo codellama/CodeLlama-13b-Instruct-hf @7457954: licence tag llama2. 13,016,028,160 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2023-08: month the maker's Hugging Face repo was created (createdAt 2023-08-24). Ollama tags codellama:13b-instruct-q4_K_M, codellama:13b-instruct-q8_0 (sizes as listed on the tags page, observed 2026-09-29).

38.5±0.7#553 of 719 LLMsfrom 14 benchmark results across 5 sources

$ how it compares

The LLMs ranked either side of Code Llama 13B Instruct, out of 828 with a score, then more from Meta.

#modelscorewhereRAMreleased
643Granite 3.0 2B Instruct IBM39±1local~3.2GB2024-10
644Llama 2 70B Chat Meta39±1local~32GB2023-07
645Code Llama 13B Instruct Meta39±1local~9.8GB2023-08
646MistralHermes-CodePro-7B-v1 beowolx39±1local~6.1GB2023-12
647Llama-3-Instruct-8B-SimPO-v0.2 Princeton NLP39±1local~6.6GB2024-07
more from Meta
24Muse Spark 1.3 Meta77±1api $2.00/M2026-09
40Muse Spark 1.2 Meta75±1api $2.00/M2026-08
43Muse Spark 1.1 Meta75±1api $2.00/M2026-07

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▁▁▃▆██▇▆▄▃▁ #379 of 458 · 65% of its score · 6 tests

Beats LFM2.5 8B-A1B, DeepSeek R1 Distill Qwen 7B, Qwen3.5 2B here, though they rank higher overall. Trails Qwen2.5 1.5B Instruct, WizardLM 13B V1.2, Falcon3 3B Instruct here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
HumanEval +148.8% ✎▁█▄▅▇█·▄▇▅▄▄ beats 19/42easy · avg 78%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 37%sharp · at its level · several runs
HumanEvalSynthesize (HumanEvalPack, 6-language average)39.4% ✎▁·▂▁▂▆▅█▄▄▁▂ beats 17/35medium · avg 64%▇▇▇ 8.4%at its level
MBPP lab49.4% ✎▃▃▃█··▃▅··▅▃ beats 5/11easy · avg 73%▇▇ 5.9%at its level
HumanEvalExplain (HumanEvalPack, 6-language average)27.7% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 23/35medium · avg 49%▇▇ 5.0%typical
HumanEvalFix (HumanEvalPack, 6-language average)15.8% ✎▁·▁▁▄██▄█▁▅▅ beats 15/35medium · avg 56%▇▇ 4.6%sharp
Tulu 2: CodexEval pass@1069.2% ✎▃▃▃·▆▃▃█▃▂▂▅ beats 17/25very easy · avg 86%▇ 3.7%sharp · at its level
math▁▂▃▅▆▅▄█▄▁▁▁ #368 of 398 * · 2.5% of its score · 1 test

Beats Yi 34B Chat, Command R (03-2024), Molmo 7B-D (0924) here, though they rank higher overall. Trails Gemma 3 1B, OLMo 2 1B Instruct (0425), Stable Code 3B here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
GSM8K23.0% ✎▆▂▅█▅▅▃▆···▂ beats 6/25easy · avg 73%▇ 2.5%sharp · at its level
other tests6 not in a task · 33% of its score
testresultvs the others in its rundifficultycountswhy
EvoEval (overall)33.8% ✎▂▂▃▄▄█▁▄▅▃▁▃ beats 23/42medium · avg 55%▇▇▇▇▇ 12%at its level
BIG-Bench Hard48.0% ✎▁·····▂█▂▅·▁ beats 7/25easy · avg 77%▇▇▇ 7.2%sharp · at its level
BigCodeBench (Complete)29.7% ✎▂▁▁▄▂▅▇█▆▂▂▂ beats 11/58medium · avg 50%▇▇ 5.0%at its level
BigCodeBench (Instruct)28.2% ✎▃▂·▆▆██▆▅▃▃▃ beats 4/33medium · avg 41%▇▇ 4.7%at its level
MMLU43.3% ✎▁▁▃▃▄█▄▁█··▁ beats 4/25easy · avg 74%▇ 2.6%at its level
Tulu 2: TyDiQA gold passage, 1-shot F137.8% ✎▂··▁▃▂▂▂█▅▁▂ beats 4/25medium · avg 61%▇ 0.8%blunt · at its level

$ where to run it

llama.cpp · recommended

version

  1. Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.
    macOS / Linux
    curl -LsSf https://llama.app/install.sh | sh
    Windows
    irm https://llama.app/install.ps1 | iex

    other ways to install ↗

  2. Run Code Llama 13B Instruct · needs ~7.9 GB · from huggingface.co/TheBloke
    chat in the terminal
    llama cli -hf TheBloke/CodeLlama-13B-Instruct-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf TheBloke/CodeLlama-13B-Instruct-GGUF:Q4_K_M

LM Studio

version

  1. Install LM Studio · Open the app once before using the lms command.

    download it (macOS / Windows / Linux) ↗

  2. Run Code Llama 13B Instruct · needs ~7.9 GB · from huggingface.co/TheBloke

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/TheBloke/CodeLlama-13B-Instruct-GGUF@Q4_K_M -y
  4. Then run lms ls to see its name, and lms chat followed by that name

Ollama

version

  1. Install Ollama

    download it (macOS / Windows) ↗

    Linux
    curl -fsSL https://ollama.com/install.sh | sh
  2. Run Code Llama 13B Instruct · needs ~7.9 GB · from ollama.com
    chat in the terminal
    ollama run codellama:13b-instruct-q4_K_M

MLX (Mac)

  1. Install MLX (Mac) · Apple silicon Macs only, text only.
    with uv
    uv tool install mlx-lm
    or
    pip install mlx-lm
  2. Run Code Llama 13B Instruct · needs ~13.8 GB, Mac only · from huggingface.co/mlx-community
    chat in the terminal
    mlx_lm.chat --model mlx-community/CodeLlama-13b-Instruct-hf-8bit-mlx
  3. Or start an OpenAI-compatible server at http://localhost:8080/v1
    mlx_lm.server --model mlx-community/CodeLlama-13b-Instruct-hf-8bit-mlx

Weights and documentation: huggingface.co/codellama ↗

$ how the score was worked out · Top Leaderboard Ranking = Top… 36%, Code Llama: Open Foundation M… 19%, Granite Code Models: A Family… 18% and 2 more

Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works

$ improve this page

Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.

data updated · sources and licences · json