Skip to content

Cannot download file from XET hosted repo using CLI #407

Description

@khulaifi95

Describe the bug

Hi, currently cannot download file from XET hosted repo using the CLI.
I think I have had this problem for a while. The progress always stucks at 0% when it's downloading a larger file.

I also tried to uninstall the xet package, the download starts but with very limited speed.

I checked what's described here #399 , it is a bit different. I also attached the dig info in the log section.

Reproduction

pip install "huggingface_hub[hf_xet,hf_transfer]"
export HF_HUB_ENABLE_HF_TRANSFER=1
export HF_HUB_DOWNLOAD_TIMEOUT=30
export HF_XET_MAX_CONCURRENT_DOWNLOADS=10

huggingface-cli download common-pile/uspto_filtered --repo-type dataset --local-dir common_pile_uspto_filtered/

Logs

# dig with 2 endpoints mentioned in previous issues

dig cas-server.xethub.hf.co

; <<>> DiG 9.18.30-0ubuntu0.20.04.2-Ubuntu <<>> cas-server.xethub.hf.co
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 27931
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;cas-server.xethub.hf.co.       IN      A

;; ANSWER SECTION:
cas-server.xethub.hf.co. 60     IN      A       23.23.86.135
cas-server.xethub.hf.co. 60     IN      A       44.223.228.22
cas-server.xethub.hf.co. 60     IN      A       34.231.113.90
cas-server.xethub.hf.co. 60     IN      A       34.201.246.251
cas-server.xethub.hf.co. 60     IN      A       44.219.97.197
cas-server.xethub.hf.co. 60     IN      A       13.216.197.155
cas-server.xethub.hf.co. 60     IN      A       18.235.154.248
cas-server.xethub.hf.co. 60     IN      A       3.233.98.238

;; Query time: 59 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Wed Jul 09 05:50:53 UTC 2025
;; MSG SIZE  rcvd: 180



dig cas-server.xethub.hf.co.

; <<>> DiG 9.18.30-0ubuntu0.20.04.2-Ubuntu <<>> cas-server.xethub.hf.co.
;; global options: +cmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 47377
;; flags: qr rd ra; QUERY: 1, ANSWER: 8, AUTHORITY: 0, ADDITIONAL: 1

;; OPT PSEUDOSECTION:
; EDNS: version: 0, flags:; udp: 65494
;; QUESTION SECTION:
;cas-server.xethub.hf.co.       IN      A

;; ANSWER SECTION:
cas-server.xethub.hf.co. 38     IN      A       3.233.98.238
cas-server.xethub.hf.co. 38     IN      A       18.235.154.248
cas-server.xethub.hf.co. 38     IN      A       13.216.197.155
cas-server.xethub.hf.co. 38     IN      A       44.219.97.197
cas-server.xethub.hf.co. 38     IN      A       34.201.246.251
cas-server.xethub.hf.co. 38     IN      A       34.231.113.90
cas-server.xethub.hf.co. 38     IN      A       44.223.228.22
cas-server.xethub.hf.co. 38     IN      A       23.23.86.135

;; Query time: 0 msec
;; SERVER: 127.0.0.53#53(127.0.0.53) (UDP)
;; WHEN: Wed Jul 09 05:51:15 UTC 2025
;; MSG SIZE  rcvd: 180

System info

- huggingface_hub version: 0.33.2
- Platform: Linux-5.4.0-205-generic-x86_64-with-glibc2.29
- Python version: 3.8.10
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Running in Google Colab Enterprise ?: No
- Token path ?: /home/kevin/.cache/huggingface/token
- Has saved token ?: True
- Who am I ?: khulaifi95
- Configured git credential helpers: store
- FastAI: N/A
- Tensorflow: N/A
- Torch: N/A
- Jinja2: 2.10.1
- Graphviz: N/A
- keras: N/A
- Pydot: N/A
- Pillow: 7.0.0
- hf_transfer: 0.1.9
- gradio: N/A
- tensorboard: N/A
- numpy: 1.24.4
- pydantic: N/A
- aiohttp: 3.10.11
- hf_xet: N/A
- ENDPOINT: https://huggingface.co
- HF_HUB_CACHE: /xxx/.cache/huggingface/hub
- HF_ASSETS_CACHE: /xxx/.cache/huggingface/assets
- HF_TOKEN_PATH: /xxx/.cache/huggingface/token
- HF_STORED_TOKENS_PATH: /xxx/.cache/huggingface/stored_tokens
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: True
- HF_HUB_DISABLE_PROGRESS_BARS: None
- HF_HUB_DISABLE_SYMLINKS_WARNING: False
- HF_HUB_DISABLE_EXPERIMENTAL_WARNING: False
- HF_HUB_DISABLE_IMPLICIT_TOKEN: False
- HF_HUB_ENABLE_HF_TRANSFER: True
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 30

env | grep HF_XET
HF_XET_MAX_CONCURRENT_DOWNLOADS=10

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions