huggingface/huggingface_hub

The official CLI and Python client for the Hugging Face Hub.

View on GitHub ↗Jump to charts ↓Open shareable report

Summary Information

Updated 46 minutes ago
Added to GitGenius on December 4th, 2024
Created on December 22nd, 2020
Open Issues & Pull Requests: 222 (+0)
Number of forks: 1,167
Total Stargazers: 3,840 (+1)
Total Subscribers: 74 (+0)

Repository Insights (GitGenius)

Median issue/PR response: 12.3 hours
Mean response time: 64.4 days
90th percentile: 71.0 days
Tracked items: 944

How this project is maintained

Around half of the issues opened in the past year never receive a reply. 94% of open issues come from outside the core team, so the backlog reflects real-world use rather than internal planning. Work labelled "bug" is answered fastest, typically in about 10 hours, while "CLI" waits about 2 weeks. 60% of tracked open issues have had no activity in three months, so the open count overstates what is actively being worked. Only 9% of issues opened in the past year have been closed.

Charts & Analytics

Fetching additional details & charts...

Issue Activity (beta)

Open issues: 168
New in 7 days: 9
Closed in 7 days: 14
Avg open age: 434 days
Stale 30+ days: 147
Stale 90+ days: 127

Recent activity

Opened in 7 days: 6
Closed in 7 days: 6
Comments in 7 days: 7
Events in 7 days: 25

Top labels

  • bug (593)
  • enhancement (74)
  • good first issue (51)
  • documentation (22)
  • discussion (18)
  • CLI (14)
  • wontfix (14)
  • api-inference-community (12)

Detailed Description

The huggingface_hub library is the official Python client for interacting with the Hugging Face Hub, a platform that democratizes open-source machine learning by enabling creators and collaborators to discover, share, and deploy models and datasets. The library provides programmatic access to core Hub functionality through a simple Python interface, allowing users to download files from the Hub, upload files to repositories, manage their own repositories, run inference on deployed models, search for models and datasets, create and share model cards for documentation, and engage with the community through pull requests and comments.

The library is designed to be minimal by default while supporting optional dependencies for specialized use cases, such as the MCP module. Installation is straightforward via pip or the recommended uv package manager. Users can authenticate with the Hub using tokens through a command-line interface, then perform operations like downloading single files or entire repositories, which are cached locally, or uploading individual files or entire folders to their repositories. The library integrates with the Hub's git-based versioning system, which supports large files and provides fast downloads through Cloudfront CDN geo-replication.

The repository is classified across multiple machine learning and collaboration domains including ML community, machine learning, NLP, model sharing, AI deployment, and the broader Hugging Face ecosystem. It shares contributors with repositories including github/gh-aw, solo-io/gloo, and microsoft/vscode, indicating cross-project collaboration within the open-source ML community. The library supports integration with other open-source ML libraries through a partnership program that provides free model hosting and versioning, built-in file versioning with git-based approaches, in-browser widgets for model interaction, and usage statistics. The project actively welcomes contributions in all forms, including code, documentation improvements, and community support, with a dedicated contribution guide to help new contributors get started.