Codestral 22B
Mistral · Mistral AI Non-Production License
Mistral's dedicated coding model. Built for code completion and generation across 80+ languages. Fits on a single 16 GB GPU at Q3/Q4. Non-production license limits commercial use.
- Parameters
- 22.2B
- Architecture
- Dense
- Context
- 32,768 tokens
- Released
- 2024-05-29
- Engines
- llama.cpp, ollama, vLLM
- Builder Tools
- Cursor, Continue, Windsurf
Parameters
22.2B
VRAM
15.1 GB
Context
32K
Formats
3
GPUs
21
Codestral 22B (22.2B) requires 15.1 GB VRAM at recommended quality (Q5_K_M). At efficient quality (Q4_K_M), it fits in 12.7 GB VRAM, making it compatible with the NVIDIA RTX 4080 Laptop (120-150W). On NVIDIA Grace Blackwell Ultra GB300, expect approximately 180 tok/s at Q5_K_M. For the best experience, Budget Home AI Server ($1,162) is recommended.
Source: OwnRig methodology
15.1 GB
Q5_K_M
13.3 GB
32K tokens
Coding
VRAM Requirements
| Quality | Quantization | VRAM | File Size |
|---|---|---|---|
| recommended | Q5_K_M | 15.1 GB | 13.3 GB |
| efficient | Q4_K_M | 12.7 GB | 11.1 GB |
| compressed | Q3_K_M | 10.3 GB | 8.7 GB |
Context Length Impact
KV cache VRAM at Q5_K_M quality. Longer context = more memory.
| Context | KV Cache | Total VRAM |
|---|---|---|
| 2K | 307 MB | 15.4 GB |
| 4K | 512 MB | 15.6 GB |
| 8K | 1 GB | 16.1 GB |
| 16K | 2 GB | 17.1 GB |
| 32K | 4.1 GB | 19.2 GB |
Compatible GPUs
21 devicesShowing 21 of 21 entries
Builder Context
Codestral 22B is commonly used with Cursor, Continue, Windsurf. For an AI coding workflow, pair it with an embedding model like nomic-embed-text for local RAG.
Recommended Builds
Complete PC builds that can run Codestral 22B.
Frequently Asked Questions
- How much VRAM does Codestral 22B need?
- Codestral 22B requires 15.1 GB VRAM at recommended quality (Q5_K_M). At lower quality settings, it can fit in as little as 10.3 GB.
- What is the best GPU for Codestral 22B?
- The NVIDIA Grace Blackwell Ultra GB300 delivers the best performance for Codestral 22B, achieving 180 tok/s at Q5_K_M with an excellent rating.
- Can I run Codestral 22B on an RTX 4060 Ti?
- Yes. On the NVIDIA GeForce RTX 4060 Ti 16GB, Codestral 22B runs at 18 tok/s (Q3_K_M, acceptable).
- What quantization should I use for Codestral 22B?
- For the best quality, use Q5_K_M (15.1 GB VRAM). If your GPU has limited VRAM, Q3_K_M (10.3 GB) is the most efficient option with acceptable quality.
- Is Codestral 22B good for coding?
- Yes. Codestral 22B is used with Cursor, Continue, Windsurf for local AI coding. For the best coding experience, pair it with an embedding model for local RAG.
Data confidence: verified. Source
VRAM requirements are calculated from model parameters and may vary by inference engine, context length, and batch size. Performance estimates are based on community benchmarks and should be verified for your specific configuration.Mistral is a trademark of its respective owner. OwnRig is not affiliated with or endorsed by the model creator.