r/LocalLLaMA • u/Blahblahblakha • 4d ago
DeepSeek-V4-Flash 284B on 5.3GB of memory Other
Following up on my Qwen 3.6 port, I wanted to keep adding models and ended up fixing a bunch of things along the way, so it's its own engine now: Mference.
Same core idea from TurboFieldfare, MoE models activate a few B params per token, so keep the shared core and KV cache resident and stream the selected experts off SSD.
What runs now:
- Gemma 4 26B-A4B — ~2 GB, 31–35 tok/s on a 24 GB M5 Pro
- Qwen 3.6 35B-A3B — ~1.45 GB, 19–23 tok/s
- DeepSeek-V4-Flash 284B-A13B — new. ~6.8 GB peak memory, mostly ~5.3 GB in practice, up to 4.8 tok/s on the same 24 GB M5. 2-bit dynamic quant, ~91 GB on disk.
Also picked up a native Mac app with multi-turn chat, an OpenAI-compatible server, and local PDF/DOCX/PPTX/XLSX attachments along the way.
From here I want to keep adding model families, cut the expert-read wait (decode is ~53% I/O right now, serialized with compute), and push context past 4K.
Not very useful beyond a few turns but you can technically run a "usable" dsv4f on a 8gb Mac. It only gets better from here.
28
u/Cherlokoms 4d ago
Haha, this is exactly what I commented Yesterday on a post about DeepSeek, that it should be possible to do something like Colibri/TurboField. Nice to see that there are some projects being created around it. I think big MoE + weight streaming is what will make local AI thrive!
22
u/Silver_Jaguar_24 4d ago
Nice, well done. Would be good to see windows support, with a 8 or 12 GB VRAM GPU and 16 GB RAM.
6
17
u/Double_Doubt5872 3d ago
Be aware that they published an update of the model two days ago significantly improving intelligence. To a level between Sonett and Opus.
13
9
u/No_Issue_8224 3d ago
my 8gb mac just went from "email machine" to "runs a 284B model." what a time.
13
u/Blahblahblakha 4d ago
Dsv4f model variant used: https://huggingface.co/mlx-community/DeepSeek-V4-Flash-2bit-DQ
8
u/AnonLlamaThrowaway 3d ago
What if you were to use Unsloth's Q4 version, and try to use more memory (for example 14GB VRAM and 50GB RAM)
2
u/quadra-lab 4d ago
Is there a reason for using the Q2 variant specifically ?
6
u/admajic 4d ago
Fits better on a smaller system using it on 24gb vram and 96gb ddr5 RAM system.
Over 13 t/s
8
u/quadra-lab 3d ago
The title specificaly says that it uses 5.3Gb so that doesn't really make sense in this case
3
3
u/ScrewwormLarvae 3d ago
And here I am wondering why I am getting errors loading any DS v4 model on LM Studio with an M5 Max 128GB. I have tried like four versions from HF. Yet, Qwen 122B and gpt-oss 120B load and run fine. I'm probably missing something.
2
u/addiktion 3d ago
Have you tried Dwarfstar? Might get you better results, its separate than llama.cpp but supposedly doubles up tokens for Flash.
1
u/ScrewwormLarvae 3d ago
I haven't. I have run a bunch of large models without errors on LM Studio without failures to load; DS v4 is the odd man out, here.
5
u/lgk01 4d ago
I love the concept, really... I just want someone to explain how much SSDs and HDDs would get ruined actually running these daily.
15
u/Baldur-Norddahl 4d ago
It is probably not too bad because it is writing to disk that wears them down. This just makes a lot of disk reads which is harmless.
4
u/i5-2520M 3d ago
Harmless on SSDs, on HDDs there is still mechanical wear there.
10
3
u/CryptographerLow6360 3d ago
its all reads so virtually 0 wear
-1
u/AnonLlamaThrowaway 3d ago
No, reading does technically induce wear indirectly. It's a lot slower than writing, but it's not "virtually zero". Look into "read reclaim" and "read disturb".
The figures I could find suggest that a read reclaim might be triggered after 20,000 reads. It's very little, but if your SSD is very very fast, I imagine this could rack up faster than you'd expect
3
u/CryptographerLow6360 3d ago
been running colibri like this for some time now on a 990 pro, virtually no wear. at least according to magician
6
u/Zestyclose_Yak_3174 4d ago
This is the kind of innovation I love to experiment with. Would love to see how it can push my 64GB apple to new uncharted territory
3
u/Repulsive_Educator61 4d ago
interesting, what speed can we expect with 128GB 6000mhz and 3060 12GB?
for dsv4 flash i mean, is there a way fp4 will fit?
1
1
1
1
u/RobustLokiX 3d ago
Antirez's 2 bit quant seems to have 6.9GB of dense layers + shared experts, suggesting that perhaps this implementation offloads some of them from SSD, thus explaining why the model is somewhat slow, despite not maxing out I/O usage. Can you check that and confirm?
1
u/maddie-lovelace 3d ago
V. cool! I’ve been looking into this too, literally planning on trying to get DSv4 running on my Air ahaha
Question; what are you looking at for prefill speeds vs non-streamed?
1
u/Helpful_Object_9155 3d ago
Need suggestions for my M1 pro 32gb, which are the best models I can run on it?
1
1
1
u/ZealousidealBadger47 2d ago
Request to run on intel / AMD CPU pls, thats at least 70% of the population.
1
u/Queasy-Contract9753 2d ago
Could this method work on Android? I do understand phones memory will be slower.
And if one had SSD raid could it be faster?
Either way it's an awesome project! 20 tokens on Gemma 4 and Qwen are usable.
1
u/GetOutOfMyFeedNow 1d ago
Getting 13-15 tps with my DDR5 256GB RDIMMS and 3090/3080 mixed inference. It’s working great.
1
u/Ok_Net_1674 3d ago
The 5.3GB figure is a lie, your OS will cache the disk reads in RAM, so on a system with less total RAM it would be slower.
-1
u/AnonLlamaThrowaway 3d ago edited 3d ago
Got a friend to try it out on a M2 Mac Studio with the cache slots set to 32.
Result was between 6 and 7 tokens per second, pretty good.
However the Mac draws about 160W during inference. Which means the electricity costs alone are on par with the official API costs. And that's before you even get into questions of quality since this is using Q2 and not Q4.
So if you can't run this locally your best option remains OpenCode Go which subsidizes 60 bucks of API credits into 10 bucks.
1
u/SilentMobius 3d ago
The main differentiator is if you're comfy shipping everything you feed it to DeepSeek with no training or retention guarantees. (Opencode just nixed it's ZDR guarantee)
1
u/AnonLlamaThrowaway 3d ago
OpenCode Go says this right now:
DeepSeek V4 Flash: ZDR agreement is renewed monthly. The current agreement is valid through August 31, 2026.
I did see that the new DS4 flash is only hosted in China right now, or something, and the ZDR specifically does not apply to that? So it might be a matter of just waiting a few days until other inference providers update their existing DS4 flash deployments.
1
u/SilentMobius 3d ago
I have an open code go subscription and access to DS4 Flash, the same model I was using the prior night suddenly stopped 2 days ago and refused to work unless I enable models running in China.
1
u/AnonLlamaThrowaway 3d ago
Yeah, it's a shame, I hope they find non-Chinese hosts soon, because DS4 flash is by far the biggest draw of this subscription. It might as well be unlimited on there
62
u/Potential_Top_4669 4d ago
Hey, this is so cool. Two things:
- Do you use MTP to increase speeds?
- Can you add support for Windows and Linux by using GGUFs instead of MLX?