Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Hugging Face 9 min read Release easyNovice

huggingface_hub v1.0: Five Years of Building the Foundation of Open Machine Learning

huggingface_hub reaches v1.0 after five years, with breaking changes. It replaces requests with httpx for HTTP/2, thread-safe connection reuse and a unified sync/async API. It also makes hf_xet the default transfer backend, ships a redesigned Typer-based `hf` CLI that replaces huggingface-cli, and removes legacy pieces like the Git-based Repository class, HfFolder, InferenceApi and hf_transfer. Most libraries work with both v0.x and v1.x, except transformers (v4 needs v0.x, v5 needs v1.x). v0.x will receive only security fixes. The history covers the 2022 shift from Git to the HTTP Commit API with a shared deduplicated cache, and Xet's chunk-level (64KB) deduplication, now used by 77PB+ across 6M+ repositories.

Assumes: Python packagingHugging Face Hub basics

Related posts

  • The 5 Most Under-Rated Tools on Hugging Face

    Hugging Face mediumAdept

    Five overlooked Hugging Face Hub features (ZeroGPU, multi-process Docker Spaces, the Gradio API client, Hub webhooks and Nomic Atlas) can be combined into a free, automatically updating semantic search pipeline, demonstrated over a subreddit data source. A scheduled Space pulls Reddit posts into a dataset, a webhook triggers a processing Space, and that Space calls a ZeroGPU-hosted nomic-embed-text-v1.5 model through gradio_client to add embeddings and build an Atlas map. Practical details include the @spaces.GPU decorator, supervisord config for running a worker and a log viewer in one container, and webhook handling: respond within 30s using background tasks, and filter by repo scope, main branch and changed files.

  • Shipping huggingface_hub every week with AI, open tools, and a human in the loop

    Hugging Face mediumAdept

    huggingface_hub moved from releases every 4-6 weeks to weekly releases driven by a single GitHub Actions workflow that automates versioning, tagging, PyPI publishing, downstream test branches, post-release bumps and Slack reporting, with an open-weights model (GLM via HF Inference Providers, run through OpenCode) drafting release notes and announcements. The key pattern wraps the model in deterministic guardrails: a script extracts PR numbers from squash-merge commits as a manifest, diffs it against PRs referenced in the draft, and re-prompts the agent to fix missing or extra entries. The model is grounded with docs diffs from each PR, and a human edits the draft before promoting the RC. Publishing uses PyPI Trusted Publishing with OIDC and Sigstore attestations plus a checksum-pinned agent runtime, and each release costs about $0.25 in inference.

  • Introducing Skops

    Hugging Face mediumAdept

    Skops is a Hugging Face library for hosting scikit-learn models on the Hugging Face Hub, generating model cards and sharing them with collaborators. An end-to-end walkthrough trains a DecisionTreeClassifier, serializes it with pickle, and uses hub_utils.init to build a local repo with a config file capturing requirements, task and example input. It then fills a model card via the Card class with metadata, metrics, plots and descriptions, pushes to the Hub (enabling the inference widget), and covers download and update_env. The backend currently loads models with joblib, and the post does not cover secure serialization.

  • Introducing swift-huggingface: The Complete Swift Client for Hugging Face

    Hugging Face mediumAdept

    swift-huggingface is a ground-up rewrite of the Swift client for the Hugging Face Hub, replacing swift-transformers' HubApi. It fixes unreliable large-model downloads by building on URLSession download tasks with resume data, accurate progress, and per-file metadata so snapshots only refetch changed files. It also uses a Python-compatible content-addressed cache (blobs keyed by ETag, symlinked snapshots, flock-based locking) shared with the hf CLI. Further additions are an explicit TokenProvider for credential sources, OAuth 2.0 with Keychain storage, full Hub API coverage and Inference Providers, with Xet chunk-deduplicated downloads planned.

  • Hugging Face x LangChain : A new partner package

    Hugging Face mediumAdept

    langchain-huggingface is a new Python partner package jointly maintained by Hugging Face and LangChain, replacing community-written integrations that had drifted out of date. It provides HuggingFacePipeline for running transformers models locally, HuggingFaceEndpoint for the serverless Inference API or deployed TGI endpoints via InferenceClient, and ChatHuggingFace, which turns message lists into model-specific prompts with tokenizer.apply_chat_template. For embeddings it offers HuggingFaceEmbeddings (local sentence-transformers) and HuggingFaceEndpointEmbeddings (Hub or TEI instances), each shown with short code examples.

The quest for software engineering knowledge.

Look:
Layout: