MistralAIMay 29, 2024

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.

Retired · 2025-06-16Restricted weights

At a glance

Context window
32K tokens
Max output
—
Historical text input / output · per 1M tokens
— / —
Knowledge cutoff
—
R.I.P.R.I.P.CodestralCodestral2024 — 20252024 — 2025MistralAIMistralAIREST IN PEACEREST IN PEACE

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.2

    Normal (No Tools) · #20 of 67

View benchmark details (3)

Benchmark details

3 results · Best published score per benchmark, grouped by category

Benchmark · settingScoreRank
Coding
HumanEval

Normal (No Tools) · Code Generation & Editing

81.140 / 100
LiveCodeBench

Normal (No Tools) · Algorithmic Coding

31.5107 / 113
MBPP

Normal (No Tools) · Code Generation & Editing

78.220 / 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

Coding

Codestral vs competitors

Comparable results only · record is Codestral's wins–losses

Codestral benchmark scores against competitors
BenchmarkCodestralThis modelvs ERNIE 5.5 Flash BaseRecord 0–3vs Gemma 3 - 27B (IT)Record 2–1vs Codestral 25.01Record 0–3vs Llama3.3-70B-InstructRecord 0–3
LiveCodeBench31.540.129.737.933.3
HumanEval81.182.387.886.688.4
MBPP78.281.574.480.287.6

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.

Write an epitaph

One line for Codestral. No sign-in, no links, published as written.

8–200 characters200

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.