Skip to content

HF_HUB_DISABLE_XET not disabling XET-based downloads #3266

@devtobi

Description

@devtobi

Describe the bug

When using the huggingface_hub library version 0.34.1 disabling the XET-based downloads using the environment variable HF_HUB_DISABLE_XET is not working. Additionally the progress bar shown in the log shows completely wrong download speeds while the system itself downloads the model at a much higher speed. Then suddenly the progress bar jumps from a few percents almost instantly to 100%.

Using huggingface_hub in version 0.33.5 this problem does not occur.

Reproduction

Call the hf_hub_download() function while environment variable HF_HUB_DISABLE_XET is set to 1

Logs

Running with `HF_DEBUG=1` did not produce any relevant output.

System info

- huggingface_hub version: 0.34.1
- Platform: macOS-15.5-arm64-arm-64bit-Mach-O
- Python version: 3.13.5
- Running in iPython ?: No
- Running in notebook ?: No
- Running in Google Colab ?: No
- Running in Google Colab Enterprise ?: No
- Token path ?: /Users/devtobi/.cache/huggingface/token
- Has saved token ?: False
- Configured git credential helpers: osxkeychain
- FastAI: N/A
- Tensorflow: N/A
- Torch: N/A
- Jinja2: 3.1.6
- Graphviz: N/A
- keras: N/A
- Pydot: N/A
- Pillow: 11.2.1
- hf_transfer: N/A
- gradio: N/A
- tensorboard: N/A
- numpy: 2.3.0
- pydantic: N/A
- aiohttp: 3.12.13
- hf_xet: 1.1.4
- ENDPOINT: https://huggingface.co
- HF_HUB_CACHE: /Users/devtobi/.cache/huggingface/hub
- HF_ASSETS_CACHE: /Users/devtobi/.cache/huggingface/assets
- HF_TOKEN_PATH: /Users/devtobi/.cache/huggingface/token
- HF_STORED_TOKENS_PATH: /Users/devtobi/.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

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