# Download instability , disconnects

**URL:** </static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdownload-instability-disconnects%2F137529%3E%5C
**Category:** Models\
**Created:** [January 27, 2025, 11:16am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdownload-instability-disconnects%2F137529 "2025-01-27T11:16:58Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![asidaddy](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@asidaddy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasidaddy)%5C
**Post date:** [January 27, 2025, 11:16am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdownload-instability-disconnects%2F137529%2F1 "2025-01-27T11:16:58Z")

</div>

I’ve been expriencing this issue with different llms, also with stable diffusion, see below, been trying to download the whole morning, something that should be 5-10 mintues (I have a stable 1GB connection, wired, no issues with other sites or services).  
rror while downloading from 6a-iSg~MqmSrYs3uz6cqIXBpv8yoKOg\_\_&Key-Pair-Id=K24J24Z295AEI9: HTTPSConnectionPool(host=‘[cdn-lfs-us-1.hf.co](http://cdn-lfs-us-1.hf.co)’, port=443): Read timed out.  
Trying to resume download…

model-00001-of-00002.safetensors: 27%|█████████████▉ | 1.27G/4.65G [00:00\<?, ?B/s]

File “D:\anaconda\envs\omost\lib\site-packages\requests\models.py”, line 826, in generate  
raise ConnectionError(e)  
requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘[cdn-lfs-us-1.hf.co](http://cdn-lfs-us-1.hf.co)’, port=443): Read timed out.

---

<div class="post-metadata">

**Author:** ![Alanturner2](https://sea2.discourse-cdn.com/hellohellohello/user_avatar/discuss.huggingface.co/alanturner2/32/37542_2.png) [@Alanturner2](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2FAlanturner2)%5C
**Post date:** [January 27, 2025, 1:32pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdownload-instability-disconnects%2F137529%2F2 "2025-01-27T13:32:08Z")

</div>

Hi there! The issue you’re experiencing with downloading models from the Hugging Face CDN could stem from a few different factors, even with a stable internet connection. Here are some steps and suggestions to help resolve it:

### 1. **Retry the Download**

- The Hugging Face CDN might be experiencing temporary server-side issues. Often, simply retrying the download later can help.

### 2. **Use the `hf_transfer` Library**

- Hugging Face has a tool called `hf_transfer` for more robust downloads. It supports resuming and retries automatically. Install it with:

```bash
pip install hf_transfer

```

Then, download your model using:

```bash
hf_transfer download <model_url>

```

### 3. **Increase Timeout and Retry Settings**

- If you’re using the `transformers` or `diffusers` library, you can increase the timeout and retry settings by modifying the environment variables:

```bash
export HF_HUB_ENABLE_EMERGENCY_RETRY=True
export HF_HUB_EMERGENCY_RETRY_WAIT_TIME=10

```

This will enable retries with longer wait times.

### 4. **Switch to a Different Network Region**

- If possible, try using a VPN or connecting to a different server region. Sometimes, the CDN performance varies by location, and switching regions can improve download speeds.

### 5. **Manually Download the Model**

- You can manually download the model files directly from the Hugging Face website:
  1. Go to the model’s page on Hugging Face.
  2. Click on the individual `.safetensors` files to download them.
  3. Place the downloaded files in the correct folder within your `~/.cache/huggingface/transformers` directory to avoid re-downloading.

### 6. **Verify Storage and File System**

- Ensure that your local disk has enough space and is functioning properly. Large models like these require sufficient disk space and a fast read/write disk.

### 7. **Contact Hugging Face Support**

- If the issue persists, consider reporting it to Hugging Face by creating an issue on their GitHub repository ([Hugging Face Hub Issues](https://github.com/huggingface/huggingface_hub/issues)) or reaching out on their forums. Include the error logs and details about your setup.

### Debugging Checklist

- Stable internet connection ✔
- Latest version of libraries (`transformers`, `diffusers`, etc.) ✔
- Enough disk space ✔

Let me know if any of these steps help or if you need more detailed guidance! 🚀

---

<div class="post-metadata">

**Author:** ![asidaddy](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@asidaddy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasidaddy)%5C
**Post date:** [January 27, 2025, 9:51pm UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdownload-instability-disconnects%2F137529%2F3 "2025-01-27T21:51:25Z")

</div>

sounds promising, will try it tomorrow!

---

<div class="post-metadata">

**Author:** ![asidaddy](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@asidaddy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasidaddy)%5C
**Post date:** [January 29, 2025, 7:59am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdownload-instability-disconnects%2F137529%2F4 "2025-01-29T07:59:31Z")

</div>

so, this didn’t seem to help me much on my system, using anaconda on win10.  
many disconnects and speeds all over the place, but under 5Mb/s on average.

tried writing my own requests script with retires, but this also is limited, is this a hf issue?

---

<div class="post-metadata">

**Author:** ![asidaddy](https://avatars.discourse-cdn.com/v4/letter/a/5f8ce5/32.png) [@asidaddy](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Fu%2Fasidaddy)%5C
**Post date:** [February 2, 2025, 11:10am UTC](/static-proxy?url=https%3A%2F%2Fdiscuss.huggingface.co%2Ft%2Fdownload-instability-disconnects%2F137529%2F5 "2025-02-02T11:10:22Z")

</div>

seems like it is machine related, on the macbook, not issues, on the high end workstation, cannot download more than 100 mb at a time before i get errors.
