py : fix "usage" messages (#2873)

convert-to-gguf python scripts
This commit is contained in:
maddes8cht 2023-08-29 15:51:02 +02:00 committed by GitHub
parent bcce96ba4d
commit 53885d7256
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -48,7 +48,7 @@ def count_model_parts(dir_model: str) -> int:
if len(sys.argv) < 3: 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 == 0 -> float32")
print(" ftype == 1 -> float16") print(" ftype == 1 -> float16")
sys.exit(1) sys.exit(1)

View File

@ -50,7 +50,7 @@ def count_model_parts(dir_model: str) -> int:
if len(sys.argv) < 3: 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 == 0 -> float32")
print(" ftype == 1 -> float16") print(" ftype == 1 -> float16")
sys.exit(1) sys.exit(1)

View File

@ -32,7 +32,7 @@ def count_model_parts(dir_model: str) -> int:
if len(sys.argv) < 3: 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 == 0 -> float32")
print(" ftype == 1 -> float16") print(" ftype == 1 -> float16")

View File

@ -44,7 +44,7 @@ def count_model_parts(dir_model: str) -> int:
if len(sys.argv) < 3: 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 == 0 -> float32")
print(" ftype == 1 -> float16") print(" ftype == 1 -> float16")