Join the conversation

Join the community of Machine Learners and AI enthusiasts.

Sign Up
eaddario 
posted an update 1 day ago
Post
4,325
I’m thrilled that the llama.cpp maintainers have merged PR #15550, which brings automatic generation of low-error quantization recipes targeted to a specific file size or total bpw.

Users have now greater control to create high quality quantizations without requiring in-depth knowledge of the model's architecture!

With that out of the way, I'll be focusing on the experimental JQ*_K types ( eaddario/JQ2_K-JQ6_K-Test-Models) alongside a new approach to substantially enhance the automatic recipe generation algorithm.

Having a fixed target bpw makes the size comparison much cleaner. Have you noticed whether changing the imatrix corpus mostly changes the quant type for a few sensitive tensors, or does it tend to reshuffle the recipe more broadly?

·

I haven't looked into that particular situation in any meaningful way, but I have measured (single-model, so conclusion carries a healthy warning!) the PPL and KLD changes when swapping a "relatively correct" imatrix with another also "relatively correct".

So long the imatrices do not contain garbage, have sufficient tokens, and text that "exercises" the model's capabilities (e.g. chat, math, logic, etc.), swapping has some impact but not as large as certain sources claim (in the 100's decimal place if I recall correctly), so I assume the quant type changes were minimal.

Now that llama.cpp supports user-defined sizes, it will be fairly straightforward to test this so long is a controlled experiment: all parameters must remain unchanged (logits, context, batches, chunks, etc), except for the calibration data and ideally over several models (dense, MoEs, etc.).

If you do attempt such test, please share your findings!

In this post