VRAMNeeded Calculator

Mistral AI · VRAM requirements

Devstral Small 2 24B VRAM requirements: can you run it locally?

  • Parameters24.0B
  • Context256K
  • 4-bit file14.3 GB
  • Checked2026-11-03

Quick answer

At the popular 4-bit Q4_K_M quantization, Devstral Small 2 24B's weights are 14.3 GB, and an 8K-token context adds about 1.34 GB of KV cache, so plan for roughly 15.7 GB plus your engine's overhead.[3][2] The smallest GPU in our list that holds that comfortably is a 24 GB card (RTX 3090), and the smallest Mac is 24 GB. The 8-bit Q8_0 file is 25.1 GB and the 16-bit weights are 47.2 GB.[3]

Devstral Small 2 is Mistral's 24B agentic coding model (release tag 2512). Hugging Face lists 24,011,361,280 parameters for mistralai/Devstral-Small-2-24B-Instruct-2512, the repo was created on 2025-11-28, and the license is Apache 2.0.[1] The card gives a 256K-token context window (config.json allows 393,216 positions with YaRN; we use the card's 262,144).[2] Hugging Face counts about 131,254 downloads in the last 30 days (checked November 3, 2026).[1] Mistral's card says it runs on a single RTX 4090 or a 32 GB Mac.

Memory needed at each quantization

Quantization stores each weight in fewer bits. Smaller files fit on smaller GPUs, at some cost in quality, and the cost grows below about 4 bits. Below is every GGUF build we could source, using the exact file sizes on Hugging Face (1 GB = 1,000,000,000 bytes; split files added together), largest first.[3] Sizes are from bartowski/mistralai_Devstral-Small-2-24B-Instruct-2512-GGUF.

QuantizationWeights
BF16 (original)47.2 GB
Q8_025.1 GB
Q6_K_L19.7 GB
Q6_K19.3 GB
Q5_K_L17.2 GB
Q5_K_M16.8 GB
Q5_K_S16.3 GB
Q4_114.9 GB
Q4_K_L14.8 GB
Q4_K_M14.3 GB
Q4_K_S13.5 GB
Q4_013.5 GB
IQ4_NL13.5 GB
Q3_K_XL13.0 GB
IQ4_XS12.8 GB
Q3_K_L12.4 GB
Q3_K_M11.5 GB
IQ3_M10.7 GB
Q3_K_S10.4 GB
IQ3_XS9.9 GB
Q2_K_L9.5 GB
IQ3_XXS9.3 GB
Q2_K8.9 GB
IQ2_M8.1 GB
IQ2_S7.5 GB
IQ2_XS7.2 GB
IQ2_XXS6.5 GB

Which quant should you pick? Q4_K_M is the usual balance of size and quality. Use Q5_K_M or Q6_K if you have the memory, and Q8_0 if you want results close to the original. Treat 2-bit and 3-bit builds as a last resort.

Context length adds memory (the KV cache)

On top of the weights, the engine keeps a key/value cache for every token. From config.json (40 layers, 8 KV heads, head size 128),[2] an FP16 cache takes 2 × 40 × 8 × 128 × 2 bytes = 163,840 bytes per token.

ContextKV cache (FP16)
4,096 tokens0.67 GB
8,192 tokens1.34 GB
32,768 tokens5.37 GB
262,144 tokens (max)42.95 GB

Some engines can store the cache in 8-bit to roughly halve it.

Which GPUs and Macs it fits on

Pick your GPU or Mac and a context length to see which quantizations fit. The weights plus the KV cache are compared with the device's memory.[4][5][6][7][8][9][10][11]

Full table: every device × quantization at 8,192 tokens
DeviceBF16 (original)48.5 GBQ8_026.4 GBQ6_K20.7 GBQ5_K_M18.1 GBQ4_K_M15.7 GBIQ4_XS14.1 GBQ3_K_M12.8 GBQ2_K10.2 GBIQ2_M9.5 GB
RTX 40608 GBNoNoNoNoNoNoNoNoNo
RTX 306012 GBNoNoNoNoNoNoNoFitsFits
RTX 4060 Ti16 GBNoNoNoNoTightFitsFitsFitsFits
RTX 309024 GBNoNoFitsFitsFitsFitsFitsFitsFits
RTX 409024 GBNoNoFitsFitsFitsFitsFitsFitsFits
RTX 509032 GBNoFitsFitsFitsFitsFitsFitsFitsFits
RTX 6000 Ada48 GBNoFitsFitsFitsFitsFitsFitsFitsFits
A10080 GBFitsFitsFitsFitsFitsFitsFitsFitsFits
Mac16 GB unifiedNoNoNoNoTightFitsFitsFitsFits
Mac24 GB unifiedNoNoFitsFitsFitsFitsFitsFitsFits
Mac32 GB unifiedNoFitsFitsFitsFitsFitsFitsFitsFits
Mac64 GB unifiedFitsFitsFitsFitsFitsFitsFitsFitsFits

Column headers show weights + 8,192-token KV cache.

How to read it: "Fits" means weights + cache use under 90% of memory. "Tight" means 90–100%: it may load, but the engine's own working memory or a longer context can push it over. "No" means it won't fit on the GPU alone. The 90% line is our own rule of thumb, not a vendor figure. On a Mac, macOS also needs some of the unified memory, so treat Mac rows as optimistic.

