VOOZH about

URL: https://willitrunai.com/models/codestral-22b

โ‡ฑ Codestral 22B VRAM Requirements โ€” GPU Compatibility


๐Ÿ‘ Mistral AI
Mistral AI

Codestral 22B

Current
๐Ÿ‘ huggingface
HuggingFace๐Ÿ‘ ollama
Ollama
16.9KDownloads1.3KLikesMay 2024Released33K tokensContextMNPLLicense27 EntryQuality

Codestral 22B (22B parameters) requires approximately 17.7 GB of VRAM with Q4_K_M quantization. For the best balance of quality and speed, we recommend hardware with at least 21 GB of VRAM.

Get started

โ€” copy & paste to run locally

Copy-paste commands to run Codestral 22B on your machine.

Run

ollama run codestral

Quick specs

Parameters22B
Architecturedense
Context33K tokens
Modalitytext
Min RAM8.6 GB
Rec. RAM13.4 GB (Q4_K_M)
LicenseMNPL
FamilyCodestral

About this model

from mistral_common.tokens.tokenizers.mistral import MistralTokenizer from mistral_common.protocol.instruct.messages import UserMessage from mistral_common.protocol.instruct.request import ChatCompletionRequest

  • โ€ขAs instruct, for instance to answer any questions about a code snippet (write documentation, explain, factorize) or to generate code following...
  • โ€ขAs Fill in the Middle (FIM), to predict the middle tokens between a prefix and a suffix (very useful for software development add-ons like in VS Code)

Related models

Your hardware

Detecting...

Quick picks

๐Ÿ‘ Intel
Best budgetB
Intel Arc Pro B60 24GB~$599 โ€” 20 tok/s
๐Ÿ‘ NVIDIA
Best overallB
RTX 4090 24GB~$1,599 โ€” 61 tok/s

Best hardware

Top picks for Codestral 22B

RTX 4090 24GBB
24 GB
RTX 5090 Laptop 24GBB
24 GB
RTX 5090 32GBB
32 GB
NVIDIA A30 24GBB
24 GB
RTX 3090 Ti 24GBB
24 GB

Run this model

Codestral 22B on RTX 4090 24GBCodestral 22B on RTX 5090 Laptop 24GBCodestral 22B on RTX 5090 32GB

Quantization options

VRAM estimates by quant level

No hardware detected โ€” fit column shows raw VRAM estimates

QuantBitsVRAMQualityFit
Q2_K
2
8.6 GB
Lowโ€”
Q3_K_S
3
10.8 GB
Lowโ€”
NVFP4
4
12.3 GB
Mediumโ€”
Q4_K_M
4
13.4 GB
Mediumโ€”
Q5_K_M
5
15.8 GB
Highโ€”
Q6_K
6
18.0 GB
Highโ€”
Q8_0
8
23.5 GB
Very Highโ€”
F16
16
45.1 GB
Maximumโ€”

Quality benchmarks

Codestral 22B benchmark scores

Benchmark verified

Coding

SWE-bench Verifiedโ€”
HumanEval+81.1%
Aider Polyglotโ€”
LiveCodeBenchโ€”

Reasoning

MMLU-Pro24.0%
GPQA Diamond6.5%
MATH-50010.0%
ARC Challengeโ€”

General

Chatbot Arenaโ€”
IFEval57.7%

Source: official ยท 2024-05-29

Hardware compatibility

Fit estimates across all hardware

Open calculator

Computing compatibility...

Memory breakdown

Reference: RTX 2060 6GB

Weights13.4 GB
KV Cache2.4 GB
Runtime1.2 GB
Headroom0.6 GB

Frequently asked questions

FAQ โ€” Codestral 22B

See also

Quantization GuideScoring MethodologyVRAM Calculator