In this section, you will find practical guides to help you achieve a specific goal.
Overview
In this section, you will find practical guides to help you achieve a specific goal. Take a look at these guides to learn how to use huggingface_hub to solve real-world problems:
Code (55 lines)
Repository
How to create a repository on the Hub? How to configure it? How to interact with it?
Download files
How do I download a file from the Hub? How do I download a repository?
Upload files
How to upload a file or a folder? How to make changes to an existing repository on the Hub?
Search
How to efficiently search through the 200k+ public models, datasets and spaces?
HfFileSystem
How to interact with the Hub through a convenient interface that mimics Python's file interface?
Inference
How to make predictions using Hugging Face Inference Providers?
Community Tab
How to interact with the Community tab (Discussions and Pull Requests)?
Collections
How to programmatically build collections?
Cache
How does the cache-system work? How to benefit from it?
Model Cards
How to create and share Model Cards?
Manage your Space
How to manage your Space hardware and configuration?
Integrate a library
What does it mean to integrate a library with the Hub? And how to do it?
Webhooks server
How to create a server to receive Webhooks and deploy it as a Space?
Jobs
How to run and manage compute Jobs on Hugging Face infrastructure and select the hardware?Source and license
Source: Hub Python Library documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.