Codestral 22B — VRAM, speed & local setup
Written by Jakub Rusinowski · Last updated
The best local model for IDE integration. Trained on 80+ programming languages with Fill-In-Middle support for autocomplete. Use with continue.dev or Cursor for production-grade code assistance. Fits in 16GB VRAM.
Codestral 22B needs about 14 GB of VRAM at Q4_K_M — quantized weights plus framework overhead, before any KV cache. On Apple Silicon that figure comes out of unified memory.
VRAM and speed by quantization
Quoted against NVIDIA RTX 4090 (24 GB). Includes the KV cache at 8K context, so it reads higher than the headline figure.
| Quant | Memory | VRAM | Speed (est.) | Fit |
|---|---|---|---|---|
| Q2_K 2.63 bpw | 10 GB | ~76 tok/s | Fits | |
| Q3_K_M 3.41 bpw | 12.1 GB | ~62 tok/s | Fits | |
| Q4_K_M 4.83 bpw | 16.1 GB | ~47 tok/s | Fits | |
| Q5_K_M 5.67 bpw | 18.4 GB | ~41 tok/s | Fits | |
| Q6_K 6.56 bpw | 20.9 GB | ~36 tok/s | Fits | |
| Q8_0 8.50 bpw | 26.3 GB | ~4 tok/s | Offload | |
| F16 16.00 bpw | 47.1 GB | ~2 tok/s | Offload |
Black marker = usable memory on the NVIDIA RTX 4090 (24 GB). Estimates from the memory-bandwidth roofline on the methodology page. Codestral 22B VRAM calculator →
Get Codestral 22B running
The cheapest catalogued GPU that runs Codestral 22B is the AMD Radeon RX 9060 XT 16GB (16 GB).
or compare on Vast.ai from $0.35/hr (typical low · varies)
As an Amazon Associate we earn from qualifying purchases. Cloud GPU links are referral links — we may earn a commission at no extra cost to you.
How to run Codestral 22B
Install Ollama, then run:
ollama run codestral:22bSpecifications
Curated — A hand-written entry from before this catalogue recorded its sources. The figures are long-standing but their provenance is not on file.
- Parameters
- 22 Billion
- Context window
- 32,768
- Architecture
- Dense
- Provider
- Mistral AI
- Licence
- MNPL (Non-Commercial)
- Practical deployment
- Laptop
- Specified at
- Q4_K_M
- System RAM
- 24 GB
- Record updated
- 2024-05-29
Research / non-commercial only — this licence does NOT permit shipping a commercial product.
Quality and use cases
Scores as published by the model’s authors or an independent evaluator — quality, not throughput, and not measured by us.
Can I run Codestral 22B on my GPU?
- Codestral on AMD Radeon RX 7800 XT
- Codestral on AMD Radeon RX 7900 XT
- Codestral on AMD Radeon RX 7900 XTX
- Codestral on AMD Radeon RX 9060 XT 16GB
- Codestral on AMD Radeon RX 9060 XT 8GB
- Codestral on AMD Radeon RX 9070
- Codestral on AMD Radeon RX 9070 XT
- Codestral on Apple M1
- Codestral on Apple M1 Pro
- Codestral on Apple M2
- Codestral on Apple M2 Pro
- Codestral on Apple M3
- Codestral on Apple M4
- Codestral on Apple M4 Pro
- Codestral on Apple M5
- Codestral on Intel Arc B570
- Codestral on Intel Arc B580
- Codestral on NVIDIA GeForce RTX 3060 (12GB)
- Codestral on NVIDIA GeForce RTX 3070
- Codestral on NVIDIA GeForce RTX 3070 Ti
- Codestral on NVIDIA GeForce RTX 3080 (10GB)
- Codestral on NVIDIA GeForce RTX 3090
- Codestral on NVIDIA GeForce RTX 4060
- Codestral on NVIDIA GeForce RTX 4060 Ti 16GB
- Codestral on NVIDIA GeForce RTX 4070
- Codestral on NVIDIA GeForce RTX 4070 Super
- Codestral on NVIDIA GeForce RTX 4070 Ti
- Codestral on NVIDIA GeForce RTX 4070 Ti Super
- Codestral on NVIDIA GeForce RTX 4080
- Codestral on NVIDIA GeForce RTX 4080 Super
- Codestral on NVIDIA GeForce RTX 4090
- Codestral on NVIDIA GeForce RTX 5060
- Codestral on NVIDIA GeForce RTX 5060 Ti 16GB
- Codestral on NVIDIA GeForce RTX 5060 Ti 8GB
- Codestral on NVIDIA GeForce RTX 5070
- Codestral on NVIDIA GeForce RTX 5070 Ti
- Codestral on NVIDIA GeForce RTX 5080
- Codestral on NVIDIA GeForce RTX 5090
Codestral 22B — frequently asked questions
How much VRAM does Codestral 22B need?
About 14 GB at Q4_K_M — quantized weights plus framework overhead, before any KV cache. The cache grows with context length and is added on top; the table above folds it in. Apple Silicon counts unified memory toward the same figure.
Does Codestral 22B run on an RTX 4090 (24 GB)?
Yes. Codestral 22B needs about 14 GB at Q4_K_M, inside a 24 GB card, at an estimated 47 tokens/sec.
How do I run Codestral 22B locally?
Install Ollama and run `ollama run codestral:22b`. That pulls the weights and starts a local OpenAI-compatible endpoint; after the download nothing leaves the machine.