whatmodel.sh / Code Llama 13B Python

Code Llama 13B Python 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-Python-hf @bced388: licence tag llama2. 13,015,864,320 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). Python-specialised Code Llama; not instruction-tuned. Ollama tags codellama:13b-python-q4_K_M, codellama:13b-python-q8_0 (sizes as listed on the tags page, observed 2026-09-29).

39.8±0.9#581 of 743 LLMsfrom 6 benchmark results across 3 sources

Score within the LMArena (text) comparison set only.

$ how it compares

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

#modelscorewhereRAMreleased
690CodeGemma 7B (v1.0) Google40±1local~7.1GB2024-03
691Apertus 8B Instruct (2509) Swiss AI40±3local~6.3GB2025-08
692Code Llama 13B Python Meta40±1local~9.8GB2023-08
693DeepSeek-V2 Lite Chat (16B-A2.4B) DeepSeek40±1local~11GB2024-05
694Granite 3B Code Instruct (2K) IBM40±1local~3.7GB2024-04
more from Meta
10Muse Wonder Full Meta81±1Muse Code only2026-10
20Muse Wonder Meta78±1api $8.00/M2026-10
31Muse Ember Meta76±1api $0.20/M2026-11

see all LLMs · find the ones that fit your machine

$ what it's good at

coding▁▁▁▃▆▇█▆▆▃▃▁ #403 of 474 · 78% of its score · 4 tests

Beats DeepSeek R1 Distill Qwen 7B, Qwen3.5 2B, DeepSeek R1 Distill Llama 8B 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 +142.7% ✎▁█▄▅▇█·▄▇▅▄▄ beats 14/42easy · avg 75%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 62%sharp · at its level · several runs
MBPP lab49.0% ✎▃▃▃█··▃▅··▅▃ beats 4/11easy · avg 71%▇▇▇▇ 11%at its level
CRUXEval-I lab39.7% ✎▁··▁▅▂█▇▁··▁ beats 11/22medium · avg 52%▇ 3.1%at its level
CRUXEval-O lab39.8% ✎▁·▂▃▁█▁▂···▁ beats 10/22medium · avg 51%▇ 3.0%blunt · at its level
other tests1 not in a task · 21% of its score
testresultvs the others in its rundifficultycountswhy
EvoEval (overall)29.4% ✎▂▂▃▄▄█▁▄▅▃▁▃ beats 15/42medium · avg 52%▇▇▇▇▇▇▇▇ 21%at its level

$ where to run it

Memory is what a version takes in GPU memory (or a Mac's unified memory) with an 8k-token conversation. With less, it runs partly from system RAM, more slowly. Enter your machine to see what runs at full speed.

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 Python · needs 9.8 GB memory, 7.87 GB download · from huggingface.co/mradermacher
    chat in the terminal
    llama cli -hf mradermacher/CodeLlama-13b-Python-hf-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf mradermacher/CodeLlama-13b-Python-hf-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 Python · needs 9.8 GB memory, 7.87 GB download · from huggingface.co/mradermacher

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/mradermacher/CodeLlama-13b-Python-hf-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 Python · needs 9.8 GB memory, 7.87 GB download · from ollama.com
    chat in the terminal
    ollama run codellama:13b-python-q4_K_M

Model repository and documentation: huggingface.co/codellama ↗

$ how the score was worked out · Top Leaderboard Ranking = Top… 61%, Code Llama: Open Foundation M… 32%, CRUXEval published evaluation… 6%

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

sourceresultsshare of the scorelicence
Top Leaderboard Ranking = Top Coding Proficiency, Always? EvoEval: Evolving Coding Benchmarks via LLM — authors' own runs2CC BY 4.0
Code Llama: Open Foundation Models for Code — authors' own runs · maker-reported2CC BY 4.0
CRUXEval published evaluation results (authors' generations and scores) · maker-reported2MIT
prior · pull toward the middle
weighted average= 39.8

$ 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