mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-07-31 15:22:48 +00:00
convert scripts: make them directly executable
This commit is contained in:
parent
ce7be1db48
commit
4219c0e2e7
1
gpt4all-backend/scripts/convert_bert_hf_to_gguf.py
Normal file → Executable file
1
gpt4all-backend/scripts/convert_bert_hf_to_gguf.py
Normal file → Executable 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
3
gpt4all-backend/scripts/convert_mpt_hf_to_gguf.py
Normal file → Executable 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
1
gpt4all-backend/scripts/convert_replit_hf_to_gguf.py
Normal file → Executable file
@ -1,3 +1,4 @@
|
||||
#!/usr/bin/env python3
|
||||
from __future__ import annotations
|
||||
|
||||
import json
|
||||
|
Loading…
Reference in New Issue
Block a user