[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
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
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
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.6Licences: 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)