Fix: Colab downloads occasionally get stuck
This commit is contained in:
@@ -71,10 +71,41 @@
|
|||||||
"print(\"✅ Installed dependencies\")\n",
|
"print(\"✅ Installed dependencies\")\n",
|
||||||
"\n",
|
"\n",
|
||||||
"# Download model\n",
|
"# Download model\n",
|
||||||
"!HF_XET_HIGH_PERFORMANCE=1 hf download microsoft/VibeVoice-Realtime-0.5B --quiet --local-dir /content/models/VibeVoice-Realtime-0.5B > /dev/null\n",
|
"from huggingface_hub import snapshot_download\n",
|
||||||
|
"snapshot_download(\"microsoft/VibeVoice-Realtime-0.5B\", local_dir=\"/content/models/VibeVoice-Realtime-0.5B\")\n",
|
||||||
"print(\"✅ Downloaded model: microsoft/VibeVoice-Realtime-0.5B\")\n"
|
"print(\"✅ Downloaded model: microsoft/VibeVoice-Realtime-0.5B\")\n"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "markdown",
|
||||||
|
"id": "88c727ab",
|
||||||
|
"metadata": {},
|
||||||
|
"source": [
|
||||||
|
"[Optional] If the download exceeds 1 minute, it is probably stuck. You can: (1) interrupt the execution, (2) log in to Hugging Face, and (3) try download again."
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "dec6b870",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"from huggingface_hub import login\n",
|
||||||
|
"login()"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"cell_type": "code",
|
||||||
|
"execution_count": null,
|
||||||
|
"id": "c579654b",
|
||||||
|
"metadata": {},
|
||||||
|
"outputs": [],
|
||||||
|
"source": [
|
||||||
|
"snapshot_download(\"microsoft/VibeVoice-Realtime-0.5B\", local_dir=\"/content/models/VibeVoice-Realtime-0.5B\")\n",
|
||||||
|
"print(\"✅ Downloaded model: microsoft/VibeVoice-Realtime-0.5B\")"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"cell_type": "markdown",
|
"cell_type": "markdown",
|
||||||
"id": "pgKlV7153Ifi",
|
"id": "pgKlV7153Ifi",
|
||||||
|
|||||||
Reference in New Issue
Block a user