From 6a83bce114f06ba5f4c84725925c7af3d6052f16 Mon Sep 17 00:00:00 2001 From: Galunid Date: Tue, 7 Nov 2023 23:48:17 +0100 Subject: [PATCH] parse_args improvements --- convert-hf-to-gguf.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/convert-hf-to-gguf.py b/convert-hf-to-gguf.py index 778f285e6..4b87a3c52 100755 --- a/convert-hf-to-gguf.py +++ b/convert-hf-to-gguf.py @@ -837,13 +837,13 @@ def parse_args() -> argparse.Namespace: help="path to write to; default: based on input", ) parser.add_argument( - "--outtype", type=str, choices=["f32", "f16"], default="f16", nargs='?', - help="output format - use 0 for float32, 1 for float16", + "--outtype", type=str, choices=["f32", "f16"], default="f16", + help="output format - use f32 for float32, f16 for float16", ) parser.add_argument("--bigendian", action="store_true", help="model is executed on big endian machine") parser.add_argument( "model", type=Path, - help="directory containing model file, or model file itself (*.bin)", + help="directory containing model file", ) return parser.parse_args()