Our recommendations

These follow from the file sizes and the 90% rule, at an 8K context.[3]

Your GPU memory Best quant that fits comfortably Total
12 GB IQ3_XXS (9.3 GB) 10.6 GB with an 8K context
16 GB Q3_K_XL (13.0 GB) 14.3 GB with an 8K context
24 GB Q6_K_L (19.7 GB) 21.0 GB with an 8K context
32 GB Q8_0 (25.1 GB) 26.4 GB with an 8K context

How to run it

With llama.cpp, LM Studio or Ollama, download a GGUF file from the quant list above (for example the Q4_K_M build) from bartowski/mistralai_Devstral-Small-2-24B-Instruct-2512-GGUF.[3] If the model is bigger than your VRAM, these tools can keep some layers in system RAM, but every token then waits on the slower memory, so expect much lower speed.

Cheapest GPU to rent for Devstral Small 2 24B

On-demand prices listed on Runpod's pricing page for cards that hold Q4_K_M with an 8K context (checked November 2, 2026; Community Cloud is cheaper but runs on shared hosts):[12]

GPU (Runpod (on-demand, as listed))VRAMPrice
RTX A5000 (Community)24 GB$0.16/hr
RTX 3090 (Community)24 GB$0.22/hr
RTX A500024 GB$0.27/hr
RTX A6000 (Community)48 GB$0.33/hr
RTX 4090 (Community)24 GB$0.34/hr
A40 (Community)48 GB$0.35/hr

Prices checked on 2026-11-03. They change often, so confirm on the provider's page. Each of these holds Q4_K_M plus an 8K context (15.7 GB) under our 90% rule. Rent on Runpod Referral link

We may earn from links marked Affiliate partner or Referral link. Disclosure. Buying instead? Read our best GPUs with 24 GB guide.

See all GPU rental prices for Lambda, Vast.ai and multi-GPU setups, or compare it with other models in the VRAM table.[13]

Frequently asked questions

How much VRAM does Devstral Small 2 24B need at 4-bit?

About 15.7 GB for the Q4_K_M weights (14.3 GB) plus an 8K-token FP16 KV cache (1.34 GB), before engine overhead.[3][2]

What is the smallest GPU that runs Devstral Small 2 24B?

In our list, a 24 GB card (RTX 3090) holds Q4_K_M with an 8K context under our 90% rule. Smaller cards need a lower-bit quant from the table above.[3]

How much does the full 256K context add?

At FP16 the KV cache for 262,144 tokens is about 42.95 GB (32K tokens: 5.37 GB).[2]

How we calculated

  • Weights are the exact GGUF file sizes on Hugging Face, checked November 3, 2026.[3]
  • KV cache is calculated from config.json. We assume an FP16 cache.[2]
  • Device memory is from NVIDIA and Apple spec pages. We compare in decimal GB, so the results lean conservative.
  • Rental prices are the listed on-demand Runpod rates, checked November 2, 2026.[12]
  • Not included: engine working buffers, the vision/audio projector, the OS and display. These vary by engine and settings, so leave headroom.

Sources

All sources checked on .

  1. Hugging Face, mistralai/Devstral-Small-2-24B-Instruct-2512 (parameter count, license, repo date, 30-day downloads; checked November 3, 2026). https://huggingface.co/mistralai/Devstral-Small-2-24B-Instruct-2512
  2. Hugging Face, mistralai/Devstral-Small-2-24B-Instruct-2512 config.json (layers, KV heads, head size, context). https://huggingface.co/mistralai/Devstral-Small-2-24B-Instruct-2512/blob/main/config.json
  3. Hugging Face, bartowski/mistralai_Devstral-Small-2-24B-Instruct-2512-GGUF file list (exact GGUF sizes; checked November 3, 2026). https://huggingface.co/bartowski/mistralai_Devstral-Small-2-24B-Instruct-2512-GGUF/tree/main
  4. NVIDIA, GeForce RTX 4060 family (8 GB / 16 GB) https://www.nvidia.com/en-us/geforce/graphics-cards/40-series/rtx-4060-4060ti/
  5. NVIDIA, GeForce RTX 3060 family (12 GB) https://www.nvidia.com/en-us/geforce/graphics-cards/30-series/rtx-3060-3060ti/
  6. NVIDIA, GeForce RTX 3090 specs (24 GB) https://www.nvidia.com/en-us/geforce/graphics-cards/30-series/rtx-3090-3090ti/
  7. NVIDIA, GeForce RTX 4090 specs (24 GB) https://www.nvidia.com/en-us/geforce/graphics-cards/40-series/rtx-4090/
  8. NVIDIA, GeForce RTX 5090 specs (32 GB) https://www.nvidia.com/en-us/geforce/graphics-cards/50-series/rtx-5090/
  9. NVIDIA, RTX 6000 Ada Generation (48 GB) https://www.nvidia.com/en-us/products/workstations/rtx-6000/
  10. NVIDIA, A100 (80 GB) https://www.nvidia.com/en-us/data-center/a100/
  11. Apple, MacBook Pro tech specs (unified memory options) https://www.apple.com/macbook-pro/specs/
  12. Runpod, GPU pricing (checked November 2, 2026). https://www.runpod.io/pricing
  13. VRAMNeeded comparison table (sources listed per model). https://vramneeded.com/compare/

Last checked: