LLMs · Meta
Code Llama 70B Instruct
- Parameters
- 69B
- Architecture
- Dense
- Max context
- 4K tokens
- License
- llama2
- Released
- 2024-01
How to run it
On a mobile device
Code Llama 70B Instruct is too big for a device like yours: it needs more memory than the device has. Models that run on mobile devices.
Quickest · Ollama
One command downloads a ready-to-run version and starts a chat.
ollama run codellama:70bQuantized files · GGUF
Works in LM Studio, llama.cpp, Jan and Ollama. No sign-in needed.
huggingface.co/TheBloke/CodeLlama-70B-Instruct-GGUF (opens in a new tab)
ollama run hf.co/TheBloke/CodeLlama-70B-Instruct-GGUFOriginal weights · Hugging Face
Full-precision files from Meta, for fine-tuning, vLLM, Transformers.
huggingface.co/meta-llama/CodeLlama-70b-Instruct-hf (opens in a new tab)
Official repo · GitHub
Reference code, inference scripts and docs from Meta. The weights themselves download from Hugging Face.
github.com/meta-llama/codellama (opens in a new tab)
git clone https://github.com/meta-llama/codellamaApps that run Code Llama 70B Instruct
Our pick for each kind of computer, assuming the model fits in its memory. Pick your own GPU or device in the Model Finder for an exact answer.
| App | Type | Opens it as | Systems | Engine | Start |
|---|---|---|---|---|---|
| LM Studio | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in LM Studio | |
| Ollama | CLI + API | Ollama library | macOSWindowsLinux |
|
|
| llama.cpp | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Jan | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in Jan | |
| MLX LM | CLI + API | MLX | macOS |
|
|
| vLLM | Server | Original weights | WSLWindowsLinux |
|
|
| SGLang | Server | Original weights | WSLWindowsLinux |
|
|
| Docker Model Runner | CLI + API | GGUF | macOSWindowsLinux |
|
|
| Lemonade | Desktop app | GGUF | macOSWindowsLinux |
|
|
| Unsloth Desktop | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in Unsloth Desktop | |
| Atomic Chat | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in Atomic Chat | |
| Pi | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Hermes Agent | Assistant | GGUF or MLX | macOSWSLWindowsLinux | ||
| OpenClaw | Assistant | GGUF or MLX | macOSWSLWindowsLinux | ||
| OpenCode | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Codex CLI | Coding agent | GGUF or MLX | macOSWSLWindowsLinux | ||
| OpenHands | Coding agent | GGUF or MLX | macOSWSLWindowsLinux | ||
| Zed | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Cline | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Open Interpreter | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Goose | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Aider | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Crush | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Qwen Code | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Kilo Code | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| Open WebUI | Assistant | GGUF or MLX | macOSWindowsLinux | ||
| Khoj | Assistant | GGUF or MLX | macOSWindowsLinux | ||
| Letta | Assistant | GGUF or MLX | macOSWindowsLinux | ||
| GPT4All | Desktop app | GGUF | macOSWindowsLinux | Get GPT4All | |
| KoboldCpp | Desktop app | GGUF | macOSWindowsLinux | Get KoboldCpp | |
| Text Generation WebUI | Desktop app | GGUF | macOSWindowsLinux | Get Text Generation WebUI | |
| llamafile | CLI + API | GGUF | macOSWindowsLinux | Get llamafile | |
| Msty Studio | Desktop app | GGUF or MLX | macOSWindowsLinux | Open in Msty Studio | |
| Llama (macOS) | Desktop app | GGUF | macOS | Open in Llama (macOS) | |
| RecurseChat | Desktop app | GGUF | macOS | Open in RecurseChat | |
| Inferencer | Desktop app | MLX | macOS | Get Inferencer | |
| node-llama-cpp | Library | GGUF | macOSWindowsLinux | Get node-llama-cpp | |
| exo | Server | MLX | macOSLinux | Get exo | |
| Continue | Coding agent | GGUF or MLX | macOSWindowsLinux | ||
| SillyTavern | Assistant | GGUF or MLX | macOSWindowsLinux | ||
| LibreChat | Assistant | GGUF or MLX | macOSWindowsLinux | ||
| Cherry Studio | Assistant | GGUF or MLX | macOSWindowsLinux | ||
| Chatbox | Assistant | GGUF or MLX | macOSWindowsLinux | ||
| PrivateGPT | Assistant | GGUF or MLX | macOSWindowsLinux | ||
| PocketPal AI | Mobile app | GGUF | iOSAndroid | App Store Google Play | |
| ChatterUI | Mobile app | GGUF | Android | Download the APK | |
| LLM Farm | Mobile app | GGUF | iOS |
Memory needed
Weights plus KV cache and runtime overhead. Leave a little extra free for the operating system and other apps. Try another context length.
| Quantization | Quality | Weights | Total at 4K context | Download |
|---|---|---|---|---|
Q2_K |
Low | 27.6 GB | 29.5 GB | GGUF (opens in a new tab) |
Q3_K_M |
Low | 33.8 GB | 35.7 GB | GGUF (opens in a new tab) |
Q4_K_M |
Good | 42.1 GB | 44.0 GB | GGUF (opens in a new tab) |
Q5_K_M |
High | 49.0 GB | 50.9 GB | GGUF (opens in a new tab) |
Q6_K |
High | 56.6 GB | 58.5 GB | |
Q8_0 |
Very high | 73.1 GB | 75.1 GB | |
F16 |
Full | 138 GB | 140 GB | Original weights (opens in a new tab) |
Best hardware for Code Llama 70B Instruct
The least expensive GPU in our catalog that runs it without offloading is the Intel Arc Pro B70 (launch price $949) at Q2_K.
| Quality | Hardware | Quant | Memory | Speed | Runs |
|---|---|---|---|---|---|
| 41Fair quality (C) · 41 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 68/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA RTX PRO 6000 Blackwell |
Q4_K_M | 48.8 GB / 96.0 GB | 31.9 tok/s | Runs great |
| 30Basic quality (D) · 30 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 67/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GeForce RTX 5090 |
Q2_K | 31.1 GB / 32.0 GB | 52.4 tok/s | Runs welltight fit |
| 36Basic quality (D) · 36 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 64/100 (quality, fit, speed and memory use) sets the ranking. | Apple M4 Max (64 GB) |
Q3_K_M | 39.6 GB / 48.0 GB | 10.8 tok/s | Runs well |
| 30Basic quality (D) · 30 of 100: how capable the model is at Q2_K, whatever it runs on. Match score 61/100 (quality, fit, speed and memory use) sets the ranking. | Apple M1 Max (64 GB) |
Q2_K | 33.4 GB / 48.0 GB | 10.1 tok/s | Runs well |
| 41Fair quality (C) · 41 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 61/100 (quality, fit, speed and memory use) sets the ranking. | Apple M2 Ultra (192 GB) |
Q4_K_M | 55.5 GB / 144 GB | 12.3 tok/s | Runs well |
| 36Basic quality (D) · 36 of 100: how capable the model is at Q3_K_M, whatever it runs on. Match score 59/100 (quality, fit, speed and memory use) sets the ranking. | Apple M4 Max (128 GB) |
Q3_K_M | 43.4 GB / 96.0 GB | 10.8 tok/s | Runs well |
| 41Fair quality (C) · 41 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 59/100 (quality, fit, speed and memory use) sets the ranking. | Apple M3 Ultra (256 GB) |
Q4_K_M | 59.4 GB / 192 GB | 12.6 tok/s | Runs well |
| 41Fair quality (C) · 41 of 100: how capable the model is at Q4_K_M, whatever it runs on. Match score 56/100 (quality, fit, speed and memory use) sets the ranking. | Apple M3 Ultra (512 GB) |
Q4_K_M | 74.7 GB / 384 GB | 12.6 tok/s | Runs well |
| 43Fair quality (C) · 43 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 74/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA GH200 Grace Hopper (96 GB GPU) |
Q6_K | 63.3 GB / 96.0 GB | 49.4 tok/s | Runs great |
| 43Fair quality (C) · 43 of 100: how capable the model is at Q6_K, whatever it runs on. Match score 74/100 (quality, fit, speed and memory use) sets the ranking. | NVIDIA H100 80GB SXM |
Q6_K | 62.5 GB / 80.0 GB | 41.4 tok/s | Runs great |
Run it on a cluster
Devices that can’t run Code Llama 70B Instruct alone can run it together. These example clusters do:
Estimates come from published hardware specs and our open formulas, not from running the model on your machine. Real speed varies with runtime, drivers and settings. Numbers marked “Measured” come from a linked benchmark.







