Skip to content

build(deps): remove unused hf-transfer dependency#338

Merged
p-e-w merged 1 commit into
p-e-w:masterfrom
rocker-zhang:build/remove-hf-transfer
May 31, 2026
Merged

build(deps): remove unused hf-transfer dependency#338
p-e-w merged 1 commit into
p-e-w:masterfrom
rocker-zhang:build/remove-hf-transfer

Conversation

@rocker-zhang
Copy link
Copy Markdown
Contributor

hf-transfer is declared in pyproject.toml but never used: nothing in the codebase sets HF_HUB_ENABLE_HF_TRANSFER, and downloads go through from_pretrained / hf_hub_download with no transfer toggle. With huggingface-hub ~= 1.7, Xet (hf-xet, already pulled in transitively) is the default accelerated backend and HF_HUB_ENABLE_HF_TRANSFER is deprecated, so the dependency is dead weight that only surfaces a deprecation warning.

Validated with uv lock, uv sync, uv run heretic --help, ruff check, and ty check.

hf-transfer is declared in pyproject.toml but never activated: nothing in
the codebase sets HF_HUB_ENABLE_HF_TRANSFER, and downloads go through
from_pretrained / hf_hub_download with no transfer toggle. huggingface-hub
is pinned ~=1.7, where Xet is the default transfer backend, so hf-transfer
is dead weight and only surfaces a deprecation warning.
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request removes the hf-transfer dependency from pyproject.toml and updates the uv.lock file accordingly. As there are no review comments provided, I have no feedback to offer.

@p-e-w
Copy link
Copy Markdown
Owner

p-e-w commented May 31, 2026

I had added hf-transfer as a dependency several months ago after Xet wasn't being used on a rented box for some reason, and Transformers raised an exception because no alternative was available.

However, that was before huggingface-hub 1.0 was released, and while I don't remember the machine configuration and thus can't replicate the original problem, it's reasonable to assume that it was resolved in the meantime, so I'm merging this PR.

@p-e-w p-e-w merged commit db07814 into p-e-w:master May 31, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants