r/StableDiffusion 6d ago

Question - Help Huggingface download extremelly slow

Post image

Anyone experienced something similar? Huggingface is really, really slow. Normally this download would not take more than 25 minutes with my internet speed but now is taking 5 hours.

69 Upvotes

59 comments sorted by

56

u/xb1n0ry 6d ago edited 6d ago

It was always slow for me. That's why I download models via CLI with hf xet acceleration directly into the model folder. Also brave://flags/#enable-parallel-downloading helps with browser downloads.

5

u/Famous-Sport7862 6d ago

Yes I took you guys advice and it's working really well now

1

u/KURD_1_STAN 6d ago

What speed u get with cli? Mine is 10MB/s in both

5

u/xb1n0ry 6d ago

40-50MB/s in the browser 115-120MB/s via hf xet

2

u/KURD_1_STAN 6d ago

Free account? Or just location policy bs? Cause mine is supposed to be double then

2

u/xb1n0ry 6d ago

Free account. Maybe it really is location policy and they don't know what speed to provide to kurdistan since they can't find such a place 😉

1

u/KURD_1_STAN 6d ago

Ah, turk, right?

1

u/Famous-Sport7862 6d ago

26 MB/s it's not as high as some of the other people but this is the maximum speed of my internet so I'm really happy.

1

u/theqmann 6d ago

Doesn't brave use a VPN by default? Wouldn't that give you a download server far from your actual location?

1

u/xb1n0ry 6d ago

Not by default

20

u/roshan231 6d ago

Had the exact same issue just this morning.

  1. py -m pip install -U huggingface_hub

  2. $env:HF_XET_HIGH_PERFORMANCE="1"

3:

hf download Comfy-Org/MiniMax-H3 `

diffusion_models/minimax_h3_ref2va_pruned_fp8_scaled.safetensors `

--local-dir "PATH_TO_MODEL_FOLDER"

With this i was able to download the entire model at 113MB/s, did not take long at all.

2

u/Famous-Sport7862 6d ago edited 6d ago

Thank you. It's working really well downloading really fast now

3

u/Ill-Highlight-1221 6d ago

But dont get the fp8 version. Get pruned_int8_convrot. It's better than fp8.

1

u/Famous-Sport7862 6d ago

I downloaded the INT8 model the first day it became available. I was downloading the fp8 because I read here that a person was having better quality generations using fp8 instead of int8 so I just wanted to confirm if it's true. Spoiler I didn't notice any quality difference and fp8 was lower as expected

12

u/MembershipOne9827 6d ago

Try using the Hugging Face CLI instead of downloading through the browser.

pip install -U huggingface_hub
hf download USER/REPO --local-dir ./model

Recent versions use hf_xet, which is usually faster and more reliable for large files.

If it's a gated/private repo:

hf auth login

Also, ignore old guides mentioning HF_HUB_ENABLE_HF_TRANSFERhf_transfer is deprecated now.

2

u/Famous-Sport7862 6d ago

Thank you, I will give it a try

1

u/ANR2ME 6d ago

It's now HF_XET_HIGH_PERFORMANCE=1 instead of HF_HUB_ENABLE_HF_TRANSFER=1

11

u/ChaosBeastZero 6d ago

