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:
1 parent
164fa6b4a4
commit
1e50e4e045
16 files changed
+76
-39
No files matched your search
+2
-1
@@ -1715,6 +1715,7 @@ def _nvfp4_name(name: str) -> str:
|
||||
|
||||
def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
|
||||
from nvfp4gguf import (
|
||||
add_rounding_arguments,
|
||||
DEFAULT_EARLY_STOP_FLOOR_STALL,
|
||||
DEFAULT_TARGET_LOSS,
|
||||
DEFAULT_EARLY_STOP_STALL,
|
||||
@@ -1768,7 +1769,7 @@ def parse_args(argv: list[str] | None = None) -> argparse.Namespace:
|
||||
help="llama.cpp checkout used for the GGUF reader and writer (default: ~/llama.cpp)")
|
||||
quant.add_argument("--convert-to-quant", type=Path, default=None)
|
||||
quant.add_argument("--device", default="auto")
|
||||
quant.add_argument("--simple", action="store_true", help="Round onto the E2M1 grid without learned rounding")
|
||||
add_rounding_arguments(quant)
|
||||
quant.add_argument("--optimizer", default="auto", choices=("auto", "prodigy", "adamw", "radam", "original"))
|
||||
quant.add_argument("--num-iter", type=int, default=4000)
|
||||
quant.add_argument("--lr", type=float, default=1.0, help="Initial learning rate")
|
||||
|
||||
Reference in new issue
Block a user