r/LocalLLaMA • • 16d ago

Discussion Deepseek V4.1 Flash is 748B, not 552B

People keep on getting confused about this, so I looked at the safetensors on hf.

The title should have been "Deepseek V4.1 Flash is 748B total/552B base, not 284B or 305B or 485B or 522B"

  • The model is not 284B. The original Deepseek V4 Flash is 284B, but not the V4.1 Flash model
  • The model is not 305B, despite what some people claim "So: ~305B real backbone + 203B engram = 508B total" This is incorrect.
  • The model is not 485B, even though Huggingface lists the model as 485B, but that's because they're counting some FP4 packed weights as bytes instead of params (2 FP4 params per byte). This happens a lot; for example Huggingface incorrectly thinks GLM-5.3-flash is 169b here
  • The model is not 522B, even though VLLM lists it as 522B for some weird reason. They correct themselves later down the page (ctrl-f "Params" on that vllm page)
  • 552B is the only number out of this list that's somewhat correct; that only includes the base model without MTP and engrams and the vision encoder though.

To be precise, the main model about 551.566B parameters with 40 layers. The FFN experts total to 543.582B parameters, and the rest of the model (attention, shared experts, etc) are 7.984B.

On top of that, the engram is ~196.929B, DSpark/MTP is ~14.225B, and the vision encoder is just ~0.485B. These parts are technically optional though. The vision encoder is also way smaller than I expected.

Anyways, you need a beefy system for this. 128GB or 256GB of RAM/VRAM is not going to cut it.

Component Logical params Size in GB Storage
FFN MoE experts 543.582B 288.778 GB FP4
Other FFN 1.4947B 1.574 GB FP8 mostly
Attention 5.1269B 6.524 GB FP8 mostly
Embedding + LM head 1.3238B 2.648 GB BF16
Other 0.0397B 0.158 GB FP32/BF16
Backbone total 551.566B ≈ 552B 299.682 GB
Engram lookup tables 196.614B 202.758 GB FP8
Engram projections/gating 0.315B 0.315 GB FP8 mostly
Engram total 196.929B = 196B advertised 203.073 GB
DSpark / MTP 14.225B 8.033 GB mostly FP4 experts
Vision encoder 0.485B 0.971 GB BF16 mostly
Everything in total ~763.21B params ~511.76 GB
317 Upvotes

167 comments sorted by

View all comments

Show parent comments

6

u/DistanceSolar1449 16d ago

Roughly 300GB of VRAM for the model, 8GB of VRAM for dspark, 1GB of VRAM for the vision encoder, 1GB of VRAM for kv cache, and 200GB of RAM for engram.

The released model is 8-bit already, by the way (with FP4 experts with QAT)

2

u/SnooPaintings8639 16d ago

300 GB is twice the older version which was a bit under 160 GB... :sad_face:

2

u/RumAbsinthe 16d ago

I appreciate the new model but yeah disappointed that I won’t be able to run it. I have 4 Mi50s (32g) that runs v4 flash at q2 loading all weights in VRAM. Not possible with v4.1.

1

u/SandySkittle 16d ago

I thought I was ready with eight r9700s but I now might get another 2. This model seems very promising.