You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've been experimenting with rANS entropy coding applied to MLX's 4-bit quantized weights.
Key Finding
4-bit quantized LLM weights have Shannon entropy of only ~1.5 bits (not 4 bits) due to their Gaussian distribution. This means we can losslessly compress them further.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I've been experimenting with rANS entropy coding applied to MLX's 4-bit quantized weights.
Key Finding
4-bit quantized LLM weights have Shannon entropy of only ~1.5 bits (not 4 bits) due to their Gaussian distribution. This means we can losslessly compress them further.
Results (M2 Pro)
Prototype
I have a working Metal kernel with fused decode+dequantize+GEMV:
Questions
Here's my prototype and experiments i did https://github.com/drxddy/ecq
Beta Was this translation helpful? Give feedback.
All reactions