whatmodel.sh / Code Llama 34B Instruct
Code Llama 34B Instruct
↗ share
+ contribute
Code Llama 34B Instruct is an open-weights language model from Meta, released August 2023. Its published size is 33.7B parameters and a 16k-token context window. Licence: llama2.
Catalogue identity notes
Arena entry 'codellama-34b-instruct' (text). LMArena's leaderboard table (arena-leaderboard space @6f2eeeb) labels 'codellama-34b-instruct' as 'CodeLlama-34B-instruct' (Meta, Llama 2 Community), linking https://huggingface.co/codellama/CodeLlama-34b-Instruct-hf. Maker repo codellama/CodeLlama-34b-Instruct-hf @d4c1c47: 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).
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Code Llama 34B Instruct, out of 897 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 657 | 42±1 | local | |||
| 658 | 42±1 | local | |||
| 659 | 42±1 | local | |||
| 660 | 41±1 | local | |||
| 661 | 41±1 | local | |||
| more from Meta | |||||
| 10 | 81±1 | Muse Code only | |||
| 20 | 78±1 | api $8.00/M | |||
| 31 | 76±1 | api $0.20/M | |||
$ what it's good at
coding▁▁▁▃▆▇█▆▆▃▃▁ #374 of 474 · 57% of its score · 6 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, Code Tulu 2 13B, Phi-3-mini-128k-instruct (Apr 2024) here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +1 | 51.8% ✎ | ▁█▄▅▇█·▄▇▅▄▄ beats 23/42 | 32% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 41.3% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 19/35 | 7.6% |
| MBPP lab | 57.0% ✎ | ▃▃▃█··▃▅··▅▃ beats 8/11 | 5.4% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 30.3% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 26/35 | 4.7% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 28.2% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 23/35 | 4.4% |
| Tulu 2: CodexEval pass@10 | 76.5% ✎ | ▃▃▃·▆▃▃█▃▂▂▅ beats 20/25 | 2.8% |
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #370 of 405 * · 8.5% of its score · 2 tests
Beats Code Llama 70B Instruct, Gemma 4 E2B here, though they rank higher overall. Trails Gemma 3 270M IT, SmolLM2 360M Instruct, Granite 4.0 350M here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| LMArena (text) | 1137.0 ✎ | ▁▁▁▃▃▂▃▆▆▇█▃ beats 29/388 | 4.3% |
| Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024) | 1070.0 ✎ | ▂▁▂▁▃▇█▆▇▄▂▂ beats 33/95 | 4.2% |
math▁▁▃▅█▆▅█▄▁▁▁ #306 of 440 * · 3.4% of its score · 1 test
Beats Molmo 2 8B, DeepSeek-Coder-V2 Instruct (0724), GPT-4 (0613) 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.
other tests6 not in a task · 31% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 33.3% ✎ | ▂▂▃▄▄█▁▄▅▃▁▃ beats 21/42 | 12% |
| BIG-Bench Hard | 59.2% ✎ | ▁·····▂█▃▅·▁ beats 17/25 | 6.4% |
| BigCodeBench (Complete) | 35.1% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 15/58 | 4.7% |
| BigCodeBench (Instruct) | 28.9% ✎ | ▃▂·▆▆██▆▅▃▃▃ beats 5/33 | 4.5% |
| MMLU | 50.9% ✎ | ▁▁▃▃▄█▄▁█··▁ beats 11/25 | 2.8% |
| Tulu 2: TyDiQA gold passage, 1-shot F1 | 55.1% ✎ | ▂··▁▃▂▂▂█▅▁▂ beats 19/25 | 0.7% |
$ 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
- 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 Instruct · needs 22.7 GB memory, 20.2 GB download · from huggingface.co/mradermacherchat in the terminal
llama cli -hf mradermacher/CodeLlama-34b-Instruct-hf-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf mradermacher/CodeLlama-34b-Instruct-hf-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Code Llama 34B Instruct · needs 22.7 GB memory, 20.2 GB download · from huggingface.co/mradermacher
- Or download it in the terminal
lms get https://huggingface.co/mradermacher/CodeLlama-34b-Instruct-hf-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 Instruct · needs 22.7 GB memory, 20.2 GB download · from ollama.comchat in the terminal
ollama run codellama:34b-instruct-q4_K_M
MLX (Mac)
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Code Llama 34B Instruct · needs 25.2 GB memory, 22.6 GB download, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/CodeLlama-34b-Instruct-hf-4bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/CodeLlama-34b-Instruct-hf-4bit
Model repository and documentation: huggingface.co/codellama ↗
$ how the score was worked out · Top Leaderboard Ranking = Top… 32%, Code Llama: Open Foundation M… 17%, Granite Code Models: A Family… 17% 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 |
|---|---|---|
| 2 | 32% | |
| 2 | 17% | |
| 3 | 17% | |
| 5 | 16% | |
| 2 | 9% | |
| 1 | 4% | |
| 1 | 4% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 41.5 |
$ 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