?canitrun

Can Mac mini M4 24GB run Codestral 22B?

Short answer: Yes. The Mac mini M4 24GB runs Codestral 22B entirely on the GPU at Q4_K_M, using 16 of 18 GB usable unified memory, at ≈6.8 tok/s (likely 5.8–7.8 tok/s).

Mistral's dedicated coding model, 80+ languages. · Data updated November 2026 · Codestral 22B requirements

YesRuns Great (fully on GPU, with headroom)Fits with headroom · 2 GB spare

Fits entirely in GPU memory with room to spare, at a usable speed.

Best quantization
Q4_K_M
Memory needed
16 GB
13.8 weights + 2.2 context
Weights on GPU
100%
2 GB spare
Est. generation speed
≈6.8 tok/s
likely 5.8–7.8 tok/s

Mac mini M4 24GB: 24 GB unified memory (18 GB usable) · 120 GB/s · 8k context. Speeds are estimates calibrated against llama.cpp benchmarks. Close other apps — this uses most of your unified memory.

Installs Q4_K_M · Ollama library · setup guide

Quantization breakdown

Memory = weights + 2.2 GB for an 8k-token KV cache and runtime buffers. A fit with less than ~0.75 GB (or 5%) spare is marked tight: it may fail to load with a longer context or other apps using VRAM.

QuantizationMemoryFit on Mac mini M4 24GBEst. tok/sQuality
FP1646.6 GBWon't fit—Lossless reference
Q8_025.5 GBWon't fit—Near-lossless
Q6_K20.4 GBPartial offload≈5 tok/s2.7–6 tok/sExcellent
Q4_K_MRecommended16 GBFull GPU2 GB spare≈6.8 tok/s5.8–7.8 tok/sGreat (default)
IQ3_XXS12.2 GBFull GPU5.8 GB spare≈9 tok/s7.7–10 tok/sNoticeable loss

FAQ

›Can Mac mini M4 24GB run Codestral 22B?

Yes. Verdict: Runs Great (fully on GPU, with headroom). The best setting is Q4_K_M, using ~16 GB with 100% of the model weights on the GPU, at an estimated ≈6.8 tok/s (likely 5.8–7.8 tok/s).

›How much unified memory does Codestral 22B need?

Codestral 22B has 22.2B parameters. At FP16 it needs ~46.6 GB, at Q4_K_M ~16 GB (13.8 GB of weights plus ~2.2 GB for an 8k-token KV cache and runtime buffers). Longer contexts need more.

›What quantization should I use for Codestral 22B on Mac mini M4 24GB?

Use Q4_K_M. It fits entirely in Mac mini M4 24GB's 18 GB of usable unified memory with headroom. We only recommend a higher-quality quant when it also fits with headroom and still reaches 15+ tok/s.

›How many tokens per second does Codestral 22B get on Mac mini M4 24GB?

We estimate about 6.8 tok/s (likely 5.8–7.8 tok/s) at 8k context. LLM decoding is memory-bandwidth bound: Mac mini M4 24GB has 120 GB/s. The estimate is calibrated against published llama.cpp benchmarks.

›What's the cheapest cloud GPU that runs Codestral 22B at full speed?

Vast.ai rents an RTX 3090 for about $0.18/hr, running Codestral 22B entirely in VRAM at Q6_K at an estimated ≈41 tok/s. Of the cloud GPUs we track, it's the lowest-priced one that fits without CPU offload or 3-bit quantization; smaller cards may be cheaper but run it with compromises.