I think the difficult aspect is that you have to re-train the model after conversion.
I assume you could use this during training (QAT) similar to ternary quantization.
It’s a bit beyond me, but it seems promising–at least for general knowledge models.
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.
I think the difficult aspect is that you have to re-train the model after conversion. I assume you could use this during training (QAT) similar to ternary quantization.
It’s a bit beyond me, but it seems promising–at least for general knowledge models.
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.
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.
Fascinating. But is the LLM still of any use?
Figure 1 shows perplexity get decimated as you quantize (less in the case of this approach?). Hope I'm reading it right
if you quantize a model it becomes retarded https://huggingface.co/Trxon/quatizedqwen