Skip to content

Commit 79a2bc0

Browse files
convert : more detailed convert lora usage docs (#10065)
1 parent fc83a9e commit 79a2bc0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

convert_lora_to_gguf.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,7 +230,7 @@ def get_base_tensor_name(lora_tensor_name: str) -> str:
230230

231231
def parse_args() -> argparse.Namespace:
232232
parser = argparse.ArgumentParser(
233-
description="Convert a huggingface PEFT LoRA adapter to a GGML compatible file")
233+
description="Convert a Hugging Face PEFT LoRA adapter to a GGUF file")
234234
parser.add_argument(
235235
"--outfile", type=Path,
236236
help="path to write to; default: based on input. {ftype} will be replaced by the outtype.",
@@ -257,11 +257,11 @@ def parse_args() -> argparse.Namespace:
257257
)
258258
parser.add_argument(
259259
"--base", type=Path, required=True,
260-
help="directory containing base model file",
260+
help="directory containing Hugging Face model config files (config.json, tokenizer.json) for the base model that the adapter is based on - only config is needed, actual model weights are not required",
261261
)
262262
parser.add_argument(
263263
"lora_path", type=Path,
264-
help="directory containing LoRA adapter file",
264+
help="directory containing Hugging Face PEFT LoRA config (adapter_model.json) and weights (adapter_model.safetensors or adapter_model.bin)",
265265
)
266266

267267
return parser.parse_args()

0 commit comments

Comments
 (0)