| from huggingface_hub import hf_hub_download, login | |
| # Model repo + filename | |
| repo_id = "mihaiciorobitca/wan2.2_t2v_low_noise_14B_fp8_scaled" | |
| filename = "wan2.2_t2v_low_noise_14B_fp8_scaled.safetensors" # adjust if the repo has different file names | |
| # Download to a local path (ComfyUI checkpoints folder) | |
| local_path = hf_hub_download( | |
| repo_id=repo_id, | |
| filename=filename, | |
| cache_dir="~/ComfyUI/models/diffusion_models" # change if needed | |
| ) | |
| print(f"✅ Downloaded: {local_path}") | |