// Mistral / Magistral / Devstral · Text LLM
Codestral-22B-v0.1: VRAM & local deployment
22.2B parameters. About 17.2 GB at 4-bit and 51.3 GB at BF16 with one 8K-token request.
released 2024-05-29licence: Non-commercialmemory figures are estimates
01Specs
| Publisher | Mistral AI · mistralai |
|---|---|
| Family / series | Mistral / Magistral / Devstral · Codestral |
| Type | Text LLM |
| Parameters | 22.2B Source: counted from official safetensors weights |
| Context length | 32K tokens (32,768)max_position_embeddings in config.json |
| Architecture | 56 layers · GQA |
| Released weights | BF16 · 89.0 GBdownload |
| Licence | Mistral Non-Production License · Non-commercialResearch / non-commercial licence: commercial use is not allowed without a separate agreement. |
| Released | 2024-05-29 (Hugging Face repo created) |
02How much VRAM it needs (estimate)
Total = weights + 10% + 0.5GB overhead + KV cache for one request (FP16 KV). More concurrent users multiply the KV column.
| Precision | Weights | Total @ 8K | Total @ 32K | Smallest GPU | Mac |
|---|---|---|---|---|---|
| BF16 / FP16 (original) | 44.5 GB | 51.3 GB | 57.0 GB | 2 × RTX 5090 (64GB) | Mac 128GB |
| FP8 / INT8 / Q8_0 | 23.6 GB | 28.4 GB | 34.0 GB | RTX 5090 32GB | Mac 64GB |
| 4-bit (Q4_K_M / AWQ / GPTQ-Int4) | 13.5 GB | 17.2 GB | 22.9 GB | RTX 4090 24GB | Mac 36GB |
KV cache per request: 8K 1.9 GB · 32K 7.5 GB
Bits per weight: BF16 16, FP8 8.5, 4-bit 4.85. “Fits” = total ≤ 90% of memory; Mac GPU can use ~2/3 of unified memory (≤36GB) or ~3/4 (larger). For MoE, all experts must be in memory, so size by total parameters. Method →
03How to run it
Only runtimes the publisher or the runtime’s official library names for this model.
- vLLM — mentioned in the official model card
- Transformers — mentioned in the official model card
04Official repositories & quantised builds
1 official repo(s) from mistralai.
- Codestral-22B-v0.1 main
05Other Mistral / Magistral / Devstral models
All 36 →| Model | Params | 4-bit total | Released |
|---|---|---|---|
| LIDstral-Arabic | — | — | 2026-10-08 |
| Voxtral-Mini-4B-Realtime-Arabic | 4.43B | 3.5 GB | 2026-10-08 |
| Mistral-Large-4-1T-A52B | 1T / 52B | 668 GB | 2026-09-30 |
| Shieldstral-1.0-3B | 3.85B | 3.9 GB | 2026-07-16 |
| Mistral-Medium-3.5-128B | 127.7B | 88.6 GB | 2026-03-31 |
| Mistral-Small-4-119B-2603 | 119B / 6.5B | 80.0 GB | 2026-01-23 |
| Voxtral-Mini-4B-Realtime-2602 | 4.43B | 3.5 GB | 2026-01-21 |
| Devstral-2-123B-Instruct-2512 | 125B | 86.8 GB | 2025-11-28 |
06Similar-size Text LLM models from other families
Within ±35% of 22.2B parameters; same estimate method, so the memory columns are directly comparable.
| Model | Family | Params | Context | 4-bit total | Licence | Released |
|---|---|---|---|---|---|---|
| Codestral-22B-v0.1 | Mistral / Magistral / Devstral | 22.2B | 32K | 17.2 GB | Non-commercial | 2024-05-29 |
| ERNIE-4.5-21B-A3B-PT | Baidu ERNIE | 21.9B / 3B | 128K | 15.6 GB | Commercial OK | 2025-06-28 |
| ERNIE-4.5-21B-A3B-Thinking | Baidu ERNIE | 21.8B / 3B | 128K | 15.5 GB | Commercial OK | 2025-09-08 |
| gpt-oss-20b | gpt-oss | 21B / 3.6B | 128K | 14.7 GB | Commercial OK | 2025-08-04 |
| LFM2-24B-A2B | Liquid LFM / d1 | 23.8B / 2B | 125K | 16.6 GB | Custom licence – read it | 2026-02-24 |
| LFM2.5-24B-A2B | Liquid LFM / d1 | 24B / 2B | 128K | 16.7 GB | Custom licence – read it | 2026-10-12 |
| medgemma-27b-text-it | Gemma | 27B | — | 18.5 GB | Commercial with conditions | 2025-05-19 |
07Sources
Data checked 2025-07-24. Parameters, context and licence are copied from the official repository; memory figures are our estimates.