CanMyPCRunAILocal AI compatibility

Mistral AI · llama

Can I run codestral?

Codestral is Mistral AI’s first-ever code model designed for code generation tasks.

22.2B parameters32K contexttextMistral AI Non-Production License5 builds

codestral system requirements

Memory needed at 4K context, counting model weights, KV cache, compute buffers and runtime overhead. Download sizes come from the official Ollama registry.

Download size and memory required for each codestral build
BuildQuantizationDownloadMemory needed
codestral:22bQ4_011.7 GB~17.1 GB(est.)
codestral:22b-v0.1-q4_K_MQ4_K_M12.4 GB~18.2 GB(est.)
codestral:22b-v0.1-q5_K_MQ5_K_M14.6 GB~21.3 GB(est.)
codestral:22b-v0.1-q6_KQ6_K17.0 GB~24.7 GB(est.)
codestral:22b-v0.1-q8_0Q8_022.0 GB~31.9 GB(est.)

Figures marked (est.) approximate the KV cache because this model's architecture details are not published. They are indicative rather than exact.

How to run codestral locally

  1. 1.Install Ollama for Windows, macOS or Linux.
  2. 2.Run this in a terminal:ollama run codestral:22b
  3. 3.The weights download on first run, then an interactive prompt opens.

Frequently asked questions about codestral

How much VRAM do I need to run codestral?
At 4K context, the smallest published build of codestral (Q4_0) needs roughly 17.1 GB of GPU memory once weights, KV cache, compute buffers and runtime overhead are counted. Bigger quantizations and longer context windows need more. It can also run partly or entirely on the CPU using system RAM, more slowly.
Can I run codestral without a dedicated GPU?
Yes, but slowly. Without a GPU the model runs on the CPU using system RAM, which usually means a few tokens per second rather than dozens. You would need at least 17.1 GB of free RAM for the smallest build.
How big is the codestral download?
The smallest published build is 11.7 GB. There are 5 builds in total, the largest being 22.0 GB. Leave some extra free disk space beyond the download itself.
How do I run codestral locally?
Install Ollama, then run "ollama run codestral:22b" in a terminal. The weights download on first use and an interactive session opens.

Will codestral run on your PC?

Scan your hardware once and get a verdict for this model and every build — free, no account.

Check my PC

Model data from the official Ollama registry · verified 13/09/2026