[whatmodel.sh](../../README.md) / Code Llama 34B Python # Code Llama 34B Python Meta · released 2023-08 · 33.74B params · llama2 **score 42.6** ±0.9 · #523 of 732 · from 6 benchmark results across 3 sources Score within the [LMArena (text)](https://whatmodel.sh/?set=lmarena-text&score=set) comparison set only. ## What it's good at ● marks Code Llama 34B Python among every model on that task or test, worst to best.
task    vs the others         rank  counts  tests
coding  ▁▁▁▃▅●█▇▅▄▃▁   #363 of 469     77%      4
coding · #363 of 469 · 77% of its score Beats [LFM2.5 8B-A1B](lfm2-5-8b-a1b.md), [Qwen3-VL 2B Thinking](qwen3-vl-2b-thinking.md), [DeepSeek R1 Distill Qwen 7B](deepseek-r1-distill-qwen-7b.md) here, though they rank higher overall. Trails [Code Tulu 2 13B](code-tulu-2-13b.md), [Phi-3-mini-128k-instruct (Apr 2024)](phi-3-mini-128k-instruct.md) here, though they rank lower overall.
test                result  vs the others in its run  difficulty        counts  why
HumanEval            52.4%  ▁█▄▅▇●·▄▇▅▄▄ beats 24/42  easy · avg 75%       61%  sharp · at its level · several runs
MBPP (maker)         56.2%  ▃▃▃█··▃●··▅▃ beats 7/11   easy · avg 71%       10%  at its level
CRUXEval-I (maker)   43.9%  ▁··▁▅▂█●▁··▁ beats 16/22  medium · avg 52%    3.1%  at its level
CRUXEval-O (maker)   41.4%  ▁·▂▃▁●▁▂···▁ beats 14/22  medium · avg 51%    3.0%  blunt · at its level
other tests (1)
test               result  vs the others in its run  difficulty        counts  why
EvoEval (overall)   32.2%  ▂▂▃▄▄●▁▄▅▃▁▃ beats 18/42  medium · avg 52%     23%  at its level
## How the score was worked out Each result implies a score on its own, after adjusting for how hard that test is and who ran it. The model's 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 is added up by who ran the tests. [Method](../method.md)
source                                    results  share of the score
Top Leaderboard Ranking = Top Coding Pr…        2   62% ▇▇▇▇▇▇▇
Code Llama: Open Foundation Models for …        2   32% ▇▇▇▇
CRUXEval published evaluation results (…        2    6% ▇
prior: pull toward the middle                        0% ▇
weighted average                                   = 42.6
Licences: Top Leaderboard Ranking = Top Coding Proficiency ([CC BY 4.0](../../licenses/paper-2403.19114v1-CC-BY-4.0.txt)) · Code Llama: Open Foundation Models for Code ([CC BY 4.0](../../licenses/paper-2308.12950v3-CC-BY-4.0.txt)) · CRUXEval published evaluation results ([MIT](../../licenses/cruxeval-published-results-MIT.txt)) ## How to run it ### llama.cpp (recommended) 1. Install llama.cpp. Homebrew and winget installs name the commands llama-cli and llama-server instead. [Other ways to install](https://github.com/ggml-org/llama.cpp/blob/master/docs/install.md) ```sh # macOS / Linux curl -LsSf https://llama.app/install.sh | sh # Windows irm https://llama.app/install.ps1 | iex ``` 2. Run Code Llama 34B Python (Q4_K_M, needs ~20.2 GB, from [huggingface.co/mradermacher](https://huggingface.co/mradermacher/CodeLlama-34b-Python-hf-GGUF/tree/b9685ffe0f91aaf5248b535505a7640169d205a7)) ```sh llama cli -hf mradermacher/CodeLlama-34b-Python-hf-GGUF:Q4_K_M ``` 3. Or start a local server and open the address it prints (http://localhost:9931) ```sh llama serve -hf mradermacher/CodeLlama-34b-Python-hf-GGUF:Q4_K_M ``` Other versions: Q8_0 (~35.9 GB) `llama cli -hf mradermacher/CodeLlama-34b-Python-hf-GGUF:Q8_0` ### LM Studio 1. Install LM Studio. Open the app once before using the lms command. [Download it (macOS / Windows / Linux)](https://lmstudio.ai/download) 2. Run Code Llama 34B Python (Q4_K_M, needs ~20.2 GB, from [huggingface.co/mradermacher](https://huggingface.co/mradermacher/CodeLlama-34b-Python-hf-GGUF/tree/b9685ffe0f91aaf5248b535505a7640169d205a7)) ```sh lms get https://huggingface.co/mradermacher/CodeLlama-34b-Python-hf-GGUF@Q4_K_M -y ``` 3. Then run lms ls to see its name, and lms chat followed by that name Other versions: Q8_0 (~35.9 GB) `lms get https://huggingface.co/mradermacher/CodeLlama-34b-Python-hf-GGUF@Q8_0 -y` ### Ollama 1. Install Ollama. [Download it (macOS / Windows)](https://ollama.com/download) ```sh # Linux curl -fsSL https://ollama.com/install.sh | sh ``` 2. Run Code Llama 34B Python (Q4_K_M, needs ~20 GB, from [ollama.com](https://ollama.com/library/codellama/tags)) ```sh ollama run codellama:34b-python-q4_K_M ``` Other versions: Q8_0 (~36 GB) `ollama run codellama:34b-python-q8_0` Model repository and documentation: [huggingface.co/codellama](https://huggingface.co/codellama/CodeLlama-34b-Python-hf) [interactive version](https://whatmodel.sh/model/codellama-34b-python) · [JSON](https://whatmodel.sh/api?format=json&all=1)