r/opencode • • Oct 31 '26

πŸ‘€ About DeepSeek and quantization...

Post image
284 Upvotes

59 comments sorted by

View all comments

12

u/elitegenes Oct 31 '26

FP4 has inferior performance to FP8, which is what being served via official Deepseek API.

Apparently, "dax" thinks people are idiots.

The famous "hmm hmm" is not just a coincidence - it's a direct indicator of using a nerfed model.

6

u/ZveirX Oct 31 '26

It isn't. It's all the same, they just serve the model in FP8 kv cache.

1

u/confused-photon Oct 31 '26

The kv cache is also fp4 natively though?

0

u/ZveirX Oct 31 '26

No, KV cache is far more sensitive to quantization than the model itself. Hence it is recommended to not go lower than FP8 or Q8 for KV cache.

4

u/confused-photon Oct 31 '26

https://huggingface.co/deepseek-ai/DeepSeek-V4.1-Flash

Bro read the model card, CSA2 uses fp4 kv cache

1

u/ZveirX Oct 31 '26

DeepSeek's system fingerprint literally used to say FP8 kv cache on their deployment, unless they forgot to remove that part from the deployment naming itself. Which would make sense if they corrected it recently since it can't be tracked correctly through md5 anymore

2

u/Low-Locksmith-6504 Oct 31 '26

4.1f in general uses a new hybird fp4 KV cache if you open up the original model paper its got some fancy math equations. The model itself runs mixed weights between fp4/fp8 as well. Natively trained that way

1

u/confused-photon Oct 31 '26

Same as with expert weights, packing 2 fp4 into single fp8 value perhaps then?

1

u/ProductResident4634 Nov 01 '26

Deepseeks v4.1 flash model card says they use NVFP4 kv cache

3

u/TheAIPU-guy Oct 31 '26

Models natively trained at fp4 don't have inferior inference performance in fp4 compared to fp8.

1

u/ggPeti Oct 31 '26

Β which is what being served via official Deepseek API

source?

1

u/xmsxms Oct 31 '26

What are you on about? He literally stated the model itself is fp4. Deepseek aren't serving it at fp8.

0

u/sam7oon Oct 31 '26

no there isn't, FP4 hardware compatibility makes it the same like FP8 , and when did you get that official is FP8 vs opencode"s is FP4 ,

pile of crap

2

u/overand Oct 31 '26

FP4 isn't "the same as FP8" regardless of hardware.

Sure, hardware can affect the speed of how a system handles FP4 vs FP8 vs INT8 vs BF16 etc.Β 

But, hardware isn't magically bringing back those 4 bits that were lost / deleted to go from FP8 to FP4.

1

u/Dixxi_Normous1080p Oct 31 '26

It is. There is enough research showing that the sign of th weights is the most important part. There is a difference between naively quantizing a model and integrating into the training.

1

u/sam7oon Oct 31 '26

https://x.com/thdxr/status/2116581467715195278?a=6IK652IyycnDBfVcKV4&s=20

You can share your feedback in a more positive way to the guy directly , they could not be more transparent i think ,

They repeatdly mention its more about the config instead of the Quantizaiotn, and seems they are constantly working on the configuration .

→ More replies (1)

1

u/overand Oct 31 '26

Just for some context, here's an example of 4-bit vs 8-bit images.

  • 4 bit: 16 possible values (colors, in this case)
  • 8 bit: 256 possible values / colors

1

u/Joe_The_Lawn Nov 01 '26 edited Nov 01 '26

You could argue it's more problematic than that, since floating point isn't linear quanitization like integer. Integer quantization is a lot more predictable, but once you start going down to FP8 and then FP4 your lower bounds start to introduce some pretty extreme rounding errors.

1

u/overand Nov 01 '26

Also, the image I picked was hand-created!

But, it's cool, the person I was responding to apparently thinks I'm a bot now. Cuz I guess bots would think to use an EGA vs VGA image comparison of an early 90s adventure game in a discussion about quantizations lol

1

u/sam7oon Nov 01 '26

okey bot