This was working for us but recently started failing with timeouts whenever we use huggingface_hub (via python or CLI).
I noticed we can still download using curl -L https://huggingface.co/sentence-transformers/all-MiniLM-L6-v2/resolve/main/model.safetensors?download=true --output model.safetensors
but we cannot using
from sentence_transformers import SentenceTransformer
model = SentenceTransformer('all-MiniLM-L6-v2')
Nor using
huggingface-cli download sentence-transformers/all-MiniLM-L6-v2
Both of these just hang like:
huggingface-cli download sentence-transformers/all-MiniLM-L6-v2 --max-workers 1
Fetching 30 files: 0%| | 0/30 [00:00<?, ?it/s]Downloading 'model.safetensors' to '/home/jupyter/.cache/huggingface/hub/models--sentence-transformers--all-MiniLM-L6-v2/blobs/53aa51172d142c89d9012cce15ae4d6cc0ca6895895114379cacb4fab128d9db.incomplete'
model.safetensors: 0%| | 0.00/90.9M [00:00<?, ?B/s]
"timestamp":"2025-07-01T13:40:33.080005Z","level":"WARN","fields":{"message":"Reqwest(reqwest::Error { kind: Request, url: \"https://cas-server.xethub.hf.co/reconstruction/789fdf16a3e59f4fbfb6002967ecee539a198dadb5be74ca549aa7dc9b1b55fb\", source: hyper_util::client::legacy::Error(Connect, ConnectError(\"tcp connect error\", Os { code: 110, kind: TimedOut, message: \"Connection timed out\" })) }). Retrying..."},"filename":"/home/runner/work/xet-core/xet-core/cas_client/src/http_client.rs","line_number":200}
{"timestamp":"2025-07-01T13:40:33.080067Z","level":"WARN","fields":{"message":"Retry attempt #0. Sleeping 2.851275886s before the next attempt"},"filename":"/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-retry-0.7.0/src/middleware.rs","line_number":171}
{"timestamp":"2025-07-01T13:58:03.703922Z","level":"WARN","fields":{"message":"Reqwest(reqwest::Error { kind: Request, url: \"https://cas-server.xethub.hf.co/reconstruction/789fdf16a3e59f4fbfb6002967ecee539a198dadb5be74ca549aa7dc9b1b55fb\", source: hyper_util::client::legacy::Error(Connect, ConnectError(\"tcp connect error\", Os { code: 110, kind: TimedOut, message: \"Connection timed out\" })) }). Retrying..."},"filename":"/home/runner/work/xet-core/xet-core/cas_client/src/http_client.rs","line_number":200}
{"timestamp":"2025-07-01T13:58:03.703998Z","level":"WARN","fields":{"message":"Retry attempt #1. Sleeping 2.339135315s before the next attempt"},"filename":"/root/.cargo/registry/src/index.crates.io-1949cf8c6b5b557f/reqwest-retry-0.7.0/src/middleware.rs","line_number":171}
It just hangs and times out for the model.safetensors
file.
We have allowlisted:
cdn-lfs-us-1.hf.co
cdn-lfs-eu-1.hf.co
cdn-lfs.hf.co
cas-bridge.xethub.hf.co
Any ideas?
It seems to be going to a cloudfront IP at some point, but I do not know what for and if it is something that can be stopped.