Skip to content

Commit 95b3eb0

Browse files
committed
fix outfile
1 parent 802565c commit 95b3eb0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

convert_lora_to_gguf.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ def parse_args() -> argparse.Namespace:
3131
description="Convert a huggingface PEFT LoRA adapter to a GGML compatible file")
3232
parser.add_argument(
3333
"--outfile", type=Path,
34-
help="path to write to; default: based on input.",
34+
help="path to write to; default: based on input. {ftype} will be replaced by the outtype.",
3535
)
3636
parser.add_argument(
3737
"--outtype", type=str, choices=["f32", "f16", "bf16", "q8_0"], default="f16",
@@ -77,7 +77,7 @@ def parse_args() -> argparse.Namespace:
7777
fname_out = args.outfile
7878
else:
7979
# output in the same directory as the model by default
80-
fname_out = dir_lora / 'ggml-lora.gguf'
80+
fname_out = dir_lora / 'ggml-lora-{ftype}.gguf'
8181

8282
if os.path.exists(input_model):
8383
lora_model = torch.load(input_model, map_location="cpu")

0 commit comments

Comments
 (0)