Skip to content

xet too broken on windows: downloading a huggingface asset with xet hangs while others in the same method succeed #446

@doctorpangloss

Description

@doctorpangloss

Describe the bug

sometimes hf_hub_download with xet deadlocks or errors with the logs below and makes no progress and blocks indefinitely

the file system is ReFS

Reproduction

!pip install huggingface_hub hf_xet
import os
os.environ["HF_XET_HIGH_PERFORMANCE"] = "True"
from huggingface_hub import hf_hub_download
hf_hub_download(repo_id="Comfy-Org/Qwen-Image_ComfyUI", filename="split_files/text_encoders/qwen_2.5_vl_7b.safetensors",
                                               repo_type="model",
                                               )

many times, eventually this error occurs

Logs

2025-08-07 13:47:48 [DEBUG] [comfy.model_downloader] [model_downloader.py:141] text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors is being downloaded from Comfy-Org/Qwen-Image_ComfyUI/split_files/text_encoders/qwen_2.5_vl_7b_fp8_scaled.safetensors candidate_str_match=True candidate_filename_match=False candidate_alternate_filenames_match=False candidate_save_filename_match=False
2025-08-07 13:47:48 [DEBUG] [filelock] [_api.py:331] Attempting to acquire lock 1834501623440 on D:/.huggingface\hub\.locks\models--Comfy-Org--Qwen-Image_ComfyUI\cb5636d852a0ea6a9075ab1bef496c0db7aef13c02350571e388aea959c5c0b4.lock
2025-08-07 13:47:48 [DEBUG] [filelock] [_api.py:334] Lock 1834501623440 acquired on D:/.huggingface\hub\.locks\models--Comfy-Org--Qwen-Image_ComfyUI\cb5636d852a0ea6a9075ab1bef496c0db7aef13c02350571e388aea959c5c0b4.lock
{"timestamp":"2025-08-07T20:47:49.627761Z","level":"WARN","fields":{"message":"Status Code: 500. Retrying...","request_id":"01K234MFBJH2VJE24C1T5VNZFS"},"filename":"D:\\a\\xet-core\\xet-core\\cas_client\\src\\http_client.rs","line_number":236}
{"timestamp":"2025-08-07T20:47:49.627817Z","level":"WARN","fields":{"message":"Retry attempt #0. Sleeping 2.6959748s before the next attempt"},"filename":"C:\\Users\\runneradmin\\.cargo\\registry\\src\\index.crates.io-1949cf8c6b5b557f\\reqwest-retry-0.7.0\\src\\middleware.rs","line_number":171}

System info

- huggingface_hub version: 0.33.0
- Platform: Windows-2022Server-10.0.20348-SP0
- Python version: 3.12.10
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Running in Google Colab Enterprise ?: No
- Token path ?: C:\Users\bberman\.cache\huggingface\token
- Has saved token ?: True
- Who am I ?: doctorpangloss
- Configured git credential helpers: manager
- FastAI: N/A
- Tensorflow: N/A
- Torch: 2.7.1+cu126
- Jinja2: 3.1.6
- Graphviz: N/A
- keras: N/A
- Pydot: N/A
- Pillow: 11.2.1
- hf_transfer: 0.1.9
- gradio: N/A
- tensorboard: N/A
- numpy: 2.2.6
- pydantic: 2.11.7
- aiohttp: 3.12.13
- hf_xet: 1.1.4
- ENDPOINT: https://huggingface.co
- HF_HUB_CACHE: C:\Users\bberman\.cache\huggingface\hub
- HF_ASSETS_CACHE: C:\Users\bberman\.cache\huggingface\assets
- HF_TOKEN_PATH: C:\Users\bberman\.cache\huggingface\token
- HF_STORED_TOKENS_PATH: C:\Users\bberman\.cache\huggingface\stored_tokens
- HF_HUB_OFFLINE: False
- HF_HUB_DISABLE_TELEMETRY: False
- 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: False
- HF_HUB_ETAG_TIMEOUT: 10
- HF_HUB_DOWNLOAD_TIMEOUT: 10

Metadata

Metadata

Assignees

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