Unable to Download Models

I’ve tried running hf downloadfrom multiple different networks and every time, the console stops, no error message and rewrites existing text with (hfenv) C:\Users\myname\Documents\IBM>, expecting new input. I use Windows 11 and have no idea what is going on. Can someone help guide me to figure this out? This is what I’m seeing from the console when I run it once. It seems to download the json files but does absolutely nothing to download the safetensors.

(hfenv) C:\Users\myname\Documents\IBM>hf download ibm-granite/granite-3.3-2b-base --local-dir .\granite-3.3-2b-base
Downloading (incomplete total...): 0%| | 2.54k/5.07G [00:01<778:59:35, 1.81kB/s]
(hfenv) C:\Users\myname\Documents\IBM> | 2/10 [00:01<0
0:05, 1.42it/s]

1 Like

It seems to download the json files but does absolutely nothing to download the safetensors.

Based on the symptoms, it seems to only occur with large files handled by LFS or XET. Since you’re using hf download, I don’t think your library version is too old, but just in case, try pip install -U huggingface_hub hf_xet xet-core.

If that doesn’t work, setting HF_HUB_DISABLE_XET=1 might help. (This is the syntax for Linux, etc. Since you’re actually using Windows, you’ll need to set the environment variable via your GUI, PowerShell, or CMD. Just create the HF_HUB_DISABLE_XET key and set its value to 1.)

Edit:
For pip, seems pip install -U huggingface_hub hf_xet is better.

For some reason, pip couldn’t find xet-core, but the second method worked. Thanks!

1 Like

This topic was automatically closed 12 hours after the last reply. New replies are no longer allowed.