Skip to content

Commit

Permalink
py : fix "usage" messages (ggml-org#2873)
Browse files Browse the repository at this point in the history
convert-to-gguf python scripts
  • Loading branch information
maddes8cht authored Aug 29, 2023
1 parent bcce96b commit 53885d7
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion convert-falcon-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def count_model_parts(dir_model: str) -> int:


if len(sys.argv) < 3:
print("Usage: convert-h5-to-ggml.py dir-model ftype\n")
print(f"Usage: python {sys.argv[0]} dir-model ftype\n")
print(" ftype == 0 -> float32")
print(" ftype == 1 -> float16")
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion convert-gptneox-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def count_model_parts(dir_model: str) -> int:


if len(sys.argv) < 3:
print("Usage: convert-h5-to-ggml.py dir-model ftype\n")
print(f"Usage: python {sys.argv[0]} dir-model ftype\n")
print(" ftype == 0 -> float32")
print(" ftype == 1 -> float16")
sys.exit(1)
Expand Down
2 changes: 1 addition & 1 deletion convert-llama-7b-pth-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def count_model_parts(dir_model: str) -> int:


if len(sys.argv) < 3:
print("Usage: convert-h5-to-ggml.py dir-model ftype\n")
print(f"Usage: python {sys.argv[0]} dir-model ftype\n")
print(" ftype == 0 -> float32")
print(" ftype == 1 -> float16")

Expand Down
2 changes: 1 addition & 1 deletion convert-llama-hf-to-gguf.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ def count_model_parts(dir_model: str) -> int:


if len(sys.argv) < 3:
print("Usage: convert-h5-to-ggml.py dir-model ftype\n")
print(f"Usage: python {sys.argv[0]} dir-model ftype\n")
print(" ftype == 0 -> float32")
print(" ftype == 1 -> float16")

Expand Down

0 comments on commit 53885d7

Please sign in to comment.