chore(deps): update dependency huggingface-hub to ~=1.2.1 #2217
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~=1.1.2->~=1.2.1Release Notes
huggingface/huggingface_hub (huggingface-hub)
v1.2.1Compare Source
v1.2.0: v1.2.1: Smarter Rate Limit Handling, Daily Papers API and more QoL improvements!Compare Source
🚦 Smarter Rate Limit Handling
We've improved how the
huggingface_hublibrary handles rate limits from the Hub. When you hit a rate limit, you'll now see clear, actionable error messages telling you exactly how long to wait and how many requests you have left.When a 429 error occurs, the SDK automatically parses the
RateLimitheader to extract the exact number of seconds until the rate limit resets, then waits precisely that duration before retrying. This applies to file downloads (i.e. Resolvers), uploads, and paginated Hub API calls (list_models,list_datasets,list_spaces, etc.).More info about Hub rate limits in the docs 👉 here.
✨ HF API
Daily Papers endpoint: You can now programmatically access Hugging Face's daily papers feed. You can filter by week, month, or submitter, and sort by publication date or trending.
Offline mode helper: we recommend using
huggingface_hub.is_offline_mode()to check whether offline mode is enabled instead of checkingHF_HUB_OFFLINEdirectly.Inference Endpoints: You can now configure scaling metrics and thresholds when deploying endpoints.
Exposed utilities:
RepoFileandRepoFolderare now available at the root level for easier imports.⚡️ Inference Providers
OVHcloud AI Endpoints was added as an official Inference Provider in
v1.1.5. OVHcloud provides European-hosted, GDPR-compliant model serving for your AI applications.We also added support for automatic speech recognition (ASR) with Replicate, so you can now transcribe audio files easily.
The
truncation_directionparameter inInferenceClient.feature_extraction( (and its async counterpart) now uses lowercase values ("left"/"right" instead of "Left"/"Right") for consistency with other specs. The Async counterpart has been updated as well📁 HfFileSystem
HfFileSystem: A new top-level
hffsalias make working with the filesystem interface more convenient.💔 Breaking Change
Paginated results when listing user access requests:
list_pending_access_requests,list_accepted_access_requests, andlist_rejected_access_requestsnow return an iterator instead of a list. This allows lazy loading of results for repositories with a large number of access requests. If you need a list, wrap the call withlist(...).🔧 Other QoL Improvements
num_workersby @Qubitium in #3532HfApidownload utils by @schmrlng in #3531whoamiby @Wauplin in #3568repo_type_and_id_from_hf_idby @pulltheflower in #3507list_repo_treeinsnapshot_downloadby @hanouticelina in #3565📖 Documentation
hf loginexample tohf auth loginby @alisheryeginbay in #3590🛠️ Small fixes and maintenance
🐛 Bug and typo fixes
FileNotFoundErrorin CLI update check by @hanouticelina in #3574HfHubHTTPErrorreduce error by adding factory function by @owenowenisme in #3579constants.HF_HUB_ETAG_TIMEOUTas timeout forget_hf_file_metadataby @krrome in #3595🏗️ Internal
huggingface_hubas dependency for hf by @Wauplin in #3527Significant community contributions
The following contributors have made significant changes to the library over the last release:
HfApidownload utils (#3531)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
To execute skipped test pipelines write comment
/ok-to-test.Documentation
Find out how to configure dependency updates in MintMaker documentation or see all available configuration options in Renovate documentation.