Skip to content

Commit 98f2d0e

Browse files
committed
convert-hf : more consistent formatting of cmdline args
1 parent 3e5e0dc commit 98f2d0e

File tree

1 file changed

+18
-5
lines changed

1 file changed

+18
-5
lines changed

convert-hf-to-gguf.py

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,8 @@ def parse_args() -> argparse.Namespace:
22362236
)
22372237
parser.add_argument(
22382238
"--awq-path", type=Path, default=None,
2239-
help="Path to scale awq cache file")
2239+
help="Path to scale awq cache file",
2240+
)
22402241
parser.add_argument(
22412242
"--outfile", type=Path,
22422243
help="path to write to; default: based on input",
@@ -2245,14 +2246,26 @@ def parse_args() -> argparse.Namespace:
22452246
"--outtype", type=str, choices=["f32", "f16"], default="f16",
22462247
help="output format - use f32 for float32, f16 for float16",
22472248
)
2248-
parser.add_argument("--bigendian", action="store_true", help="model is executed on big endian machine")
2249+
parser.add_argument(
2250+
"--bigendian", action="store_true",
2251+
help="model is executed on big endian machine",
2252+
)
22492253
parser.add_argument(
22502254
"model", type=Path,
22512255
help="directory containing model file",
22522256
)
2253-
parser.add_argument("--use-temp-file", action="store_true", help="use the tempfile library while processing (helpful when running out of memory, process killed)")
2254-
parser.add_argument("--model-name", type=str, default=None, help="name of the model")
2255-
parser.add_argument("--verbose", action="store_true", help="increase output verbosity")
2257+
parser.add_argument(
2258+
"--use-temp-file", action="store_true",
2259+
help="use the tempfile library while processing (helpful when running out of memory, process killed)",
2260+
)
2261+
parser.add_argument(
2262+
"--model-name", type=str, default=None,
2263+
help="name of the model",
2264+
)
2265+
parser.add_argument(
2266+
"--verbose", action="store_true",
2267+
help="increase output verbosity",
2268+
)
22562269

22572270
return parser.parse_args()
22582271

0 commit comments

Comments
 (0)