File size: 378 Bytes
222080b
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
from huggingface_hub import snapshot_download

# تحديد المستودع ورمز التوكن
repo_id = "mistralai/Mistral-7B-Instruct-v0.1"
token   = "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"

path = snapshot_download(
    repo_id=repo_id,
    revision="main",
    cache_dir="~/nouraai",
    use_auth_token=token,
    local_files_only=False
)

print("Downloaded to:", path)