whatmodel.sh / Code Llama 70B Instruct
Code Llama 70B Instruct
↗ share
+ contribute
Code Llama 70B Instruct is an open-weights language model from Meta, released January 2024. Its published size is 69B parameters and a 16k-token context window. Licence: llama2.
Catalogue identity notes
Arena entry 'codellama-70b-instruct' (text). LMArena's leaderboard table (arena-leaderboard space @6f2eeeb) labels 'codellama-70b-instruct' as 'CodeLlama-70B-instruct' (Meta, Llama 2 Community), linking https://huggingface.co/codellama/CodeLlama-70b-hf. Maker repo codellama/CodeLlama-70b-Instruct-hf @397cae9: licence tag llama2. 68,976,910,336 parameters from the Hugging Face safetensors metadata (dense, so active = total). Released 2024-01: month the maker's Hugging Face repo was created (createdAt 2024-01-29). LMArena's table links codellama/CodeLlama-70b-hf (the base repo) but labels the entry 'CodeLlama-70B-instruct'; the instruct repo is used here.
Score within the LMArena (text) comparison set only.
$ how it compares
The LLMs ranked either side of Code Llama 70B Instruct, out of 897 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 510 | 48±1 | never released | |||
| 511 | 47±1 | comparison only | |||
| 512 | 47±1 | local | |||
| 513 | 47±1 | api $0.26/M +local | |||
| 514 | 47±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▁▁▁▃▆▇█▆▆▃▃▁ #316 of 474 · 77% of its score · 6 tests
Beats Qwen3-VL 32B Instruct, Solar Open 100B (102B-A12B), Qwen3-VL 30B-A3B Instruct here, though they rank higher overall. Trails DeepSeek LLM 67B Chat, WizardLM 70B V1.0, Yi 1.5 9B Chat here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval +2 | 72.0% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 63/99 | 42% |
| HumanEval+ | 65.9% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 62/99 | 18% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 58.9% ✎ | ▁·▂▁▂▆▅█▄▄▃▂ beats 33/35 | 5.4% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 41.1% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 32/35 | 4.0% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 53.0% ✎ | ▁·▁▁▄██▄█▁▅▅ beats 34/35 | 3.9% |
| MBPP lab | 62.2% ✎ | ▃▃▃█··▃▅··▅▃ beats 9/11 | 3.5% |
chat & writing▁▁▁▃▅▄▆█▇▇▇▃ #379 of 405 * · 6.1% of its score · 2 tests
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) | 1119.3 ✎ | ▁▁▁▃▃▂▃▆▆▇█▃ beats 22/388 | 3.1% |
| Polyrating rating (bias-aware re-fit of Chatbot Arena votes, mid-2024) | 1039.0 ✎ | ▂▁▂▁▃▇█▆▇▄▂▂ beats 22/95 | 3.0% |
other tests3 not in a task · 17% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvoEval (overall) | 47.7% ✎ | ▂▂▃▄▄█▁▄▅▃▁▃ beats 33/42 | 9.3% |
| BigCodeBench (Instruct) | 40.5% ✎ | ▃▂·▆▆██▆▅▃▃▃ beats 26/33 | 3.7% |
| BigCodeBench (Complete) | 48.9% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 49/58 | 3.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 70B Instruct · needs 45 GB memory, 41.4 GB download · from huggingface.co/second-statechat in the terminal
llama cli -hf second-state/CodeLlama-70b-Instruct-hf-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf second-state/CodeLlama-70b-Instruct-hf-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Code Llama 70B Instruct · needs 45 GB memory, 41.4 GB download · from huggingface.co/second-state
- Or download it in the terminal
lms get https://huggingface.co/second-state/CodeLlama-70b-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 70B Instruct · needs 45 GB memory, 41.4 GB download · from ollama.comchat in the terminal
ollama run codellama:70b-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 70B Instruct · needs 42.7 GB memory, 39.2 GB download, Mac only · from huggingface.co/mlx-communitychat in the terminal
mlx_lm.chat --model mlx-community/CodeLlama-70b-Instruct-hf-4bit-MLX - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/CodeLlama-70b-Instruct-hf-4bit-MLX
Model repository and documentation: huggingface.co/codellama ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 40%, Top Leaderboard Ranking = Top… 22%, Granite Code Models: A Family… 13% 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 | 40% | |
| 2 | 22% | |
| 3 | 13% | |
| 2 | 11% | |
| 2 | 7% | |
| 1 | 3% | |
| 1 | 3% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 47.4 |
$ 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