r/opencode • • Oct 31 '26

👀 About DeepSeek and quantization...

Post image
284 Upvotes

59 comments sorted by

View all comments

Show parent comment

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 .

0

u/overand Oct 31 '26 edited Oct 31 '26

You said "the same like" - I think there's a language problem here.

  • "FP4 is the same as FP8" means equal. So that's similar to saying "3.14 = 3.1415926" (which is wrong)
  • "FP4 is like FP8" is more ambiguous and flexible. That's more like "3.14 ~= 3.1415926" which is much more reasonable.

"The same as" means "identical or effectively identical."

If you mean "almost the same as," you could say "FP4 is effectively indistinguishable from FP8." Or, "FP4 works as well as FP8." I wouldn't have argued with you about those statements, because they're more subjective, and I don't have enough information to agree or disagree.

But "FP4 is the same as FP8" is just incorrect. And "the hardware" has essentially nothing to do with FP4's accuracy, only the speed of processing.

Also, I'm not responding to Dax; I'm responding to you saying "FP4 is the same as FP8." FP4 and FP8 are vastly different in terms of the accuracy of the numbers they represent.

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