whatmodel.sh / Code Llama 70B (base)
Code Llama 70B (base)
↗ share
+ contribute
Code Llama 70B (base) is an open-weights language model from Meta, released January 2024. Its published size is 68.98B parameters and a 16k-token context window. Licence: llama2.
Catalogue identity notes
Maker repo codellama/CodeLlama-70b-hf @cc11b0f: 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). Pretrained Code Llama 70B (January 2024 release); not the Python or Instruct variant. Ollama tags codellama:70b-code-q4_K_M, codellama:70b-code-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 70B (base), out of 897 with a score, then more from Meta.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 593 | 45±3 | local | |||
| 594 | 45±1 | local | |||
| 595 | 45±1 | local | |||
| 596 | 45±1 | local | |||
| 597 | 44±0 | 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▁▁▁▃▆▇█▆▆▃▃▁ #356 of 474 · 87% of its score · 5 tests
Beats LFM2.5 2.6B, LFM2.5 8B-A1B, Qwen3-VL 2B Thinking here, though they rank higher overall. Trails Phi-3-mini-128k-instruct (Apr 2024), DeepSeek LLM 67B Chat, OpenChat 3.5 here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval lab | 53.0% ✎ | █▃▃▅·▃▅·▃··▃ beats 8/11 | 28% |
| HumanEvalSynthesize (HumanEvalPack, 6-language average) | 52.8% ✎ | ▁·▂▁▂▆▅█▄▄▁▂ beats 31/35 | 19% |
| HumanEvalExplain (HumanEvalPack, 6-language average) | 28.2% ✎ | ▄▇█▃▄▇▄▁▇▃·▁ beats 24/35 | 13% |
| MBPP lab | 62.4% ✎ | ▃▃▃█··▃▅··▅▃ beats 10/11 | 13% |
| HumanEvalFix (HumanEvalPack, 6-language average) | 32.8% ✎ | ▁·▁▁▄██▄█▃▅▅ beats 27/35 | 13% |
other tests1 not in a task · 13% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| BigCodeBench (Complete) | 44.3% ✎ | ▂▁▁▄▂▅▇█▆▂▂▂ beats 41/58 | 13% |
$ 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 (base) · needs 45 GB memory, 41.4 GB download · from huggingface.co/TheBlokechat in the terminal
llama cli -hf TheBloke/CodeLlama-70B-hf-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf TheBloke/CodeLlama-70B-hf-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Code Llama 70B (base) · needs 45 GB memory, 41.4 GB download · from huggingface.co/TheBloke
- Or download it in the terminal
lms get https://huggingface.co/TheBloke/CodeLlama-70B-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 (base) · needs 45 GB memory, 41.4 GB download · from ollama.comchat in the terminal
ollama run codellama:70b-code-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 (base) · 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-hf-4bit-MLX - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model mlx-community/CodeLlama-70b-hf-4bit-MLX
Model repository and documentation: huggingface.co/codellama ↗
$ how the score was worked out · Granite Code Models: A Family… 45%, Code Llama: Open Foundation M… 42%, BigCodeBench paper (Zhuo et a… 13%
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 |
|---|---|---|
| 3 | 45% | |
| 2 | 42% | |
| 1 | 13% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 44.5 |
$ 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