Hugging FaceLucain Pouget, Célina Hanouti, Lysandre, Julien ChaumondAnnouncement
huggingface_hub v1.0: Five Years of Building the Foundation of Open Machine Learning
Summary
The Hugging Face Hub team released huggingface_hub v1.0, marking the library's transition into a mature foundation for open machine learning after five years of development. The major update migrates the underlying network backend to httpx and replaces the legacy hf_transfer tool with the hf_xet binary package to enable chunk-level file deduplication across repositories. In addition, the release introduces a redesigned Typer-based CLI using the streamlined hf command alongside explicit authentication functions and expanded inference primitives. Legacy components, including the Git-based Repository class and the older InferenceApi interface, have been removed to establish a cleaner and more maintainable architecture. Most dependent machine learning libraries remain compatible across versions, though transformers requires v0.x for version 4 and v1.x for its upcoming version 5 release.
Context
The Hugging Face Hub initially relied on Git wrappers embedded inside the transformers library to share model checkpoints. As machine learning models, datasets, and spaces expanded across thousands of external tools, the ecosystem required dedicated infrastructure that eliminated heavy Git LFS dependencies, simplified authentication, and supported scalable transfers for large model artifacts.
Approach / What changed
Hugging Face upgraded huggingface_hub to v1.0 by switching the HTTP backend to httpx, replacing hf_transfer with the chunk-level hf_xet transfer package, and introducing a redesigned Typer-based hf CLI. The release removed deprecated interfaces like the Git-based Repository class and InferenceApi in favor of direct HTTP methods, explicit auth utilities, and InferenceClient.
Takeaways
Version 1.0 switches the HTTP client backend to httpx while making HfHubHttpError inherit from both requests and httpx base error classes to preserve error-handling compatibility.
File transfers now standardize on hf_xet, replacing hf_transfer and leveraging 64KB chunk-level deduplication instead of file-level Git LFS deduplication.
Legacy interfaces such as the Git-based Repository class, HfFolder, and InferenceApi have been removed in favor of direct HTTP methods, explicit authentication helpers, and InferenceClient.
Source and freshness
- Source
- huggingface.co
- Published
- Added to Yomu
- Last updated
Summaries are generated from the original by a language model. Check the original before relying on it.
Keep reading
Related reading
The Good Stuff
Paid picks we use ourselves. Links carry a referral code — a subscription through one earns us a commission at no extra cost to you.
The best engineering reads, once a week
One useful email. Unsubscribe anytime.