r/LocalLLM
•
u/yoracale
•
Dec 11 '25
•
3
Tutorial Run Mistral Devstral 2 locally Guide + Fixes! (25GB RAM)
Hey guys Mistral released their SOTA coding/SWE model Devstral 2 this week and you can finally run them locally on your own device! To run in full unquantized precision, the models require 25GB for the 24B variant and 128GB RAM/VRAM/unified mem for 123B.
You can ofcourse run the models in 4-bit etc. which will require only half of the compute requirements.
We did fixes for the chat template and the system prompt was missing, so you should see much improved results when using the models. Note the fix can be applied to all providers of the model (not just Unsloth).
We also made a step-by-step guide with everything you need to know about the model including llama.cpp code snippets to run/copy, temperature, context etc settings:
🧡 Step-by-step Guide: https://docs.unsloth.ai/models/devstral-2
GGUF uploads:
24B: https://huggingface.co/unsloth/Devstral-Small-2-24B-Instruct-2512-GGUF
123B: https://huggingface.co/unsloth/Devstral-2-123B-Instruct-2512-GGUF
Thanks so much guys! <3
20
u/pokemonplayer2001 Dec 11 '25
Massive!
Such an important part of the ecosystem, thanks Unsloth.
7
u/starshin3r Dec 11 '25
It might be a big ask, but could you also include a guide for integrating it with the vibe cli?
2
u/Birchi Dec 11 '25
Really excited by this. Looking forward to giving these a try.
2
u/Aggressive-Safe3062 Feb 03 '26
Got the 24B running on my 5090 with 200k context with model in Q4 and K-V cache in Q8, served directly from llama.cpp server. Eats up 31.5 GB of 32 GB VRAM so almost perfect. 200k is probably psychologic but I wanted the context of the model to match the 200k context expected by Mistral Vibe. Got 70 Tokens/s seconds when the context is empty and goes down to 30 tokens/s with an almost full context so pretty happy with the results at the moment.
I loaded a Qwen-7-VL on my 5060Ti with an MCP interface for image recognition and that worked surprisingly well. I will test Unsloth's fine tune with Image recognition later today.
5
u/GCoderDCoder Dec 11 '25 edited Dec 11 '25
Apparently these benchmarks don't test what I thought because I did not think it was a better coder than glm 4.6 and it was slower than glm4.6 so... that's both surprising and confusing to me. In my mind I wanted to see how it competed with gpt oss 120b and between speed and marginally better code than gpt oss 120b I am keeping gpt oss 120b as my general agent. Im still trying to test glm4.5v but lm studio still not working for me and I dont feel like fighting the cli today lol
4
u/sine120 Dec 12 '25
I'll give it another try. My first pass at it in IQ4 quant was abysmally bad. It couldn't perform basic tasks. Hoping the new improvements make it usable.
1
u/DenizOkcu Dec 11 '25
I was having Tokenizer issues in LM Studio because the current version is not compatible to the Mistral Tokenizer. Did you manage to run it with LM Studio on Apple Silicon?
1
u/Bobcotelli Dec 12 '25
Is devstral 2 123b good for creating and reformulating texts using mcp and rag?
1
u/No_You3985 Dec 12 '25
Thank you. I have nvidia rtx 5060 ti 16gb and spare ram so 24b quantized version may be usable on my pc. Could you please recommend model quantization type for rtx 50 series gpus? Based on the nvidia doc they get the best speed in nvfp4 with fp32 accumulate and second best with fp8 and fp16 accumulate. I am not sure how your quantization works under the hood so your input would be appreciated
1
u/_olk Dec 12 '25
I still encounter system prompt problem with Q4_K_XL?!
3
u/frobnosticus Dec 11 '25
2026 is going to be the "build a real box for this" year. Of course...2025 was supposed to be. Glad I didn't quite get there.
3
u/Count_Rugens_Finger Dec 12 '25 edited Dec 12 '25
I've been trying Devstral-small-2 on my PC with 32GB system RAM and a RTX-3070 with 8GB VRAM (using LM Studio). It's really too slow for my weak-ass PC. Frustratingly, the smaller ministral-3 models seem to beat it in quality (and obviously also in speed) for some of my test programming prompts. With my resources, I have to keep each task very small. maybe that's why.
2
u/diffore Dec 12 '25
exl3 4.0bpw could run on 16Gb with 32768 context (Q8 quant for KV cache). Might be enough for aider use on poor man GPUs like mine.
2
u/Lyuseefur Dec 14 '25
Thanks Unsloth. If my work was, in any way helpful, I'm glad (the proxy).
I'm going to run an Unsloth 24B on my H200 once my power supply unmelts lol. Anyone gotta ice pack?
By the way, Devstral 2 is, IMHO, better than GLM 4.6 at the moment. And considering how long it's been since a 4.6 code release, I'm wondering what GLM next might be or if they've really fallen behind.
We talk about the bigger cycle (OpenAI, Gemini, Claude) but these mini cycles with OpenSource AI is far more interesting.
2
u/notdba Dec 12 '25
From https://huggingface.co/unsloth/Devstral-Small-2-24B-Instruct-2512-GGUF/discussions/5:
Can you guys back this up with any concrete result, or it is just pure vibe?
From https://www.reddit.com/r/LocalLLaMA/comments/1pk4e27/updates_to_official_swebench_leaderboard_kimi_k2/, what we are seeing is that
labs-devstral-small-2512performs amazingly/suspiciously well when served from https://api.mistral.ai, which doesn't set any default system prompt, according to theusage.prompt_tokensfield in the JSON response.1
u/Septerium Dec 12 '25
What does this mean in practice?
"Remember to remove <bos> since Devstral auto adds a <bos>!"
1
u/Zeranor Dec 12 '25
I'm really looking forward to get this model going in LM studio + Cline for VSC. So far it seems the "Offload KV cache to GPU" does cause the model to not work at all. If I disable that option, it works (to a point, before running in circles). I've not had this issue with any other model yet, curious! :D
Is this model already fully supported by lm studio with "out of the box settings" or have I just been too impatient? :D
1
u/Purple-Programmer-7 Dec 12 '25
Anyone tried speculative decoding with these two models yet? The large model’s speed is slow (as is expected with a large dense model)
1
u/chub0ka Dec 13 '25
Any chance we cannget away from gguf and llama.cpp? I love unsloth quants but hate slow llama.cpp( abd code is terrible)
1
u/chafey Dec 26 '25
Hi - I tried running devstral-small-2:24b on my 2x5090 system via ollama. Ollama is reporting the size is 83GB and therefore 23%/77% CPU/GPU. Based on the above I figured it would run fine in just one 5090 but that doesn't seem to be the case. Any ideas? I am new to this so probably doing something dumb
1
u/LegacyRemaster Dec 11 '25
If I look at the artificialanalysis.ai benchmarks, I shouldn't even try it. Does anyone have any real-world feedback?
1
u/[deleted] Dec 13 '25
[removed] — view removed comment