convert scripts: make them directly executable

This commit is contained in:
Cebtenzzre 2023-09-29 13:39:35 -04:00 committed by Adam Treat
parent ce7be1db48
commit 4219c0e2e7
3 changed files with 4 additions and 1 deletions

1
gpt4all-backend/scripts/convert_bert_hf_to_gguf.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
from __future__ import annotations
import json

3
gpt4all-backend/scripts/convert_mpt_hf_to_gguf.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
# Convert Hugging Face fine-tuned bloom-like models to ggml format
#
# Usage:
@ -44,7 +45,7 @@ def bytes_to_unicode():
if not 3 <= len(sys.argv) < 5:
print("Usage: python {} model-name dir-output [ftype]".format(Path(__file__).name))
print("Usage: {} model-name dir-output [ftype]".format(Path(__file__).name))
print(" model-name: name of the model to convert. Example: 'bigscience/bloomz-560m'")
print(" dir-output: directory where the output file will be written")
print(" ftype == 0 -> float32")

1
gpt4all-backend/scripts/convert_replit_hf_to_gguf.py Normal file → Executable file
View File

@ -1,3 +1,4 @@
#!/usr/bin/env python3
from __future__ import annotations
import json