-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.py
More file actions
39 lines (29 loc) · 1.14 KB
/
Copy pathsetup.py
File metadata and controls
39 lines (29 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
#!/usr/bin/env python3
"""Download the Consilium model (2.2GB, one-time setup)."""
import os
import sys
def main():
model_dir = os.path.join(os.path.dirname(__file__), "model")
if os.path.exists(os.path.join(model_dir, "model.safetensors")):
print("Model already downloaded.")
return
print("Downloading Consilium model (Qwen3.5-4B + Claude Opus reasoning)...")
print("Size: ~2.2 GB. This is a one-time download.\n")
try:
from huggingface_hub import snapshot_download
snapshot_download(
"Jackrong/MLX-Qwen3.5-4B-Claude-4.6-Opus-Reasoning-Distilled-v2-4bit",
local_dir=model_dir,
)
print(f"\nDone! Model saved to: {model_dir}")
except ImportError:
print("Installing huggingface-hub...")
os.system(f"{sys.executable} -m pip install huggingface-hub")
from huggingface_hub import snapshot_download
snapshot_download(
"Jackrong/MLX-Qwen3.5-4B-Claude-4.6-Opus-Reasoning-Distilled-v2-4bit",
local_dir=model_dir,
)
print(f"\nDone! Model saved to: {model_dir}")
if __name__ == "__main__":
main()