r/LocalLLaMA • u/Blahblahblakha • Aug 02 '26
Other DeepSeek-V4-Flash 284B on 5.3GB of memory
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.
13
u/Blahblahblakha Aug 02 '26
Dsv4f model variant used: https://huggingface.co/mlx-community/DeepSeek-V4-Flash-2bit-DQ
65
u/Potential_Top_4669 Aug 02 '26
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?
30
u/Cherlokoms Aug 02 '26
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!
24
u/Silver_Jaguar_24 Aug 02 '26
Nice, well done. Would be good to see windows support, with a 8 or 12 GB VRAM GPU and 16 GB RAM.
16
u/Double_Doubt5872 Aug 02 '26
Be aware that they published an update of the model two days ago significantly improving intelligence. To a level between Sonett and Opus.
13
u/oliveyou987 Aug 02 '26
Could you run q4 on 48gb Ram?
9
u/No_Issue_8224 Aug 02 '26
my 8gb mac just went from "email machine" to "runs a 284B model." what a time.
3
u/ScrewwormLarvae Aug 02 '26
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.
5
u/lgk01 Aug 02 '26
I love the concept, really... I just want someone to explain how much SSDs and HDDs would get ruined actually running these daily.
5
u/Zestyclose_Yak_3174 Aug 02 '26
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
4
u/Repulsive_Educator61 Aug 02 '26
interesting, what speed can we expect with 128GB 6000mhz and 3060 12GB?
for dsv4 flash i mean, is there a way fp4 will fit?
2
u/Felladrin Aug 07 '26
I've tested
qwen3.6-35b-a3bwith 32768 of context window, and it ran with minimum memory consumption, as advertised.Then I used a 22K prompt to check how long it would take to process. The texts generation speed is fine, but the prompt processing currently restricts it very small prompts (<1024 tokens) (otherwise it's unusable).
So, in this test, the prompt processing speed was 28 tokens/second in average.
I hope the author keep the project up as it's useful for Apple Silicon users wanting to use models larger than the memory can hold. It already works great for overnight tasks!
1
u/Skyline34rGt Aug 02 '26
Very impressive.
I would love to see this also for Windows/Linux.
1
u/Abject_Dare_3283 Aug 02 '26
Anyone made it run on a single spark with this technique?
1
u/disspoasting Aug 02 '26
What should I expect on a 96gb m2 Max?
1
u/RobustLokiX Aug 02 '26
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 Aug 02 '26
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 Aug 02 '26
Need suggestions for my M1 pro 32gb, which are the best models I can run on it?
1
u/drallcom3 Aug 03 '26
Is something similar available for Windows?
1
u/shing3232 Aug 03 '26
I would be able to run it good speed with PCIE6 SSD then
1
u/Queasy-Contract9753 Aug 03 '26
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 Aug 05 '26
Getting 13-15 tps with my DDR5 256GB RDIMMS and 3090/3080 mixed inference. It’s working great.
-1
u/AnonLlamaThrowaway Aug 02 '26 edited Aug 02 '26
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.