whatmodel.sh / Code Llama 34B (base)

Code Llama 34B (base) is an open-weights language model from Meta, released August 2023. Its published size is 33.74B parameters and a 16k-token context window. Licence: llama2.

Catalogue identity notes

Maker repo codellama/CodeLlama-34b-hf @6008b96: licence tag llama2. 33,743,970,304 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). Pretrained Code Llama; not the Python or Instruct variant. Ollama tags codellama:34b-code-q4_K_M, codellama:34b-code-q8_0 (sizes as listed on the tags page, observed 2026-09-29).

41.4±0.5#551 of 743 LLMsfrom 23 benchmark results across 7 sources

Score within the LMArena (text) comparison set only.

$ how it compares

The LLMs ranked either side of Code Llama 34B (base), out of 897 with a score, then more from Meta.

#modelscorewhereRAMreleased
659Code Llama 34B Instruct Meta42±1local~23GB2023-08
660Starling-LM 7B beta Nexusflow41±1local~6GB2024-03
661Code Llama 34B (base) Meta41±1local~23GB2023-08
662North Micro Vision Instruct (2.4B) Cohere41±2local~3.8GB2026-08
663Vicuna 33B v1.3 LMSYS41±1local~22GB2023-06
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▁▁▁▃▆▇█▆▆▃▃▁ #384 of 474 · 86% of its score · 11 tests

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

testresultvs the others in its rundifficultycountswhy
HumanEval +251.8% ✎▁·▁▁▃▄▆▅█▃▁▁ beats 38/99easy · avg 77%▇▇▇▇▇▇▇▇▇▇▇▇▇▇▇ 37%sharp · at its level · several runs
HumanEval+43.9% ✎▁·▁▁▁▃▄▄▄█▃▁ beats 35/99easy · avg 71%▇▇▇▇▇▇▇ 17%sharp · at its level
MBPP +248.6% ✎█·▅▃▃▃▅▃▃▅·▅ beats 13/15easy · avg 71%▇▇▇▇ 8.9%at its level · several runs
HumanEvalSynthesize (HumanEvalPack, 6-language average)43.3% ✎▁·▂▁▂▆▅█▄▄▁▂ beats 23/35medium · avg 62%▇▇ 4.6%at its level
MBPP+56.3% ✎▁···▁▁▂▅▇█▆▂ beats 32/75easy · avg 66%▇ 3.3%at its level
CRUXEval-I lab +147.2% ✎▁··▁▅▂█▇▁··▁ beats 20/22medium · avg 57%▇ 3.0%at its level · several runs
HumanEvalExplain (HumanEvalPack, 6-language average)17.1% ✎▄▇█▃▄▇▄▁▇▃·▁ beats 13/35medium · avg 46%▇ 2.8%at its level
DS-100034.3% ✎▄▄·▄██▄█·█·▄ beats 11/12medium · avg 49%▇ 2.8%at its level
3 more tests
testresultvs the others in its rundifficultycountswhy
HumanEvalFix (HumanEvalPack, 6-language average)19.7% ✎▁·▁▁▄██▄█▁▅▅ beats 19/35medium · avg 52%▇ 2.7%sharp · at its level
CRUXEval-O lab +142.4% ✎▁·▂▃▁█▁▂···▁ beats 15/22medium · avg 54%▇ 2.6%blunt · at its level · several runs
Tulu 2: CodexEval pass@1077.6% ✎▃▃▃·▆▃▃█▃▃▂▅ beats 21/25easy · avg 84%▇ 1.7%sharp · at its level
math▁▁▃▅█▆▅█▄▁▁▁ #287 of 440 * · 4.8% of its score · 1 test

Beats GPT-4 Turbo (2024-04-09), Molmo 2 8B, Llama 3.3 70B Instruct here, though they rank higher overall. Trails DeepSeek R1 Distill Qwen 1.5B, Gemma 7B (base), Mistral 7B v0.1 (base) here, though they rank lower overall.

testresultvs the others in its rundifficultycountswhy
GSM8K +135.0% ✎▆▂▅█▅▅▃▆···▂ beats 12/25easy · avg 76%▇▇ 4.8%sharp · at its level · several runs
other tests4 not in a task · 8.9% of its score
testresultvs the others in its rundifficultycountswhy
BIG-Bench Hard57.0% ✎▁·····▂█▃▅·▁ beats 16/25easy · avg 74%▇▇ 3.9%sharp · at its level
BigCodeBench (Complete)37.1% ✎▂▁▁▄▂▅▇█▆▂▂▂ beats 19/58medium · avg 49%▇ 2.9%at its level
MMLU47.4% ✎▁▁▃▃▄█▄▁█··▁ beats 8/25medium · avg 73%▇ 1.7%at its level
Tulu 2: TyDiQA gold passage, 1-shot F157.1% ✎▂··▁▃▂▂▂█▅▁▂ beats 22/25medium · avg 59%▇ 0.4%blunt · 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 34B (base) · needs 22.7 GB memory, 20.2 GB download · from huggingface.co/TheBloke
    chat in the terminal
    llama cli -hf TheBloke/CodeLlama-34B-GGUF:Q4_K_M
  3. Or start a local server and open the address it prints (http://localhost:9931)
    llama serve -hf TheBloke/CodeLlama-34B-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 34B (base) · needs 22.7 GB memory, 20.2 GB download · from huggingface.co/TheBloke

    open in LM Studio ↗

  3. Or download it in the terminal
    lms get https://huggingface.co/TheBloke/CodeLlama-34B-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 34B (base) · needs 22.7 GB memory, 20.2 GB download · from ollama.com
    chat in the terminal
    ollama run codellama:34b-code-q4_K_M

Model repository and documentation: huggingface.co/codellama ↗

$ how the score was worked out · EvalPlus / EvalPerf published… 42%, StarCoder 2 and The Stack v2:… 17%, Granite Code Models: A Family… 16% and 4 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