Skip to content

Upgrade hf-hub to 1.0#2196

Open
assafvayner wants to merge 1 commit into
mainfrom
assafvayner/upgrade-hf-hub-1.0
Open

Upgrade hf-hub to 1.0#2196
assafvayner wants to merge 1 commit into
mainfrom
assafvayner/upgrade-hf-hub-1.0

Conversation

@assafvayner

Copy link
Copy Markdown

Upgrades the hf-hub dependency from 0.4 to 1.0 and migrates from_pretrained to the new API: the ureq feature is replaced by blocking, and the old ApiBuilder/Repo flow is replaced with HFClientSync + the download_file builder. Behavior is unchanged (env token/endpoint fallback, bare identifiers, and revisions all work as before); verified with cargo test --features http --test from_pretrained against the live Hub. cc @MCPotato

@HuggingFaceDocBuilderDev

Copy link
Copy Markdown

The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update.

@assafvayner
assafvayner requested a review from McPatate July 14, 2026 16:30
@assafvayner
assafvayner marked this pull request as ready for review July 14, 2026 16:30
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