whatmodel.sh / Code Llama 13B Instruct
Code Llama 13B Instruct
↗ share
+ contribute
Code Llama 13B Instruct is an open-weights language model from Meta, released August 2023. Its published size is 13.02B parameters and a 16k-token context window. Licence: llama2.
Catalogue identity notes
Maker repo codellama/CodeLlama-13b-Instruct-hf @7457954: licence tag llama2. 13,016,028,160 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). Ollama tags codellama:13b-instruct-q4_K_M, codellama:13b-instruct-q8_0 (sizes as listed on the tags page, observed 2026-09-29).
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Code Llama 13B Instruct, out of 897 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 684 | 40±2 | local | |||
| 685 | 40±2 | local | |||
| 686 | 40±1 | local | |||
| 687 | 40±1 | local | |||
| 688 | 40±1 | comparison only | |||
| 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▁▁▁▃▆▇█▆▆▃▃▁ #393 of 474 · 63% of its score · 6 tests
Beats LFM2.5 8B-A1B, DeepSeek R1 Distill Qwen 7B, Tulu 2 70B here, though they rank higher overall. Trails Qwen2.5 1.5B Instruct, WizardLM 13B V1.2, Falcon3 3B Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +1 | 48.8% ✎ | ▁█▄▅▇█·▄▇▅▄▄ beats 19/42 | 36% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 39.4% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 17/35 | 8.3% |
| MBPP lab | 49.4% ✎ | ▃▃▃█··▃▅··▅▃ beats 5/11 | 6.1% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 27.7% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 23/35 | 4.9% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 15.8% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 15/35 | 4.5% |
| Tulu 2: CodexEval pass@10 | 69.2% ✎ | ▃▃▃·▆▃▃█▃▂▂▅ beats 17/25 | 3.3% |
math▁▁▃▅█▆▅█▄▁▁▁ #349 of 440 * · 3.8% of its score · 1 test
Beats Athene-70B, Llama 3 70B Instruct, Hermes 2 Theta Llama-3 70B here, though they rank higher overall. Trails Gemma 2B (base), Stable Code 3B, Zephyr 7B beta here, though they rank lower overall.
other tests6 not in a task · 33% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 33.8% ✎ | ▂▂▃▄▄█▁▄▅▃▁▃ beats 23/42 | 12% |
| BIG-Bench Hard | 48.0% ✎ | ▁·····▂█▂▅·▁ beats 7/25 | 6.9% |
| BigCodeBench (Complete) | 29.7% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 11/58 | 5.1% |
| BigCodeBench (Instruct) | 28.2% ✎ | ▃▂·▆▆██▆▅▃▃▃ beats 4/33 | 4.9% |
| MMLU | 43.3% ✎ | ▁▁▃▃▄█▄▁█··▁ beats 4/25 | 3.1% |
| Tulu 2: TyDiQA gold passage, 1-shot F1 | 37.8% ✎ | ▂··▁▃▂▂▂█▅▁▂ beats 4/25 | 0.8% |
$ 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 13B Instruct · needs 15 GB memory, 7.87 GB download · from huggingface.co/TheBlokechat in the terminal
llama cli -hf TheBloke/CodeLlama-13B-Instruct-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf TheBloke/CodeLlama-13B-Instruct-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Code Llama 13B Instruct · needs 15 GB memory, 7.87 GB download · from huggingface.co/TheBloke
- Or download it in the terminal
lms get https://huggingface.co/TheBloke/CodeLlama-13B-Instruct-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 13B Instruct · needs 15 GB memory, 7.87 GB download · from ollama.comchat in the terminal
ollama run codellama:13b-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 13B Instruct · needs 20.9 GB memory, 13.8 GB download, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/CodeLlama-13b-Instruct-hf-8bit-mlx - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/CodeLlama-13b-Instruct-hf-8bit-mlx
Model repository and documentation: huggingface.co/codellama ↗
$ how the score was worked out · Top Leaderboard Ranking = Top… 35%, Code Llama: Open Foundation M… 19%, Tulu 2 — base and instruction… 18% and 2 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 | 35% | |
| 2 | 19% | |
| 5 | 18% | |
| 3 | 18% | |
| 2 | 10% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 40.0 |
$ 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