asdf98 commited on
Commit
213365a
·
verified ·
1 Parent(s): 2aee9f4

Fix: force_download=True to bypass HF cache, add assertion checks

Browse files
Files changed (1) hide show
  1. IRIS_Training_Notebook.ipynb +9 -2
IRIS_Training_Notebook.ipynb CHANGED
@@ -81,11 +81,18 @@
81
  "from huggingface_hub import hf_hub_download\n",
82
  "import shutil\n",
83
  "\n",
 
84
  "for f in [\"iris_model.py\"]:\n",
85
- " shutil.copy(hf_hub_download(\"asdf98/IRIS-architecture\", f), f\"./{f}\")\n",
 
86
  "\n",
87
  "from iris_model import IRIS, IRISConfig, IRISGenerator, create_iris_tiny, create_iris_small, count_parameters\n",
88
- "print(\"\u2705 IRIS loaded\")"
 
 
 
 
 
89
  ],
90
  "outputs": [],
91
  "execution_count": null
 
81
  "from huggingface_hub import hf_hub_download\n",
82
  "import shutil\n",
83
  "\n",
84
+ "# Force fresh download (bypass cache) to get latest version\n",
85
  "for f in [\"iris_model.py\"]:\n",
86
+ " path = hf_hub_download(\"asdf98/IRIS-architecture\", f, force_download=True)\n",
87
+ " shutil.copy(path, f\"./{f}\")\n",
88
  "\n",
89
  "from iris_model import IRIS, IRISConfig, IRISGenerator, create_iris_tiny, create_iris_small, count_parameters\n",
90
+ "print(\"\u2705 IRIS loaded\")\n",
91
+ "\n",
92
+ "# Quick verification that train_step_latent exists\n",
93
+ "assert hasattr(IRIS, 'train_step_latent'), \"ERROR: Old iris_model.py cached! Restart runtime and re-run.\"\n",
94
+ "assert hasattr(IRIS, 'generate_latent'), \"ERROR: Old iris_model.py cached! Restart runtime and re-run.\"\n",
95
+ "print(\"\u2705 Verified: train_step_latent and generate_latent available\")"
96
  ],
97
  "outputs": [],
98
  "execution_count": null