Stactora - AI Hardware IndexMy Stack0+ Submit Tool
Codestral-22B
Codestral-22B
CODING · Mistral AI

Codestral-22B

Mistral's dedicated 22B open-weight code generation and fill-in-the-middle model with 32K context, fluent in over 80 programming languages.

WAITOpen Weights✓ Fits 24GB GPU (+10GB spare)
ENTRY COSTFree weights for research/dev; commercial terms apply
EXECUTIONLOCAL GPU INFERENCE
LICENSEMistral Non-Production License (MNPL)
CONTEXT / TASK32K tokens

The brutal truth

EDITORIAL VERDICT · WAIT

Superb code generation and fill-in-the-middle accuracy, but the MNPL license prevents production commercial SaaS deployment without contacting Mistral.

HUGGING FACE REPOSITORY · /tree/main

Files and Versions

Direct inspected tree artifacts from Hugging Face. Verified filenames, exact byte sizes, model weight shards, and configuration definitions.

Browse /tree/main↗
Discovered FilesVerified Repository
Source Repomistralai/Codestral-22B-v0.1

Files and versions are hosted on Hugging Face. You can view all branches, commits, model weights, and tokenizer artifacts directly.

Inspect mistralai/Codestral-22B-v0.1 /tree/main↗

Decision matrix

✓ RUN / USE THIS IF…

  • •You want local IDE completion for personal projects
  • •You have a 16GB VRAM GPU
  • •You value native FIM cursor prediction
  • •Your 24GB GPU comfortably fits the model weights (~14GB VRAM) with dedicated headroom for inference.

True cost of ownership

Upfront$0Weights free
Hardware14GB VRAMat Q4_K_M
API MarkupNoneYou own the stack
Est. Net/Mo$0–$40Electricity + storage

About

Mistral's dedicated 22B open-weight code generation and fill-in-the-middle model with 32K context, fluent in over 80 programming languages.

What it does

Download the weights from Hugging Face, pick a quantisation that matches your GPU, and run it locally with Ollama, llama.cpp, vLLM, or a compatible runtime. Fill-in-the-middle & IDE autocompletion runs on your own hardware — no per-token bill, no third-party data handling.

Key features

01
Native Fill-in-the-Middle (FIM) support for IDE cursor inser

Native Fill-in-the-Middle (FIM) support for IDE cursor insertion

02
Very strong Python, Java, and C++ generation

Very strong Python, Java, and C++ generation

03
Fits inside 16GB VRAM at Q4_K_M

Fits inside 16GB VRAM at Q4_K_M

Use cases

01Pair-programming

Inline edits, refactors, and test generation inside the editor.

02Code review automation

Flag null-safety, security, and style issues before merge.

03Legacy refactoring

Turn long procedural functions into typed, testable modules.

04Test generation

Generate integration tests from route definitions and schemas.

Quantization & Hardware Fit

✓ HARDWARE COMPATIBLESelected Profile: GeForce Rig (24 GB VRAM)

VRAM Hardware Compatibility & Memory Allocation

Test GPU:
Active Quant: Q4_K_M · Required: 14 GB+10 GB Headroom Available
Execution Speed~50 tokens/sec
Memory Bandwidth1008 GB/s
Hardware StatusRuns well
GRADE A · 77/100Runs well (~50 tok/s on 24GB · 1008 GB/s)
QuantVRAMQuality / Fit on 24GBInstall / Run Command (OLLAMA)
Q4_K_M● ACTIVE14 GBStandard · ✓ Fits (10GB spare)ollama run codestral:22b
Q5_K_M16 GBStandard · ✓ Fits (8GB spare)ollama run codestral:22b
Q8_024 GBStandard · ✓ Fits (0GB spare)ollama run codestral:22b
FP1644 GBStandard · ✕ Needs 44GBollama run codestral:22b
LIVE INFERENCE SPEED SIMULATOR (BANDWIDTH: 1008 GB/S)
Feel how fast Codestral-22B (Q4_K_M) runs on your 24GB rig (~50 tok/s)
Click "▶ Simulate Live Speed" above to watch tokens stream at your GPU's real memory-bandwidth speed (50 tokens/sec ≈ 38 words/sec) before you download 14 GB of weights.

Buyer doubts, cleared

Can I actually run Codestral-22B on my 24GB GPU?
Yes. At Q4_K_M the model needs ~14GB, and your 24GB fits it. Expect roughly 25-45 tok/s at Q4 on a modern card. Add 1-2GB headroom for KV cache at 8K context.
What's the fine print on the license?
License: Mistral Non-Production License (MNPL). This is a restricted license — review the terms carefully before using it in a commercial product. Some restrict resale, competitive use, or require attribution.
Does the 32K tokens actually hold up in practice?
Benchmark claims for long context often degrade past 64K tokens. Test your specific retrieval workload before committing. For anything above 32K, run a needle-in-a-haystack test first.

User reviews

4.5
★★★★★
Based on 4 verified benchmark telemetry reports
Verified Architecture Review
MS
Mira SolbergResearch engineer
★★★★★

The Q4_K_M build is the sweet spot. Anything larger needs serious hardware for marginal quality gains.

SW
Sam WhitfieldCTO, seed-stage
★★★★★

Switched our internal workflow to Codestral-22B after the last pricing change. Nobody noticed a quality difference, and the bill dropped by half.

DM
Diego MarquezFounder
★★★★☆

Solid for fill-in-the-middle & ide autocompletion. The learning curve is real but the payoff is there. Start with the smaller build first.

NF
Nadia FaroukFreelance designer
★★★★☆

Clean interface, consistent results once you land on a prompt you like. Wish there were more export presets for client handoffs.

Similar tools to check