Spaces:
Running
Running
Update scripts/download_model.py
Browse files- scripts/download_model.py +21 -9
scripts/download_model.py
CHANGED
|
@@ -71,15 +71,27 @@ def check_disk_space(required_gb=3):
|
|
| 71 |
return True
|
| 72 |
|
| 73 |
def main():
|
| 74 |
-
parser = argparse.ArgumentParser(description="Download
|
| 75 |
-
parser.add_argument(
|
| 76 |
-
|
| 77 |
-
|
| 78 |
-
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
|
| 84 |
args = parser.parse_args()
|
| 85 |
|
|
|
|
| 71 |
return True
|
| 72 |
|
| 73 |
def main():
|
| 74 |
+
parser = argparse.ArgumentParser(description="Download TinyLlama-1.1B-Chat model")
|
| 75 |
+
parser.add_argument(
|
| 76 |
+
"--repo",
|
| 77 |
+
default="TheBloke/TinyLlama-1.1B-Chat-v1.0-GGUF",
|
| 78 |
+
help="Hugging Face repository ID"
|
| 79 |
+
)
|
| 80 |
+
parser.add_argument(
|
| 81 |
+
"--file",
|
| 82 |
+
default="tinyllama-1.1b-chat-v1.0.Q4_K_M.gguf",
|
| 83 |
+
help="Model filename"
|
| 84 |
+
)
|
| 85 |
+
parser.add_argument(
|
| 86 |
+
"--dir",
|
| 87 |
+
default="./models",
|
| 88 |
+
help="Local directory to save the model"
|
| 89 |
+
)
|
| 90 |
+
parser.add_argument(
|
| 91 |
+
"--force",
|
| 92 |
+
action="store_true",
|
| 93 |
+
help="Force download even if file exists"
|
| 94 |
+
)
|
| 95 |
|
| 96 |
args = parser.parse_args()
|
| 97 |
|