whatmodel.sh / Code Llama 34B (base)
Code Llama 34B (base)
↗ share
+ contribute
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).
$ how it compares
The LLMs ranked either side of Code Llama 34B (base), out of 828 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 623 | 40±2 | local | |||
| 624 | 40±1 | local | |||
| 625 | 40±1 | local | |||
| 626 | 40±1 | local | |||
| 627 | 40±2 | local | |||
| more from Meta | |||||
| 24 | 77±1 | api $2.00/M | |||
| 40 | 75±1 | api $2.00/M | |||
| 43 | 75±1 | api $2.00/M | |||
$ what it's good at
coding▁▁▁▃▆██▇▆▄▃▁ #371 of 458 · 88% of its score · 11 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, Granite 3.0 2B Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +2 | 51.8% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 38/99 | 39% |
| HumanEval+ | 43.9% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 35/99 | 17% |
| MBPP +2 | 48.6% ✎ | █·▅▃▃▃▅▃▃▅·▅ beats 13/15 | 8.4% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 43.3% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 23/35 | 4.5% |
| MBPP+ | 56.3% ✎ | ▁···▁▁▂▅▇█▆▂ beats 32/75 | 3.1% |
| CRUXEval-I lab +1 | 47.2% ✎ | ▁··▁▅▂█▇▁··▁ beats 20/22 | 3.0% |
| DS-1000 | 34.3% ✎ | ▄▄·▄██▄█·█·▄ beats 11/12 | 2.8% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 17.1% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 13/35 | 2.8% |
3 more tests
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEvalFix (HumanEvalPack, 6-language average) | 19.7% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 19/35 | 2.7% |
| CRUXEval-O lab +1 | 42.4% ✎ | ▁·▂▃▁█▁▂···▁ beats 15/22 | 2.5% |
| Tulu 2: CodexEval pass@10 | 77.6% ✎ | ▃▃▃·▆▃▃█▃▃▂▅ beats 21/25 | 1.9% |
math▁▂▃▅▆▅▄█▄▁▁▁ #329 of 398 * · 3.2% of its score · 1 test
Beats GPT-3.5 Turbo (0125), Qwen2-VL 7B Instruct, DBRX Instruct here, though they rank higher overall. Trails Qwen3 0.6B, Gemma 7B (base), DeepSeek R1 Distill Qwen 1.5B here, though they rank lower overall.
other tests4 not in a task · 8.6% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BIG-Bench Hard | 57.0% ✎ | ▁·····▂█▃▅·▁ beats 16/25 | 4.0% |
| BigCodeBench (Complete) | 37.1% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 19/58 | 2.7% |
| MMLU | 47.4% ✎ | ▁▁▃▃▄█▄▁█··▁ beats 8/25 | 1.4% |
| Tulu 2: TyDiQA gold passage, 1-shot F1 | 57.1% ✎ | ▂··▁▃▂▂▂█▅▁▂ beats 22/25 | 0.4% |
$ where to run it
llama.cpp · recommended
version
- 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 | shWindowsirm https://llama.app/install.ps1 | iex - Run Code Llama 34B (base) · needs ~20.2 GB · from huggingface.co/TheBlokechat in the terminal
llama cli -hf TheBloke/CodeLlama-34B-GGUF:Q4_K_M - 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
- Install LM Studio · Open the app once before using the lms command.
- Run Code Llama 34B (base) · needs ~20.2 GB · from huggingface.co/TheBloke
- Or download it in the terminal
lms get https://huggingface.co/TheBloke/CodeLlama-34B-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Code Llama 34B (base) · needs ~20 GB · from ollama.comchat in the terminal
ollama run codellama:34b-code-q4_K_M
Weights and documentation: huggingface.co/codellama ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 44%, Granite Code Models: A Family… 16%, StarCoder 2 and The Stack v2:… 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
| source | results | share of the score |
|---|---|---|
| 3 | 44% | |
| 6 | 16% | |
| 4 | 16% | |
| 2 | 10% | |
| 5 | 9% | |
| 1 | 3% | |
| 2 | 2% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 39.9 |
$ 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