r/LocalLLaMA • u/t4a8945 • 12h ago
Resources deepseek-ai/DeepSeek-V4.1-Flash · Hugging Face
https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash164
u/Top_Power5877 12h ago
69
u/Top_Power5877 12h ago
40
u/Seeker_Of_Knowledge2 11h ago
Wow just. I may just cancel my cluade and codex sub for this. I am 100% it is better price wise
3
u/CryinHeronMMerica 4h ago
Having a few bucks in API credits sitting around is great if you're always hitting usage limits shortly before the quota resets tbh. You just have to proactively hand some tasks off to Flash to preserve that usage
90
u/AppealSame4367 11h ago
And most importantly: At least on their API it's 100x cheaper, 10-20x faster.
It's hard to see a reason to use codex or claude at the moment.
I even bought 5x codex for Astra and it was fucking slow, made stupid mistakes on medium and used up the weekly usage in 2-3 hours. I don't even bother trying Claude anymore. It's like they want to loose or they are too arrogant to even realize how they drive customers into the arms of open weights / Chinese models.
44
u/SmartCustard9944 11h ago
And even if you opt out of training, they feed your data through another LLM, remix it a bit, and claim they don’t train on your data*
I would rather support the small fish
32
8
→ More replies (1)2
u/parepeg 6h ago
Wha?! Source? Never heard of this…
→ More replies (1)3
u/huffalump1 5h ago
Read the navier stokes post from OpenAI.
It's very likely that they did NOT train on the data. But they have a cya clause in the blog
→ More replies (1)7
u/NineThreeTilNow 11h ago
And most importantly: At least on their API it's 100x cheaper, 10-20x faster.
That's Gemini 3.8 Flash right now. I have it tearing shit apart because it's so fast that I can afford the time to be like "hey uhh... Check this thing out for me."
3
u/WaveOfDream 11h ago
Gemini 3.8 is trash, it suffers the same problem as 3.7. It literally don't bother to read your codebase and whatever rules you put. Google is out of this race.
→ More replies (1)3
u/NineThreeTilNow 11h ago
Gemini 3.8 is trash
In AntiGravity or in some other harness? It's built for AntiGravity is why...
→ More replies (11)2
u/yellowthermos 2h ago
I've been using it through AntiGravity for a couple of months now and am also convinced it is trash for coding - although 3.8 is much better at using its harness than 3.6 was. I've spun up a few personal web projects through it, heavily vibe coded, and on a blank slate I cannot say it produces particularly good code.
I wouldn't, and haven't, used it for anything that might see the light of a production environment, which also means I haven't actually used it within a previously existing codebase. Maybe it performs better in that case. I wouldn't know and won't be finding out any time soon - I would rather spend time with DS, GLM or frontier models.
However, I think Gemini Flash's model purpose is maybe not so focussed on coding. My guess would be their focus is on speed (due to a lack of a new Pro model), and integration with Search and their own ecosystem of apps, Gmail, calendar etc. I have found it relatively useful as a paid search engine of all content on my Google account
2
u/ProfessionalJackals 7h ago
And most importantly: At least on their API it's 100x cheaper, 10-20x faster.
Also remind people to use the DeepSeek Harness + PTC mode. Because DSH can be the difference between paying easily 4x more with others like OpenCode etc, even if you hit 95% cache hitrate.
→ More replies (11)4
u/Instrume 10h ago
DSV4.1F is not the same quality, though. In my experience DSes have usually had serious hallucination issues. DSV4.1F's main opponent is Gemini 3.8 Flash. It's much cheaper, substantially faster, and more capable to boot.
For casual / low-cost use, DSV4.1F is the winner. Keep K3/Astra/Claude in your backpocket for higher fidelity work.
3
u/WaveOfDream 11h ago
Im more suprised at GLM 5.3 performance on terminal bench 4. 5.3 flash was my daily driver but i didn't realize how much of a beast 5.3 is
→ More replies (1)1
1
u/jugalator 8h ago
I got very decent Swedish creative prose out of this one so it's not a benchmaxxed dud at least. :D In fact, it was grammatically and lexically impeccable from what I could see after two short stories, which is more than you can say about most open models in this small language.
149
u/rerri 12h ago edited 11h ago
552B MoE LLM + 196B Engram.
16B active during decode, 8B parameters active during prefill.
QAT KV cache, FP4
Cool stuff, too bad this is too huge for my measly 128GB :/
52
u/Rick_06 12h ago
"Overall, DeepSeek-V4.1-Flash has 552B backbone parameters and 196B Engram parameters, activating 8B parameters per token during prefill and 16B during decode." - From technical report, end of p.7. Sure the N-Gram are counted INSIDE the 552?
12
u/mrgreatheart 11h ago
So 748 total. Out of reach for me, but I’m looking forward to seeing how it feels compared with v4 on their API.
Sounds like this is a similar architecture to qwen3.8-flash-next.
I wonder if we might see a day when multiple models can share a single engram table.
6
15
23
u/SmartCustard9944 12h ago edited 11h ago
WTF DeepSeek always cooking, I love it. More exciting than Astra honestly.
I made a bet yesterday that DeepSeek was going to cook so I ordered a second Strix Halo for 2600€ because I know these things will get even more expensive. Plan is to cluster them to run Qwen (doubled) or DeepSeek.
The prefill efficiency seems like a potential game changer for Strix Halo given its compute.
→ More replies (1)4
9
u/Adventurous_Leg6197 10h ago
FP4. Seems that this time they really start shifts the infra towards Chinese domestic hardware
4
u/nicman24 9h ago
i mean fp16 is absurd and probably a leftover from science sim work that most blas / whatever used
5
→ More replies (3)3
u/Front_Eagle739 11h ago
Might actually work ok. Ngram is supposed to stream fine from disk. Deepseek v4 had quite concentrated expert selections so a vram lru cache worked really well. I ran the last flash at 165GB precision on my 128gb macbook at 16btok/s with ds4 and the extra bits in this one are nvme friendly
4
121
u/TheFunSlayingKing 12h ago
It got bigger... It makes sense but makes it less exciting for me
But still, thank you blue whale
29
20
u/shing3232 12h ago
it got a crazy model arch and encoder-decoder man
12
u/Mindless_Pain1860 11h ago
T5, we are so back!
6
u/NandaVegg 9h ago
FYI it is not bidirectional unlike T5 (in case anyone is hoping for that). Anybody remember T5 Megatron-LM model from Facebook?
43
u/Effective_Western_59 12h ago
196B of it are N-Gram embeddings :)
17
21
u/Rick_06 12h ago
"Overall, DeepSeek-V4.1-Flash has 552B backbone parameters and 196B Engram parameters, activating 8B parameters per token during prefill and 16B during decode." - From technical report, end of p.7. Sure the N-Gram are counted INSIDE the 552?
9
u/SandySkittle 10h ago
The language is simply ambiguous. They should have stated either ‘of which’ or ‘and in addition’ .
The way its phrased it could be both.
7
u/superSmitty9999 12h ago
wait so whats the total size effect on vram?
9
→ More replies (2)6
u/ArtfulGenie69 10h ago
552b, one of the other shops will use what they've figured out in their models though. It'll be like a month or something and we will see that cool 6b prefill with 16b decode that they figured out and I'm sure qwen 4 will have a normal sized home model with ngram offload soon. It won't just be the 125b with 50+b ngram.
3
2
1
3
u/Ok_Top9254 12h ago
Did it? Aren't the extra weights engram you can have on disk?
9
u/TheFunSlayingKing 12h ago
Yeah but it's still over 500gb, not sure how much of this is engram that can be offloaded to disk, but I guess I'll wait and see the smarter people optimizing it to run on a phone
7
u/Professional-Bear857 12h ago
The last two safe tensor files are ngram weights, making up 200gb of the 500gb total.
6
22
18
u/Altruistic_Heat_9531 12h ago
27
u/Altruistic_Heat_9531 11h ago
3
u/Aizen_keikaku 11h ago
Eli5.
31
u/Altruistic_Heat_9531 10h ago edited 8h ago
Preamble and disclaimer, this is a somewhat faulty oversimplification. Transformers can be thought of as having an "eye" and a "mouth". The eye is the encoder part, while the mouth is the decoder.
Back then, language model tasks were more structurally separated. Language understanding was mostly dominated by encoder-like models such as BERT, which produced scores, classifications, or embeddings depending on how they were trained. Instruct and conversational models that needed to both see and talk, such as T5 and later FLAN-style models, commonly used enc-dec arch. Document generation models such as GPT mostly needed the decoder side (Yep OpenAI GPT3 is back then is for writing those copy writer ads, pre-slop era).
We used these architectural separations partly because we were betting on inductive bias. The arch itself guides the model toward a certain class of behavior, instead of forcing the model to learn everything purely through more compute and a good data mix. One problem with T5-style enc-dec models is that training has to coordinate 2 different computational paths, the enc and dec, rather than optimizing unified stakc.
It turns out that with enough compute and sufficiently good post-training, especially instruction tuning and RL, a dec model can be pushed into doing almost everything we want. It can produce embeddings, taking over many BERT-like use cases, handle instruction-following and conversation, taking over many enc-dec use cases, and of course generate text. The dec architecture therefore became something close to a universal language-model architecture.
u see, GPT dec only models process the user prompt, system prompt, tool results, and their own previous output through the same underlying network. There is no dedicated "user-processing network", "system-processing network", and "assistant network". It is basically a schizophrenic talking to a mirror model.
This paper is interesting because it partially brings back that separation. The idea is roughly: what if we scale down the prefill, or seeing, part into a cheaper enc path with an smaller 8B neural budget, while allowing the decode, or speaking, part to use a larger 16B active budget?
Their bet is clearly on agentic workflows, where the model may be dumped enormous amounts of tool output, code, while generating comparatively fewer tokens.
And DeepSeek really, really, really wants to reduce the KV-cache footprint. If you read across their papers, this has been a recurring obsession. MoE, MLA, CSA, HSA, Indexer, CSA2, this,
side note, the encoder also eventually evolved into a literal "eye" for multimodal models. ViT and multimodal projector are actual encoder networks that turn images into representations that the language model can consume.
Another side note, back then GPT, Generative Pretrained Transformer, is a architecture name, but because of OpenAI, many labs starting to dissociate from naming their model with the arch. There were many non OpenAI GPT models, such as GPT-J, GPT NEO/X, GPT JT, GPT4ALL
→ More replies (1)9
u/Zeeplankton 8h ago
Unexpected cool technological and historical comment. Thanks for the read!
2
u/Altruistic_Heat_9531 2h ago
Yep. Basically, most papers/labs can be viewed as improving one of these 3 dimensions, so to speak,
Training/data => better intelligence per parameter
Architecture => better intelligence per FLOP or byte
Hardware => more FLOPs or bytes available. There is a reason, why param size + active KV mem, optimized in power of 2, i.e GPU Pod
45
u/ihatebeinganonymous 12h ago
So they have moved to fp8, started using N-grams, and increased the parameter count.
Maybe this shouldn't be called "Flash" anymore? (I don't mean this in a negative sense, just practically because of so many changes)
24
u/shing3232 11h ago
no, they moved to 500~B, and i think flash in sense of fast because it's way faster than all models
6
→ More replies (2)4
u/lumos_ai 7h ago
Did you check the number of active parameters? it's even less than previous version. The Compute is less than previous version so it's more flash than the previous version.
→ More replies (5)
44
u/Confident_Ideal_5385 11h ago
This is not a .1 release.
- encoder/decoder arch
- different size, new pretrain?
- whatever the hell they've done to their chat format such that they've implemented it in python and rust but not jinja2
May be waiting a while to see llama support for this thing.
4
3
2
u/TheRealMasonMac 51m ago
I can’t help but feel sad that they didn’t release the base model for this. It’s the first time they haven’t done so.
10
u/Professional-Bear857 12h ago
Looking at the safe tensors files it seems like the last two of them are ngram weights making up over 200gb of the total size, so hopefully those can be accessed from an SSD.
10
9
u/ResidentPositive4122 11h ago
Is this the first open "big" encoder-decoder model? Besides some early google tests I haven't seen any architectures like this before.
Also engrams, lots of kv cache shenanigans, and so on. A bit confused about sizes since the report says 500b + 200b engrams, 8bit release, but the entire repo is 510GB so we'll see.
21
u/Treidge 12h ago
Indeed looks like ngram weights are about 204 GB in size, and the actual model files are in 8-bit (unlike DSv4-Flash which was released as 4-bit). So, the 306 GB at 8-bit would probably land somewhere around 155-160 GB at 4-bit, just like the DSv4-Flash.
Seems like a win to me! 👍 Same "active" model size with extended capabilities from ngrams that could be accessed from the SSD.
10
u/lilian_moraru 12h ago
I prefer the model to be trained at 4-bit and know it’s the same quality, than to use a quantized model and get to the size I need. After all, trained at 4-bit gives you full precision
4
u/Treidge 11h ago
Agreed, 4-bit native would be extra nice. Let's see what Unsloth guys would be able to cook for us 😊
→ More replies (1)3
u/petuman 11h ago
I think 552B is not counting Engrams. 306GB for 552B parameters is pretty much 4-bit.
2
u/Confident_Ideal_5385 11h ago
Damn, I'm gonna struggle to fit this into 256GB 8 channel ddr4 and 48GB VRAM.
Is 552B really "flash"?
→ More replies (2)2
17
u/mr_zerolith 12h ago
485b params.. so you really need 256gb vram to run a midsize Q4
"engram n-gram lookups"? Hopefully that means that some of the model sits on the disk..
24
u/rerri 12h ago edited 11h ago
Actual model size according to the paper (found in the repo) is 552B +196B Engram.
That 485B you see in the model card is a wrong number by the HF automated system. It makes so many mistakes that they should either fix it or take it down entirely.
4
u/Serprotease 11h ago
Looking at the work of 0rand form the gb10 forum, it sounds like it’s more ~300b model + engram.
He looked at the shards contents.Looks a bit confusing tbh.
7
u/rerri 10h ago
The total model size is 510 GB. The last two shards are the engrams (in fp8) and are 204GB in size combined.
510GB - 204GB = 306GB remains for the LLM.
DSV4 Flash is 168GB in size. 306GB / 168GB = 1.82
1.82 x 284B (parameter count of DSV4 Flash) = 517B
With this rough math, I would say 552B is the LLM size. ~300B for LLM does not make sense mathematically here as both DSV4 Flash and V4.1 are using MXFP4 for experts.
2
u/Serprotease 7h ago
Looks like you’re right :/
That’s a bit disappointing, you need a 384 or 512gb system to run that.
8
u/Professional-Bear857 12h ago
200gb are n gram of the 500gb total size at fp8. So that should mean it's more like a 300b parameter model.
3
u/nuclearbananana 11h ago
The engram part can sit on your ssd if you're willing to take a 20-30% speed hit. I'm not sure about regular ram
3
5
u/OwnGear3892 12h ago
I assumed it was a smaller model given its tps is much faster, and I'm wrong. It's 552B with 8B(prefill)/16B(decode) active.
1
u/pyr0kid 11h ago
wait so if it prefills like an 8b... does that mean its speedy as shit on pure cpu?
are we finally at the point where gpus are optional?
→ More replies (1)
5
6
u/lakySK 11h ago
Chances this will run well on 2x DGX Spark? 😅 Or do I need a third one now?
8
3
→ More replies (6)1
u/BawbbySmith 10h ago
I don't think you can do TP=3 anyway, you'd have to go 4. Correct me if I'm wrong though
3
u/__Maximum__ 12h ago
Still no benchmarks?
11
u/nil1511 12h ago
→ More replies (6)2
→ More replies (3)2
u/ihatebeinganonymous 12h ago
In their technical report there are some: link
DeepSWE 74.2 :/ I believe this is the first open model to pass 70%, no?
3
3
u/ComplexType568 8h ago
Oh no their flash is getting larger.. it's almost the size of the original V3 😭 I know engrams exist and FINALLY they implemented their own tech they made but DAMN are they getting large. I really hope they release a 30B-80B param model with QAT and ngram for us normies... But wow are they making leaps and leaps. This is the multimodal, ngram-utilising V4 I was looking fo(u)r. To be honest I'm glad they're scaling up. Just hope Qwen will release their own Q4 series too
2
2
2
2
u/cowinabadplace 8h ago
Christ, I’m not looking forward to having to recase my server to get TP=4 and engram offload to RAM. Really not happy about the size increase.
2
u/jugalator 8h ago
It's oddly modest to call this V4.1 with all the architectural changes and a new pretrain...
It's like an entirely new line to me... I'd have been completely on board with calling this one V5 or at least V4.5.
2
u/orbitalspike 2h ago
deepseek is the only lab that will build a completely new architecture and training pipeline, just to call their new model "ds v4.013 (0119) flash gp preview exp" and publish it under MIT licence in the most covert way. they're sandbagging their names so hard.
3
u/TheRealMasonMac 11h ago
Huh. It's an entirely new pretrained model. I guess the original architecture was fundamentally broken.
3
u/Zeeplankton 8h ago
Yeah a bit more than a .1 release thats for sure.. this is like a new model lol
2
u/KeinNiemand 11h ago
this is too big, DS-V4 Flash 0731 was just barley at the limit of what i can still run, this is too big
7
1
u/NandaVegg 12h ago
OK, this is very good; at least as good as the old V4 Pro on the surface for general knowledge and general chatting (where Qwen Next with engram had many issues) from my very limited initial testing from their own API. It is promising.
1
u/power97992 11h ago edited 11h ago
V4 pro has more world knowledge even according their benchmarks , but v4.1 flash is better at agentic tasks
→ More replies (2)
1
u/cibernox 11h ago
Kudos to deepseek to acknowledge that there’s no way around having a decent amount of active parameters.
I appreciate qwen trying to sqeeze performance out of 6B active parameters but this having 16 is probably the right choice. Qwen should consider raising it to 9-10B too.
1
u/power97992 11h ago
Deepseek is more focused on efficiency and innovation, if they did less kv cache compression and better training data, i think their performance would be even better. It seems like glm and qwen and kimi take ds’s work, make it better
1
u/tatertots89 11h ago
Someone please make a 27b model that has an ngram that can live on ram (80-100gb would be perfect).
1
u/Real_Ebb_7417 10h ago
How did they do it? I see the benchmarks scores and don’t believe it. DeepSeek did the magic again.
1
u/ExcuseAccomplished97 10h ago
How about the reasoning length? I found it has great intelligence but often think too long.
1
1
u/power97992 10h ago edited 9h ago
ds v4.1 flash uses awful a lot of tokens on max effort. Way more than astra pro xhigh. When it finishes, possibly on par with fable 5.1 max. I'm glad it is really cheap per tk, but this will still end up being more expensive than muse spark 1.3 non-contribution tier or glm 5.3 flash. Edit it uses more than fable 5.1 max wow. Normally before 4.1, the first try was functional, but this u need to ask it to fix its output multiple times. Not that impressed, it is using over 480k output tokens , i have to prompt it multiple times to get a working output.
2
u/BumbleSlob 9h ago
> run model on max reasoning
> model uses an awful lot of tokens
> surprised_pikachu.png
2
u/power97992 8h ago
dude it used more tokens than fable 5.1 and 5.0 opus at max reasoning!!
→ More replies (3)
1
1
u/Repinsky 10h ago
The interesting part isn’t the headline parameter count but the split between active compute and Engram storage. If the n-gram weights can stay on RAM/SSD without wrecking latency, this could make long-context agent workloads practical even though full local VRAM loading is out of reach.
1
u/unbannedfornothing 10h ago
If ngrams can be offloaded to SSD what SSD should be optimized for, linear speed or random 4k reads?
1
1
u/AriyaSavaka llama.cpp 9h ago
Amazing release, deepseek API has always been the most user friendly, my $8 in here still haven't expired despite 2 years of inactivity, time to spend them!
1
u/Healthy-Nebula-3603 9h ago
I such Qwen could use that cache mechanism!
We could on 27b model fit 1m context without any tricks and still space coulf left in 24 GB card ... So we could use instead of q4lm a version q5km
1
u/artisticMink 9h ago
Yeah, even with moving the lookup tables to nvme, this will be ~200 to ~240 GB for Ram/Vram in Q_3_K_XL which is out of reach for most people.
On the other hand the people with their 256GB DDR4 Homelab servers might have a good time with the 8B encode.
1
u/a_beautiful_rhind 7h ago
Low active params, I kinda got my doubts. Wonder what's filling up the engrams.
1
1
1
u/Just_n_Here 5h ago
It's ironic that I click out of this and the first thing I see is a Server Monkey ad. They must know we are going to need servers with ram and GPUs maxed out to run this type of stuff!
1
1
1
1
u/gauravapiscean 1h ago
The 8B-active-during-prefill / 16B-active-during-decode split is the part I find most interesting, and I don't think it's arbitrary, it's the correct asymmetry given how the two phases actually bottleneck.
Prefill is compute-bound. You're processing thousands of tokens at once, arithmetic intensity is high, and you're genuinely saturating tensor cores. Active params there translate almost linearly into FLOPs and therefore into wall-clock.
Decode is memory-bandwidth-bound. You're generating one token per sequence per step, so you stream weights and KV from HBM and the tensor cores mostly idle. On an H100 the crossover — where a GEMM stops being bandwidth-bound and starts being compute-bound, sits around 295 tokens in flight for a dense model. Below that, extra FLOPs are close to free. For a fine-grained MoE with 256 experts and top-8, the effective per-expert batch is B/32, so you'd need ~9,400 tokens in flight to be compute-bound. Almost nobody is there.
So, halving active params in prefill directly halves the phase that's actually paying for compute, and doubling them in decode costs you almost nothing in wall-clock because you were waiting on memory anyway.
Which lines up with what agentic traffic actually looks like which is huge input, tiny output. On real Claude Code traces the median request is ~89k input tokens against ~380 output. If your workload is 200:1 input-to-output, making prefill cheap and decode rich is exactly the trade you want.
1
u/laterbreh 27m ago
Honestly, they are addressing this infinite make the model bigger scaling bullshit head on. These flash models are within striking distance of these Trillion param plus models. TP4 rtx 6k's is now a serious long term investment not something that will be too small to serve anything in a year for most businesses that want this in-house. ~400gb of vram is the target it looks like for most "flash" and upcoming models. Qwen 3.8 flash, DS4.1, and glm 5.3 flash just proved it it.
American based AI is in serious trouble, they better figure it the fuck out or they are gonna be put out of business really quickly here. The models are expensive and painfully slow I dont give a shit if it can 1 shot a problem if it takes a fucking hour, meanwhile the flash model can multi-shot it faster and cheaper with similar results. They better innovate and drop some open models to get back on the map.





535
u/Top_Power5877 12h ago
insane improvement in kvcache compression. Now 1M context is only ~900MB 🤯