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

+1 -1
View File
@@ -9,7 +9,7 @@ Optionally (--format modelopt / comfy), outputs raw weight tensors (.weight),
weight_scale, weight_scale_2, and .comfy_quant for ModelOpt and ComfyUI.
If the source GGUF contains float or non-NVFP4 weights, weight matrices are quantized
to NVFP4 using convert_to_quant's learned rounding (or simple round-to-grid with --simple).
to NVFP4 using round-to-grid with scale and code refinement (or convert_to_quant's learned rounding with --learned).
If the source GGUF is already NVFP4, weights are repacked into safetensors without loss
of precision.