🚦 Smarter Rate Limit Handling
We've improved how the huggingface_hub library 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.
HfHubHTTPError: 429 Too Many Requests for url: https://huggingface.co/api/models/username/reponame.
Retry after 55 seconds (0/2500 requests remaining in current 300s window).When a 429 error occurs, the SDK automatically parses the RateLimit header 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.
- Parse rate limit headers for better 429 error messages by @hanouticelina in #3570
- Use rate limit headers for smarter retry in http backoff by @hanouticelina in #3577
- Harmonize retry behavior for metadata fetch and
HfFileSystemby @hanouticelina in #3583- Add retry for preupload endpoint by @hanouticelina in #3588
- Use default retry values in pagination by @hanouticelina in #3587
✨ 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.
from huggingface_hub import list_daily_papers
for paper in list_daily_papers(date="2025-12-03"):
print(paper.title)
# DeepSeek-V3.2: Pushing the Frontier of Open Large Language Models
# ToolOrchestra: Elevating Intelligence via Efficient Model and Tool Orchestration
# MultiShotMaster: A Controllable Multi-Shot Video Generation Framework
# Deep Research: A Systematic Survey
# MG-Nav: Dual-Scale Visual Navigation via Sparse Spatial Memory
...Add daily papers endpoint by @BastienGimbert in #3502
Add more parameters to daily papers by @Samoed in #3585
Offline mode helper: we recommend using huggingface_hub.offline_mode() to check whether offline mode is enabled instead of checking HF_HUB_OFFLINE directly.
Inference Endpoints: You can now configure scaling metrics and thresholds when deploying endpoints.
feat(endpoints): scaling metric and threshold by @oOraph in #3525
Exposed utilities: RepoFile and RepoFolder are now available at the root level for easier imports.
Expose
RepoFileandRepoFolderat root level by @Wauplin in #3564
⚡️ 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.
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
api_key=os.environ["HF_TOKEN"],
)
completion = client.chat.completions.create(
model="openai/gpt-oss-20b:ovhcloud",
messages=[
{
"role": "user",
"content": "What is the capital of France?"
}
],
)
print(completion.choices[0].message)Add OVHcloud AI Endpoints as an Inference Provider by @eliasto in #3541
We also added support for automatic speech recognition (ASR) with Replicate, so you can now transcribe audio files easily.
import os
from huggingface_hub import InferenceClient
client = InferenceClient(
provider="replicate",
api_key=os.environ["HF_TOKEN"],
)
output = client.automatic_speech_recognition("sample1.flac", model="openai/whisper-large-v3")[Inference Providers] Add support for ASR with Replicate by @hanouticelina in #3538
The truncation_direction parameter in InferenceClient.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
[Inference] Use lowercase left/right truncation direction parameter by @Wauplin in #3548
📁 HfFileSystem
HfFileSystem: A new top-level hffs alias make working with the filesystem interface more convenient.
>>> from huggingface_hub import hffs
>>> with hffs.open("datasets/fka/awesome-chatgpt-prompts/prompts.csv", "r") as f:
... print(f.readline())
"act","prompt"
"An Ethereum Developer","Imagine you are an experienced Ethereum developer tasked..."[HfFileSystem] Add top level hffs by @lhoestq in #3556
[HfFileSystem] Add expand_info arg by @lhoestq in #3575
💔 Breaking Change
Paginated results when listing user access requests: list_pending_access_requests, list_accepted_access_requests, and list_rejected_access_requests now 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 with list(...).
🔧 Other QoL Improvements
- Better default for
num_workersby @Qubitium in #3532 - Avoid redundant call to the Xet connection info URL by @Wauplin in #3534
- Pass through additional arguments from
HfApidownload utils by @schmrlng in #3531 - Add optional cache to
whoamiby @Wauplin in #3568 - Enhance
repo_type_and_id_from_hf_idby @pulltheflower in #3507 - Warn on server warning 'X-HF-Warning' by @Wauplin in #3589
- Just print server warning without hardcoded client-side addition by @Wauplin in #3592
- Decrease number of files before falling back to
list_repo_treeinsnapshot_downloadby @hanouticelina in #3565
📖 Documentation
- [Docs] Update CLI installation guide by @hanouticelina in #3536
- Fix: correct
hf loginexample tohf auth loginby @alisheryeginbay in #3590
🛠️ Small fixes and maintenance
🐛 Bug and typo fixes
- [Inference] Fix zero shot classification output parsing by @hanouticelina in #3561
- Fix
FileNotFoundErrorin CLI update check by @hanouticelina in #3574 - Fix
HfHubHTTPErrorreduce error by adding factory function by @owenowenisme in #3579 - Make 'name' optional in catalog deploy by @Wauplin in #3529
- Do not use rich in tiny-agents CLI by @Wauplin in #3573
- use
constants.HF_HUB_ETAG_TIMEOUTas timeout forget_hf_file_metadataby @krrome in #3595
🏗️ Internal
- Add
huggingface_hubas dependency for hf by @Wauplin in #3527 - Prepare for 1.2 release by @hanouticelina in #3528
- [Internal] Fix CI by @hanouticelina in #3544
- Fix test_list_spaces_linked in CI by @Wauplin in #3549
- Fix minor things in CI by @Wauplin in #3558
- [Internal] Fix quality by @hanouticelina in #3572
- Fix quality by @hanouticelina in #3584
Significant community contributions
The following contributors have made significant changes to the library over the last release:
- @schmrlng
- Pass through additional arguments from
HfApidownload utils (#3531)
- Pass through additional arguments from
- @eliasto
- Add OVHcloud AI Endpoints as an Inference Provder (#3541)
- @Boulaouaney
- Add uv support to installation scripts for faster package installation (#3486)
- @pulltheflower
- Enhance repo_type_and_id_from_hf_id of hf_api (#3507)
- @owenowenisme
- Fix HfHubHTTPError reduce error by adding factory function (#3579)
- @BastienGimbert
- Add daily papers endpoint (#3502)
- @Samoed
- Add more parameters to daily papers (#3585)