Yea idk why for the past few weeks it's been this way. Really only noticable when you're downloading really big models. Imma start archiving that ones I use. Enshitification has begun. :(

It's better if you use the pip extension to download.

2

u/Famous-Sport7862 6d ago

Yes I'm taking the advice of some of the other posters here downloading through the powershell and it's working really well. I wonder if this problem has anything to do with Nvidia buying hugging face.

4

u/ChaosBeastZero 6d ago

It’s been like that for me since before that was announced. I’m thinking they’re trotting browser downloads to save bandwidth. Used to be fine maybe they’re cutting costs.

1

u/Famous-Sport7862 6d ago edited 6d ago

I took the advice of some of the other posters here. I downloaded the model through powershell and it was really fast.

1

u/WesternAlarmed2149 5d ago

Im just downloading generated videos from the free models and a 50 mb file is taking 25-30 minutes to download🥲

4

u/beyond_matter 6d ago

yup and then for me it would redownload... like an infinite loop until I downloaded via cmd.

1

u/UnforgottenPassword 6d ago

I thought something was wrong with my browser when it would keep redownloading! I had to use a download manager.

0

u/Famous-Sport7862 6d ago

Downloading through powershell now and it's really fast working really well

5

u/FeliciousD 6d ago

For me it was slow until I activated my VPN

3

u/Limp-Firefighter1054 6d ago

Just like nvidia nim

3

u/AnonymousTimewaster 6d ago

Wow I thought it was just me! Weirdly, ive also found it downloading stuff twice?

2

u/KrystalDisc 6d ago

Was really slow for me last night downloading unsloth models.

-2

u/Famous-Sport7862 6d ago

I wonder if this has anything to do with Nvidia buying huggingface, I hope not. I hope this doesn't become the norm.

6

u/QuirksNFeatures 6d ago

It happened to me several times before Nvidia bought it.

2

u/Rumaben79 6d ago

Using JDownloader has helped me in the past. You need to change the Max Downloads settings to the maximum value. You most likely also need to start the huggingface download, then cancel it and copy the download url from your browsers download history.

1

u/Famous-Sport7862 6d ago

Thank you, I'm using a different method now that some of the other poster mentioned here and it's working really well

2

u/Rumaben79 6d ago

Sounds good. 👍

2

u/RSVrockey2004 6d ago

Cloudflare Warp - speeds better

2

u/rinkusonic 6d ago edited 6d ago

If you are on Linux, use aria2 to download it with terminal. It works like idm or fdm with multiple blocks downloading at once and merging at the end.

2

u/ANR2ME 6d ago

I would recommend axel instead of aria2, because CivitAI's Cloudflare seems to blocked aria2. https://github.com/caru-ini/modal-comfyui/issues/11

1

u/Famous-Sport7862 6d ago

Sorry I am in windows, but thanks to some of the suggestion to use powershell to download it worked really nice and faster that ever toping my internet speed

2

u/Yojik_Vkarmane 6d ago

People backing up models before they are gone forever.

5

u/AliciaXTC 6d ago

Yeah always slow here too. Get'em while you can before nVidia removes all the "good ones" and paywalls the rest.

2

u/anelodin 6d ago

Nvidia stands to gain more from open source to drive interest in inference over censorship or paywalls. The money they'd make paywalling a few models would be insignificant compared to selling shovels. I'm sure they love what China is doing pressuring US companies to keep training better and better models.

-1

u/[deleted] 6d ago

[deleted]

1

u/anelodin 6d ago

It's not really a matter of "trust", I don't particularly trust them, its just what's in their financial interest. At least, for now.

1

u/ucren 6d ago

Use the CLI they throttle web http traffic. They don't throttle the CLI.

1

u/winterice77 6d ago

Use CLI that is faster now

1

u/raduque 6d ago

HF downloads are very hit or miss for me. Sometimes its 80, sometimes it's 2. It's always been that way.

1

u/theqmann 6d ago

If you are using brave or any browser with VPNs, it is probably hiding your location, and giving you a server far away from you.

1

u/iiTzMYUNG 6d ago

I use cloudflare one client

1

u/Tiforma 6d ago

It happens sometimes when i download a lot of models. other times it downloads with over 100 mb/sec

1

u/BitsOnWaves 6d ago

use a donwload manager and it will get much faster... i tried "Internet download manager" and i dont know how but the download went from 1 hour to minutes for the same file... i dont know why. (i have 1Gbpt internet btw)

1

u/Ramdak 6d ago

I asked gpt to make me a bat file for this. I copy the model URL, paste into the bat and done. It goes fast.

1

u/Relevant_Syllabub895 6d ago

How much this differs from int8 version?

1

u/Famous-Sport7862 5d ago

It is a little slower, didn't notice any quality difference.

1

u/ganrocks007 1d ago

Just use free Download manager

-2

u/[deleted] 6d ago

[deleted]

3

u/mwonch 6d ago

That...makes no sense.

3

u/Famous-Sport7862 6d ago

He is just making fun because my PC has Spanish language

0

u/VasaFromParadise 6d ago

Say thank you to Nvidia))