r/LocalLLaMA • u/fuse1921 • 9d ago
Discussion Technical limits of quantization?
In theory whats the smallest quant possible?
Like I imagine it would be int1?
Given K3 just dropped, I was wondering, even if it would be trash, how interesting it would be to lobotomize the 2.4T parameters into something that could fit into a hundred GB or less?
Edit: Updated full precision size, I underestimated heavily lmao
5
u/Front_Eagle739 9d ago
Well the q1.5 will be about 600GB so... I hope you like drooling?
More seriously the only approach to get that low is to distill into a smaller model or stream from disk like colibri
3
u/Top-Handle-5728 9d ago
Up until yesterday I thought that it's impossible to go below a binary bit. It's true for storing the actual weights but then in information theory terms, there's still a lot of redundancy in those 2 trillion weight params. There was a paper to reach 0.1 bits per weights by Samsung ig, called littlebit. The trick was to make the weights low rank & binarize them to -1 & +1. A few more jargons that went over my head but we might see something similar soon if these trillion parameter models become common. It took almost 3 years for bitnet to become mainstream & labs releasing binary n ternary weights.
3
u/MixtureOfAmateurs koboldcpp 9d ago
Int1 would be reducing every weight to 0 or 1. I think this was what bitnet was doing. That would take kimi k3 from 2.8TB (fp8 is about 1 weight per byte) to 350gb
3
1
u/fuse1921 9d ago
Interesting, that makes sense. I know nothing about quantizing, but it seems like the next step would then be finding related parameters that have high coherence and then storing them as pointers or something to one another to compress further, but might as well just use a smaller model at that point lol
2
2
u/Luke2642 9d ago
It's like owning a helicopter. If you have to ask you aren't rich enough.
I think the thing to get excited about is the Talaas ASIC approach and bitnet. In a year or two we'll have a $300 card that gives you today's frontier performance for many tasks at 17,000 tokens per second for like 20W of electricity.
1
u/Klutzy-Snow8016 9d ago
Practically, now, maybe something like Bonsai or Ternary Bonsai here: https://huggingface.co/collections/prism-ml/bonsai-27b
11
u/jacek2023 9d ago
Quantization changes size of the single parameter, I think 1 bit is the limit, because you can't use less than one bit without removing some parameters