Codestral
Codestral is Mistral AI's first code model, released on May 29, 2024. The 22B-parameter model was trained on more than 80 programming languages with a 32K-token context and fill-in-the-middle support, and outperformed Code Llama 70B on several code benchmarks. Its weights were released under the non-commercial Mistral AI Non-Production License.
At a glance
- Context window
- 32K tokens
- Max output
- —
- Historical text input / output · per 1M tokens
- — / —
- Knowledge cutoff
- —
A place to remember
Retired, not forgotten.
- Released
- 29 May 2024
- Endpoint retired
- 16 Jun 2025
- Time in service
- 383 days
Retired by provider
“Ranked on 4 leaderboards. Retired by MistralAI.”
4 leaderboards · 0 top-three finishes · Best rank #20. The full model record remains below.
Benchmark snapshot
Best result in each category
CodingMBPP
78.2Normal (No Tools) · #20 of 67
Benchmark details
3 results · Best published score per benchmark, grouped by category
| Benchmark · setting | Score | Rank |
|---|---|---|
| Coding | ||
| HumanEval Normal (No Tools) · Code Generation & Editing | 81.1 | 40 / 100 |
| LiveCodeBench Normal (No Tools) · Algorithmic Coding | 31.5 | 107 / 113 |
| MBPP Normal (No Tools) · Code Generation & Editing | 78.2 | 20 / 67 |
Rank is this model's position among every model with a published result on that leaderboard; the bar shows how far up the field that is. Orange marks first place on leaderboards with at least 5 models. Unranked leaderboards publish a composite or direction-less score.
Back to benchmark snapshot ↑Specifications
- Provider
- MistralAI
- Model type
- Coding model
- Released
- May 29, 2024
- Endpoint retired
- 2025-06-16 Source
- Total parameters
- 22B
- Architecture
- Dense
- Context window
- 32K tokens
- Weights
- Restricted weights
- Licence
- Mistral AI Non-Production License
- Commercial use
- Non-commercial only
Capabilities
Codestral vs competitors
Comparable results only · record is Codestral's wins–losses
| Benchmark | CodestralThis model | vs ERNIE 5.5 Flash BaseRecord 0–3 | vs Gemma 3 - 27B (IT)Record 2–1 | vs Codestral 25.01Record 0–3 | vs Llama3.3-70B-InstructRecord 0–3 |
|---|---|---|---|---|---|
| LiveCodeBench | 31.5 | 40.1 | 29.7 | 37.9 | 33.3 |
| HumanEval | 81.1 | 82.3 | 87.8 | 86.6 | 88.4 |
| MBPP | 78.2 | 81.5 | 74.4 | 80.2 | 87.6 |
Primary sources
- Codestral technical reportmistral.ai
- Weights on Hugging Facehuggingface.co
On the stone
Memories and epitaphs, kept separately from model reviews.
Epitaphs from visitors
Nobody has written on this stone yet. The first line is yours.
Community discussion
Share the API, setup, and tradeoffs you actually tested. Rate the model once; comment as often as you like.
Sign in with Google to rate this model and leave a comment.
No community comments yet.
