Skip to content

How to run Codestral 22B locally

Codestral 22B is a 22.2B Mistral model with a 32K context and MNPL license. Here's the VRAM it needs, which GPUs run it, and how fast.

At a glance

Parameters
22.2B
Min VRAM (Q4)
~16GB
Context
32K
License
MNPL

Memory needed per quantization

QuantQualityWeightsMin VRAM
IQ3_M90.0%10 GB~13 GB
Q4_K_M97.5%13 GB~16 GB
Q5_K_M99.0%16 GB~18 GB
Q6_K99.7%18 GB~21 GB
Q8_099.9%24 GB~26 GB
FP16 / BF16100.0%44 GB~47 GB

Which GPUs run Codestral 22B

GPUFitQuantSpeed
GeForce RTX 4060
8GB · 272 GB/s
WorksIQ2_XXS23 tok/s
GeForce RTX 3060 12GB
12GB · 360 GB/s
PerfectIQ2_XXS43.5 tok/s
GeForce RTX 4070
12GB · 504 GB/s
PerfectQ2_K49.4 tok/s
Intel Arc B580
12GB · 456 GB/s
PerfectQ2_K44.7 tok/s
GeForce RTX 4070 Ti SUPER
16GB · 672 GB/s
PerfectIQ4_XS42.9 tok/s
GeForce RTX 5070
12GB · 672 GB/s
PerfectQ2_K65.9 tok/s
GeForce RTX 4080 SUPER
16GB · 736 GB/s
PerfectIQ4_XS46.9 tok/s
Radeon RX 7900 XTX
24GB · 960 GB/s
PerfectQ6_K40.9 tok/s
GeForce RTX 3090
24GB · 936 GB/s
PerfectQ5_K_M45.7 tok/s
GeForce RTX 4090
24GB · 1008 GB/s
PerfectQ6_K42.9 tok/s
GeForce RTX 5090
32GB · 1792 GB/s
PerfectQ8_059.6 tok/s
Apple M4
16GB · 120 GB/s
WorksIQ3_M8.8 tok/s
Apple M4 Pro
24GB · 273 GB/s
RecommendedIQ3_M19.9 tok/s
Apple M3 Max (16c)
48GB · 400 GB/s
RecommendedQ5_K_M19.5 tok/s
Apple M2 Ultra
64GB · 800 GB/s
PerfectQ4_K_M45.3 tok/s

Frequently asked

How much VRAM does Codestral 22B need?

At the recommended Q4_K_M quantization, Codestral 22B needs about 13.4GB for weights plus KV cache and overhead — roughly 16GB of VRAM total for a usable context. Drop to a 3-bit quant to squeeze it smaller, or go FP16 (44GB) for full quality.

What GPU do I need to run Codestral 22B?

The most affordable GPU that runs it well is the Intel Arc B580 (12GB) at Q2_K, delivering about 44.7 tokens/sec. Anything with 16GB+ of VRAM will run it comfortably.

Which quantization should I use for Codestral 22B?

Q4_K_M is the default sweet spot (~97.5% of full quality). If it fits, Q5_K_M or Q6_K give near-lossless output; only drop below Q4 when you must fit it into limited VRAM.

Is Codestral 22B good for coding?

Yes — Codestral 22B scores 90/100 for coding, one of its strongest areas. License: MNPL.

Other models

Popular GPUs

Best models by need

Run the interactive advisor
Auto-detect your exact hardware and get personalised picks, speed & memory.