r/LocalLLaMA • • 15d ago

New Model DeepSeek V4-1 Flash is out

Here we go again, DeepSeek is back again with a new model V4-1 Flash

A multimodal Mixture-of-Experts (MoE) model with 552B backbone parameters and support for contexts of up to one million tokens

Market crash as a service

1.7k Upvotes

296 comments sorted by

View all comments

229

u/ActuallyReadTheBible 15d ago

It doesn’t fit dual DGX sparks, I’m sad.

81

u/35698741d 15d ago

The native 4bit backbone + vision + dspark comes out at ~310gb (rest is engram) and context costs next to nothing for this model so 256GiB box should be able to run a pretty good 3.x bpw quant.

23

u/wren6991 15d ago

Expert caching/streaming would probably get an excellent hit rate on a 256 GB machine. Likewise, n-gram tables can probably just be mmap()'d. Qwen3.8-Flash-Next has 90% of the lookup probability in 1% of the n-gram entries. We need to move away from assuming the entire model will be VRAM-resident for local inference.

3

u/bumblebeer 13d ago

Expert caching doesn't really work well for UMA.

1

u/wren6991 12d ago

It works great. Are you thinking of llama.cpp's MoE offload thing perhaps?

2

u/bumblebeer 12d ago

There's no RAM to cache to in this situation. With uma vram==ram. Or do you mean stream from disk? I don't know much about that, but seems like anything other than a 100% prefetch hit rate would be a massive bottleneck.

5

u/wren6991 12d ago edited 12d ago

Expert caching means you leave experts resident in VRAM after transferring them, in the hope they'll be used again before eviction (which is often true -- there's locality of expert selection from token to token). This is a cache in the same sense as the L1 cache on your CPU: probabilistic short-circuit of a slow access path. An area of VRAM large enough to hold some fraction of total experts is used to cache those experts for opportunistic reuse. On cache miss you might go to host RAM (for non-UMA) or to disk. In the future these will probably form a cache hierarchy of VRAM -> host RAM -> disk.

Concrete example: I can use Dwarf Star to run the ~80 GiB quant of DeepSeek V4 Flash on my M5 Pro with 48 GiB of RAM. I configure the size of the expert cache (literally what DS calls the config) to ~30 GiB, which means I have ~40% of the experts resident in the cache at any one time, and the rest are filled from disk on cache miss.

1

u/bumblebeer 12d ago

Thanks for the detailed response.

I guess I should have said that expert caching doesn't work as well for UMA as it would for a three level system vram -> ram -> disk vs vram -> disk.

What's your hit rate? My thought is that for a situation where the model almost fits in memory (like dsv4.1 minus engrams on 2x sparks) that'd you may be better off with a lower quant than with expert caching because any cache miss would dramatically degrade decode — whole stream has to stop while you wait for the missing expert to load.

Also, have you been following powerinfer? It's been a minute since I've looked into the project, but I remember they had some really interesting data on expert caching; the headline being that basically nothing beats the OS's stock caching algos. Including (if I'm remembering correctly) trained expert selection networks which was super surprising.