Is this static quantization without using imatrix?

#3
by MrPippin - opened

First of all, thank you for your work.

My question is this: did you use any approaches for weighted quantization? Like importance matrix, calibration datasets, and all that? Or is it completely static quantization?

I have to work with texts in three languages: English, Russian and Chinese, and I noticed that your version subjectively makes fewer mistakes when generating answers in a non-English language than the UD-Q4_K_XL quants from Unsloth.

Could this behavior be related to static quantization? The calibration datasets used in dynamic quantization seem to be all in English. Could this somehow affect the neural network's performance with other languages? Perhaps I'm misunderstanding something about this process. Please help me figure it out.

Owner

Actually the MXFP4_MOE quantization does not make a use of an imatrix. It's very simple in structure: quantize all MoE experts to FP4, and everything else to Q8. Very simple.

Do you think that using the importance matrix in dynamic quantization might further worsen the model's ability to respond to other languages ​​or domains of knowledge that were not covered by the calibration dataset, compared to static quantization where, as I understand it, the weights are quantized more uniformly?

Owner

I don't really know. I've created some experimental ones, like this one: https://huggingface.co/noctrex/GLM-4.7-Flash-i1-MXFP4_MOE_XL-exp-GGUF
But I haven't have the time to proper benchmark it yet to see if it's really any better.

Anyway, thank you very much for your work!

Sign up or log in to comment