Q4_K_M have tensors quantized using the legacy Q5_0 ?

#1
by mukel - opened

Hi, I ported Ling 3 Tiny to my inference engine for the JVM ... and noticed that the official GGUF (Q4_K_M) have tensors quantized to Q5_0.
e.g. https://huggingface.co/inclusionAI/Ling-3.0-tiny-GGUF/tree/main?show_file_info=Ling-3.0-tiny-Q4_K_M.gguf , see the blk.7.attn_k_b.weight tensor.
I think this is an honest mistake in the encoding to GGUF,.Q5_0 is a legacy quant with really poor support in the inference engines,, thus poor performance and worse precision ... those tensors should be encoded using Q4_K or Q6_K.
Please consider fixing this and updating the GGUF Q4_K_M quant, it only takes two minutes minutes, and will make the GGUF Q4_K_M quant pristine.
Otherwise, the model is lit ... I've had a great time playing with it, congrats on the release!

Found the culprit: Q4_K requires the inner dim to be a multiple of 256 ... and the quantization falls back Q5_0 otherwise.

mukel changed discussion status to closed

Sign up or log in to comment