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)