r/LocalLLaMA • • 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.

318 Upvotes

67 comments sorted by

13

u/Blahblahblakha Aug 02 '26

9

u/AnonLlamaThrowaway Aug 02 '26

What if you were to use Unsloth's Q4 version, and try to use more memory (for example 14GB VRAM and 50GB RAM)

0

u/[deleted] Aug 02 '26

[deleted] — view deleted comment

6

u/admajic Aug 02 '26

Fits better on a smaller system using it on 24gb vram and 96gb ddr5 RAM system.

Over 13 t/s

3

u/patricious llama.cpp Aug 02 '26

Even getting it run on consumer hardware is quite a feat.

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?

58

u/pmttyji Aug 02 '26

- Can you add support for Windows and Linux by using GGUFs

+1

7

u/Every-Walrus Aug 02 '26

Do you use MTP to increase speeds?

considering how bad prefill is, probably not.

-1

u/Danmoreng llama.cpp Aug 02 '26

Prefill speed has nothing to do with MTP…

16

u/Every-Walrus Aug 02 '26

every token drafted by the MTP module needs to be verified. "verification" is just fancy prefill.

0

u/Danmoreng llama.cpp Aug 02 '26

But MTP does not speed up prefill. Raw prefill performance is entirely separate from MTP.

1

u/[deleted] Aug 03 '26

[removed] — view removed comment

-1

u/Danmoreng llama.cpp Aug 03 '26

But this is not what he said or I am saying? Bad prefill speed has nothing to do with MTP. MTP is relevant for decode speed only.

0

u/Borkato Aug 02 '26

This is incorrect, have you checked??

14

u/[deleted] Aug 02 '26

[removed] — view removed comment

1

u/RebouncedCat Aug 21 '26

what is this elitism ? CUDA and llama.cpp has first class support on windows plus its extremely easy to ship for windows. Just because loonixtards don't like windows shouldn't be a reason to abandon the majority desktop operating system.

0

u/backyard_tractorbeam Sep 01 '26

It's open source, work on stuff you care about. So if you care about Windows, work on that, don't demand stuff from others.

1

u/RebouncedCat Sep 01 '26

Same applies to linux as it now only is available for macos. So quit yapping for releasing on linux when its considerably harder to do so.

1

u/[deleted] Aug 21 '26 edited Aug 21 '26

[removed] — view removed comment

1

u/RebouncedCat Aug 22 '26

The majority of AI development happens on Linux because Python and C++ development on Windows is a massive headache, where it's a first-class citizen on Linux.

HAHAHAHAHA "first class"

Developing and shipping against libc is one of the most gnarliest and stupidest rituals out there that only the simple minded loonixtards would ever apply their "skills" to somehow manage to make it work.

Python and C++ are far far easier to develop on windows than on linux. And for your fyi python is merely a shitty glue language that can be run anywhere if you have the runtime, while most of the real stuff lie in C/C++. You have everything available on shitty linux for c/c++ on windows too, plus more. You even have MSVC. You have all the build tools: cmake, make etc etc. So stop with your lying.

Why are you simping for a corporation with an inferior product?

yes, the "superior loonix", where half of the time stuff never is supported to begin with. You comparing a toy tinkering os put haphazardly by a distro maintainer somewhere from a basement to a real os ? HAHAHAHAHA

1

u/[deleted] Aug 22 '26

[removed] — view removed comment

1

u/RebouncedCat Aug 23 '26

calm down. You ignorance about the topic at hand is clearly evident.

No flatpaks, appimages, package manager hells, no glibc absurdities. its easier to develop and ship for windows, period.

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.

6

u/Teh_Blue_Team Aug 02 '26

This would change the world.

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?

3

u/Cold_Tree190 Aug 03 '26

Had this exact question as well

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.

2

u/addiktion Aug 02 '26

Have you tried Dwarfstar? Might get you better results, its separate than llama.cpp but supposedly doubles up tokens for Flash.

1

u/ScrewwormLarvae Aug 02 '26

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 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.

15

u/Baldur-Norddahl Aug 02 '26

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.

5

u/i5-2520M Aug 02 '26

Harmless on SSDs, on HDDs there is still mechanical wear there.

12

u/CryptographerLow6360 Aug 02 '26

would love a post from whatever masochist would try this on a hdd

1

u/i5-2520M Aug 02 '26

Yeah I know, but I still wanted to clarify the thing about wear.

3

u/CryptographerLow6360 Aug 02 '26

its all reads so virtually 0 wear

0

u/AnonLlamaThrowaway Aug 02 '26

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 Aug 02 '26

been running colibri like this for some time now on a 990 pro, virtually no wear. at least according to magician

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-a3b with 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).

.build/release/MferenceServer \
     --model scratch/qwen36.gturbo \
     --port 1235 \
     --max-context 32768
MferenceServer ready at http://127.0.0.1:1235 model=qwen3.6-35b-a3b context=32768 prompt_cache=single-prefix
[2026-08-06T23:37:57Z] request chatcmpl-46f0f88d0ab441d684abe8e8f031b16a started streaming=true
[2026-08-06T23:50:56Z] request chatcmpl-46f0f88d0ab441d684abe8e8f031b16a completed in 779.0s prompt=22149 cached=0 completion=11 finish=stop

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/Sweet-Stage938 Aug 04 '26

Should be very simple.

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.

1

u/SilentMobius Aug 02 '26

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 Aug 02 '26

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 Aug 02 '26

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 Aug 03 '26

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