[whatmodel.sh](../../README.md) / Code Llama 13B Python # Code Llama 13B Python Meta · released 2023-08 · 13.02B params · llama2 **score 39.9** ±0.9 · #569 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 13B Python among every model on that task or test, worst to best.
task vs the others rank counts tests coding ▁▁▁▃●▇█▇▅▄▃▁ #398 of 469 78% 4
test result vs the others in its run difficulty counts why HumanEval 42.7% ▁█▄▅●█·▄▇▅▄▄ beats 14/42 easy · avg 75% 62% sharp · at its level · several runs MBPP (maker) 49.0% ▃▃▃●··▃▅··▅▃ beats 4/11 easy · avg 71% 11% at its level CRUXEval-I (maker) 39.7% ▁··▁▅▂●▇▁··▁ beats 11/22 medium · avg 52% 3.1% at its level CRUXEval-O (maker) 39.8% ▁·▂▃▁●▁▂···▁ beats 10/22 medium · avg 51% 3.0% blunt · at its level
test result vs the others in its run difficulty counts why EvoEval (overall) 29.4% ▂▂▃▄●█▁▄▅▃▁▃ beats 15/42 medium · avg 52% 21% at its level
source results share of the score Top Leaderboard Ranking = Top Coding Pr… 2 61% ▇▇▇▇▇▇▇ Code Llama: Open Foundation Models for … 2 32% ▇▇▇▇ CRUXEval published evaluation results (… 2 6% ▇ prior: pull toward the middle 0% ▇ weighted average = 39.9Licences: 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 13B Python (Q4_K_M, needs ~7.9 GB, from [huggingface.co/mradermacher](https://huggingface.co/mradermacher/CodeLlama-13b-Python-hf-GGUF/tree/2ee335154201257a3a7bec557a41986de046e0b2)) ```sh llama cli -hf mradermacher/CodeLlama-13b-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-13b-Python-hf-GGUF:Q4_K_M ``` Other versions: Q8_0 (~13.8 GB) `llama cli -hf mradermacher/CodeLlama-13b-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 13B Python (Q4_K_M, needs ~7.9 GB, from [huggingface.co/mradermacher](https://huggingface.co/mradermacher/CodeLlama-13b-Python-hf-GGUF/tree/2ee335154201257a3a7bec557a41986de046e0b2)) ```sh lms get https://huggingface.co/mradermacher/CodeLlama-13b-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 (~13.8 GB) `lms get https://huggingface.co/mradermacher/CodeLlama-13b-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 13B Python (Q4_K_M, needs ~7.9 GB, from [ollama.com](https://ollama.com/library/codellama/tags)) ```sh ollama run codellama:13b-python-q4_K_M ``` Other versions: Q8_0 (~14 GB) `ollama run codellama:13b-python-q8_0` Model repository and documentation: [huggingface.co/codellama](https://huggingface.co/codellama/CodeLlama-13b-Python-hf) [interactive version](https://whatmodel.sh/model/codellama-13b-python) · [JSON](https://whatmodel.sh/api?format=json&all=1)