File size: 346 Bytes
946a8d2
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
from huggingface_hub import hf_hub_download
import os

repo_id="Qwen/Qwen2.5-1.5B-Instruct-GGUF"
filename = "qwen2.5-1.5b-instruct-q4_k_m.gguf"
script_dir = os.path.dirname(os.path.abspath(__file__))
model_path = hf_hub_download(
    repo_id=repo_id,
    filename=filename,
    local_dir=script_dir,
)

print(f"Model downloaded to: {model_path}")