Codestral 22B v0.1
By Mistral AI · France
Overview
Mistral AI's 22B code specialist covering 80+ programming languages, with strong HumanEval and MBPP scores. Locked behind the restrictive MNPL license — personal and research use only.
When to pick this model
- Personal coding assistant on a workstation with 16–24GB VRAM
- Academic research on code generation and completion
- Internal experimentation before committing to a commercial license
- Polyglot codebases where coverage across 80+ languages matters
VRAM requirements by quantization
| Quantization | VRAM required |
|---|---|
| Q4_K_M (recommended) | 13 GB |
| Q5_K_M | 16 GB |
| Q8_0 | 24 GB |
| FP16 (no quantization) | 44 GB |
VRAM figures include model weights plus a typical 8k KV cache and ~600 MB runtime overhead (Ollama / llama.cpp baseline). Add headroom for higher context lengths.
Published benchmark scores
| Benchmark | Score |
|---|---|
| HumanEval | 81.1 |
| MBPP | 78.2 |
| Spider | 63.5 |
Scores published by the model author or aggregated from public leaderboards. Re-measured monthly by our editorial team.
Strengths
- HumanEval 81.1 and MBPP 78.2 — competitive with much larger models at release
- Broad language coverage including niche languages
- 32k context handles most repo files comfortably
- Strong fill-in-the-middle completion
Limitations
- MNPL license blocks all production and commercial use
- Outclassed by Qwen 2.5 Coder 14B for permissive-licensed alternatives
- 32k context is tight for large-repo agents
Architecture & training
Architecture: Dense 22B · code-specialized · 80+ languages
Training: Multilingual code corpus.
Capable code model held back by its non-production license — for anything you'd ship, pick Qwen 2.5 Coder 14B instead.
Quick start
ollama run codestral:22bOr use the open-source MCP server to query this model from Claude Desktop, Cursor, or any MCP-compatible client.