logoalt Hacker News

murkt • today at 6:08 AM • 1 reply • view on HN

I don’t understand how they go from 13B parameters to 0.9 GB using 0.1 bit per weight. Shouldn’t it be 13B * 0.1 / 8 bits per byte ~= 0.16 GB?

Compressing from FP16 to 0.1 should be 160x, not 11 point something.


Replies

NitpickLawyer • today at 6:39 AM

Usually when quantising a transformer arch you only work on linear layers. And sometimes you still keep some fp16 (learnable) scales to help with not nuking everything (<1bpw is really really impactful).

From the paper:

> The gap between the effective BPW and the compression factor arises because quantization is applied only to the Transformer blocks, while components like the embedding layer and the lm_head remain in FP16.