whatmodel.sh / Codestral 22B v0.1
Codestral 22B v0.1
↗ share
+ contribute
Codestral 22B v0.1 is an open-weights language model from Mistral AI, released May 2024. Its published size is 22.25B parameters and a 32k-token context window. Licence: mnpl.
Catalogue identity notes
Maker repo mistralai/Codestral-22B-v0.1 @28b1c1a: licence tag other (mnpl). 22,247,282,688 parameters from the Hugging Face safetensors metadata. Dense, so active = total. Released 2024-05: month the maker's Hugging Face repo was created (createdAt 2024-05-29). Ollama tags codestral:22b-v0.1-q4_K_M, codestral:22b-v0.1-q8_0 are the library's instruct/chat builds of this checkpoint (tag names on the pinned tags page); download sizes are estimated from the parameter count.
$ how it compares
The LLMs ranked either side of Codestral 22B v0.1, out of 828 with a score, then more from Mistral AI.
| # | model | score | where | ||
|---|---|---|---|---|---|
| 417 | 50±1 | local | |||
| 418 | 50±2 | local | |||
| 419 | 50±1 | local | |||
| 420 | 50±1 | comparison only | |||
| 421 | 50±0 | local | |||
| more from Mistral AI | |||||
| 425 | 49±2 | local | |||
| 587 | 42±1 | local | |||
| 612 | 41±1 | local | |||
$ what it's good at
coding▁▁▁▃▆██▇▆▄▃▁ #260 of 458 · 91% of its score · 4 tests
Beats Qwen3-VL 32B Instruct, Solar Open 100B (102B-A12B), GLM-4.7-Flash here, though they rank higher overall. Trails DeepSeek LLM 67B Chat, QwQ-32B-Preview, Phi-3 Medium 128K Instruct here, though they rank lower overall.
| test | result | vs the others in its run | counts |
|---|---|---|---|
| HumanEval | 79.9% ✎ | ▁·▁▁▃▄▆▅█▃▁▁ beats 84/99 | 40% |
| HumanEval+ | 73.8% ✎ | ▁·▁▁▁▃▄▄▄█▃▁ beats 84/99 | 34% |
| Aider code editing (133 Exercism Python exercises, two attempts) | 51.1% ✎ | ▁·▁▂▄▁▆▄█▆▂▂ beats 17/62 | 12% |
| MBPP+ | 61.9% ✎ | ▁···▁▁▂▅▇█▆▂ beats 41/75 | 6.7% |
other tests3 not in a task · 8.3% of its score
| test | result | vs the others in its run | counts |
|---|---|---|---|
| EvalPerf correctness (118 tasks, 20240328) | 72.8% ✎ | ▂·▂▂▂▆▅▆▆▆▃█ beats 8/29 | 3.8% |
| DSEffi-Bench Pass (1,000 data-science tasks, greedy) | 27.4% ✎ | ▅··▃▅·█·▃██▃ beats 2/15 | 3.2% |
| Open PT-LLM Leaderboard average (9 Portuguese tasks) | 71.0% ✎ | ▃▁▁▁▁▁▁▁▂█▅▁ beats 179/276 | 1.3% |
$ where to run it
llama.cpp · recommended
version
- Install llama.cpp · Homebrew and winget installs name the commands llama-cli and llama-server instead.macOS / Linux
curl -LsSf https://llama.app/install.sh | shWindowsirm https://llama.app/install.ps1 | iex - Run Codestral 22B v0.1 · needs ~13.3 GB · from huggingface.co/bartowskichat in the terminal
llama cli -hf bartowski/Codestral-22B-v0.1-GGUF:Q4_K_M - Or start a local server and open the address it prints (http://localhost:9931)
llama serve -hf bartowski/Codestral-22B-v0.1-GGUF:Q4_K_M
LM Studio
version
- Install LM Studio · Open the app once before using the lms command.
- Run Codestral 22B v0.1 · needs ~13.3 GB · from huggingface.co/bartowski
- Or download it in the terminal
lms get https://huggingface.co/bartowski/Codestral-22B-v0.1-GGUF@Q4_K_M -y - Then run lms ls to see its name, and lms chat followed by that name
Ollama
version
- Install Ollama
download it (macOS / Windows) ↗
Linuxcurl -fsSL https://ollama.com/install.sh | sh - Run Codestral 22B v0.1 · needs ~13.85 GB · from ollama.comchat in the terminal
ollama run codestral:22b-v0.1-q4_K_M
MLX (Mac)
- Install MLX (Mac) · Apple silicon Macs only, text only.with uv
uv tool install mlx-lmorpip install mlx-lm - Run Codestral 22B v0.1 · needs ~12.5 GB, Mac only · from huggingface.co/rairahulr1chat in the terminal
mlx_lm.chat --model rairahulr1/Codestral-22B-v0.1-mlx-4Bit - Or start an OpenAI-compatible server at http://localhost:8080/v1
mlx_lm.server --model rairahulr1/Codestral-22B-v0.1-mlx-4Bit
Official weights and documentation: huggingface.co/mistralai ↗
$ how the score was worked out · EvalPlus / EvalPerf published… 84%, Aider code editing benchmark… 12%, DSEffi-Bench: Demystifying La… 3% and 1 more
Each result implies a score on its own, after adjusting for how hard its test is and who ran it. The score is their weighted average, with a small pull toward the middle for thinly tested models. Each test's weight is its counts column above; here it's added up by who ran the tests. How it works
| source | results | share of the score |
|---|---|---|
| 4 | 84% | |
| 1 | 12% | |
| 1 | 3% | |
| 1 | 1% | |
| prior · pull toward the middle | 0% | |
| weighted average | = 49.7 |
$ improve this page
Use a short GitHub form or edit the data through a pull request. Every number needs a source; here's which ones we can use.
data updated · sources and licences · json