Mistral
CodingAI codingAI building22.2B
Coding

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

VRAM (Recommended)

15.1 GB

Quantization

Q5_K_M

File Size

13.3 GB

Max Context

32K tokens

Primary Use

Coding

Memory

VRAM Requirements

QualityQuantizationVRAMFile Size
recommendedQ5_K_M15.1 GB13.3 GB
efficientQ4_K_M12.7 GB11.1 GB
compressedQ3_K_M10.3 GB8.7 GB
Scaling

Context Length Impact

KV cache VRAM at Q5_K_M quality. Longer context = more memory.

ContextKV CacheTotal VRAM
2K307 MB15.4 GB
4K512 MB15.6 GB
8K1 GB16.1 GB
16K2 GB17.1 GB
32K4.1 GB19.2 GB

Compatible GPUs

21 devices
NVIDIA Grace Blackwell Ultra GB300Q5_K_M180 tok/sExcellent
NVIDIA GeForce RTX 4090Q5_K_M35 tok/sExcellent
AMD Radeon Pro W7900Q5_K_M38 tok/sExcellent
AMD Radeon RX 7900 XTXQ5_K_M30 tok/sGood
NVIDIA RTX PRO 6000 BlackwellQ5_K_M73 tok/sGood
NVIDIA RTX PRO 6000 Blackwell Max-QQ5_K_M67 tok/sGood
AMD Radeon RX 9070Q3_K_M32 tok/sGood
NVIDIA GeForce RTX 4060 Ti 16GBQ3_K_M18 tok/sAcceptable
NVIDIA RTX 4090 Laptop (150-175W)Q3_K_M15 tok/sAcceptable
AMD Radeon RX 9060 XT 16GBQ3_K_M16 tok/sAcceptable
NVIDIA GeForce RTX 5060 Ti 16GBQ3_K_M20 tok/sAcceptable
NVIDIA GeForce RTX 4070 Ti 12GBQ3_K_M12 tok/sMarginal
NVIDIA RTX 4080 Laptop (120-150W)Q3_K_M8 tok/sMarginal
AMD Radeon RX 7600Q3_K_M2 tok/sMarginal
Apple M3 Pro (18GB Unified)Q3_K_MNot viable
NVIDIA GeForce RTX 3080 10GBQ3_K_MNot viable
NVIDIA GeForce RTX 4060 8GBQ3_K_MNot viable
NVIDIA RTX 4060 Laptop (40-60W)Q3_K_MNot viable
NVIDIA RTX 4070 Laptop (80-115W)Q3_K_MNot viable
AMD Radeon RX 9060 XT 8GBQ3_K_MNot viable
NVIDIA GeForce RTX 5060 8GBQ3_K_MNot viable

Showing 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.

Hardware

Recommended Builds

Complete PC builds that can run Codestral 22B.

FAQ

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.
All models

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.