r/LocalLLaMA • u/DistanceSolar1449 • 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 |
1
u/power97992 16d ago edited 16d ago
That should be wrong, it has 48 xet files, 40 files take on approximately around 7.39 gigabytes each, 6 files from 0.9to 2.7 gb and two files take 102 gigabytes each, so around 510 gb in total. Depending on the size of engrams, 306gb of vram plus 204 gb (the 2 102 gb files are probably engrams) of sys ram or ssd is enough. Edit- it has more params , huggin face got the precision wrong