make round-to-grid with refinement the default, add --learned for learned rounding

On Qwen2.5-0.5B, learned rounding matched round-to-grid in perplexity and KL
(22.38 vs 22.37, 0.0920 vs 0.0919) at about six times the quantize time.
--simple is still accepted as a no-op. Docs and man pages updated.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
zefieandClaude Sonnet 5.5 committed 2026-11-05 19:34:15 -05:00
1 parent 164fa6b4a4
commit 1e50e4e045
16 files changed
+76 -39

No files matched your search

+2 -2
View File
@@ -9,8 +9,8 @@ and llama.cpp.
Optionally (--format modelopt / comfy), outputs raw weight tensors (.weight),
weight_scale, weight_scale_2, and .comfy_quant for ModelOpt and ComfyUI.
Weight matrices are quantized using convert_to_quant's learned rounding (or simple
round-to-grid with --simple). Biases are adjusted using calibration data unless
Weight matrices are quantized using round-to-grid with scale and code refinement (or convert_to_quant's learned
rounding with --learned). Biases are adjusted using calibration data unless
--no-bias-correction is specified. Embeddings, layer norms, and excluded layers
stay in their float format.
"""