Devstral Small 1.1 (version 2507) is Mistral AI's coding-agent model from July 2025, released under Apache 2.0. It was fine-tuned from Mistral Small 3.1 with the vision encoder removed, and scored 53.6% on SWE-bench Verified.
At Q4_K_M it needs about 16.2 GB with an 8K conversation. Agents send long file contents, and each 8,000 tokens add about 1.3 GB of cache, so a 24GB card is the comfortable choice.
ollama run hf.co/unsloth/Devstral-Small-2507-GGUF:Q4_K_MOllama's own devstral:24b tag is the older 2505 release, so the command above pulls the 2507 GGUF from Hugging Face.
Last reviewed · How we calculate
hf.co/unsloth/Devstral-Small-2507-GGUF:Q4_K_MThe upright line marks the memory your device can give the model. Everything left of it runs on the GPU.
At Q4_K_M the longest conversation this device can hold is about 48K tokens.
Total memory for weights, conversation cache and runtime. Pick the row your card can hold at the length you need.
| Quantization | File size | 4K | 8K | 16K | 32K | Quality |
|---|---|---|---|---|---|---|
| Q4_K_Mrecommended | 14.3 GB | 15.6 GB | 16.2 GB | 17.6 GB | 20.3 GB | Small loss, best default |
| Q5_K_M | 16.8 GB | 18.1 GB | 18.7 GB | 20.1 GB | 22.8 GB | Very close to Q8 |
| Q6_K | 19.4 GB | 20.6 GB | 21.3 GB | 22.6 GB | 25.3 GB | Hard to tell from Q8 |
| Q8_0 | 25.1 GB | 26.3 GB | 27.0 GB | 28.4 GB | 31.0 GB | Near full quality |
| F16 | 47.2 GB | 48.5 GB | 49.1 GB | 50.5 GB | 53.2 GB | Full quality |
| Device | At Q4_K_M | At Q8_0 | Memory | Speed | Longest chat |
|---|---|---|---|---|---|
| RTX 4060 8GB | Slow, uses RAM | Slow, uses RAM | about 4.3 tok/s | Doesn't fit | |
| RTX 3060 12GB | Slow, uses RAM | Slow, uses RAM | about 6.6 tok/s | Doesn't fit | |
| RTX 4070 12GB | Slow, uses RAM | Slow, uses RAM | about 7.1 tok/s | Doesn't fit | |
| RTX 4060 Ti 16GB | Slow, uses RAM | Slow, uses RAM | about 11 tok/s | Doesn't fit | |
| Radeon RX 7600 XT 16GB | Slow, uses RAM | Slow, uses RAM | about 11 tok/s | Doesn't fit | |
| RTX 5060 Ti 16GB | Slow, uses RAM | Slow, uses RAM | about 14 tok/s | Doesn't fit | |
| Intel Arc A770 16GB | Slow, uses RAM | Slow, uses RAM | about 17 tok/s | Doesn't fit | |
| Radeon RX 9070 XT 16GB | Slow, uses RAM | Slow, uses RAM | about 18 tok/s | Doesn't fit | |
| RTX 4070 Ti Super 16GB | Slow, uses RAM | Slow, uses RAM | about 18 tok/s | Doesn't fit | |
| RTX 4080 Super 16GB | Slow, uses RAM | Slow, uses RAM | about 19 tok/s | Doesn't fit | |
| RTX 5080 16GB | Slow, uses RAM | Slow, uses RAM | about 22 tok/s | Doesn't fit | |
| RTX 3090 24GB | Runs well | Slow, uses RAM | about 43 tok/s | 48K | |
| Radeon RX 7900 XTX 24GB | Runs well | Slow, uses RAM | about 44 tok/s | 48K | |
| RTX 4090 24GB | Runs well | Slow, uses RAM | about 46 tok/s | 48K | |
| RTX 5090 32GB | Runs well | Runs well | about 81 tok/s | 94K | |
| Mac mini M4 16GB | Won't run | Won't run | Won't run | Doesn't fit | |
| Mac M4 Pro 24GB | Won't run | Won't run | Won't run | Doesn't fit | |
| Mac M4 Pro 48GB | Runs well | Runs well | about 12 tok/s | 128K | |
| Mac M4 Max 64GB | Runs well | Runs well | about 25 tok/s | 128K, full | |
| Mac M4 Max 128GB | Runs well | Runs well | about 25 tok/s | 128K, full |
These apps use the same GGUF files, so the memory numbers above apply to each.
ollama run hf.co/unsloth/Devstral-Small-2507-GGUF:Q4_K_M
Downloads the Q4_K_M file on first run. For a longer conversation type /set parameter num_ctx 16384 inside the chat.
The speeds on this page are estimates from memory bandwidth. Run the model, note the tokens per second your app reports, and your number replaces the estimate for everyone with your hardware.
Add the first benchmarkRun ollama run hf.co/unsloth/Devstral-Small-2507-GGUF:Q4_K_M. The library tag devstral:24b is the older 2505 release.
Only with compromises: a 3-bit quant, a short context, or some layers in system RAM. Coding agents need long context, so 24GB is the practical minimum.
Mistral built it for OpenHands. It also works with other agents and editor plugins that can use an OpenAI-compatible server such as Ollama or llama.cpp.
Yes. Devstral Small 24B is released under the Apache 2.0 licence, which allows commercial use, fine-tuning and redistribution as long as the licence notice is kept.
About 16.2 GB at Q4_K_M with an 8K conversation, 18.7 GB at Q5_K_M, 27.0 GB at Q8_0 and 49.1 GB at full F16 precision. Longer conversations add about 1.3 GB for every 8,000 tokens.
Only partly. It doesn't fit in 8 GB, so part of it moves to system RAM and speed drops to roughly 4.3 tokens a second.
Only partly. It doesn't fit in 12 GB, so part of it moves to system RAM and speed drops to roughly 6.6 tokens a second.
Only partly. It doesn't fit in 16 GB, so part of it moves to system RAM and speed drops to roughly 11 tokens a second.
Yes. A Mac with 48 GB of memory runs it comfortably at Q4. macOS keeps about a third of memory for the system, so smaller Macs may only manage short conversations.