| ▲ | Retro_Dev 39 minutes ago | |
These quantizations seem really impressive, but I know that the file size is decreasing... What information is actually lost? Surely it's not just reduced noise and more compact, because there's no way that these benchmarks can cover the entirety of the information in the training data. | ||
| ▲ | mmastrac 13 minutes ago | parent | next [-] | |
The trellis quants basically rotate the weights in a way so you end up with something that looks like Gaussian noise, then do a search over the optimum set of bits to encode that noise. What you end up with is a close approximation to the old weights (up to a certain point), but with the energy of the values "shaved". You lose the fine detail but keep the higher structure. Models are generally pretty resilient to it, especially larger ones. An over-quantized model tends to lose fine detail in its knowledge, lose some ability to track/accumulate accurately, and occasionally loops (because the activations are rounded off too much and lose energy, and it gets trapped in a state where it just can't escape). When you quantize you try and get as big of a mix of calibration data as possible. You don't need to match the training _set_, just enough data that you exercise 99.999% of the most well-trod paths through the model. Anything outside of the calibration set is a crap-shoot as to whether it gets kept or not, but a well-balanced calibration set will keep performance near-unquantized. On what calibration does: during quantization you try to minimize the error between the run of the model with original weights and the run of the model with the quant'd weights. Calibration data lets you weight the error into the paths that are actually chosen with real data. Apologies, this is a bit of a hand-wavey comment but it's sort of how you can look at it without needing to deal with the hairier math. | ||
| ▲ | 10 minutes ago | parent | prev | next [-] | |
| [deleted] | ||
| ▲ | salviati 27 minutes ago | parent | prev [-] | |
It is possible that there is redundancy being removed. I'm not saying I believe that is the case, but I think it can't be ruled out. The information being thrown away might just be redundant, already present. | ||