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
@@ -30,4 +30,4 @@ The same directory can be quantized to one ComfyUI NVFP4 safetensors file:
Conversions between formats without quantization is available in the custom commands with `--no-quant`.
Currently the only supported modes are "Quantize to NVFP4" or "Copy without quantizing" (`--no-quant`). I may add other quantization options in the future.
Quantization uses round-to-grid with block-scale and code refinement by default. On Qwen2.5-0.5B this matched convert_to_quant's learned rounding in perplexity and KL at about one sixth of the time. Pass `--learned` to use learned rounding anyway (`--simple` is accepted and is the default). `--no-quant` copies without quantizing.