Top-level facade for all HuggingFace Hub operations.
Delegates to the appropriate sub-module based on the operation. You can also use each sub-module directly for advanced use cases.
Quick reference
Summary
Functions
Creates a branch. See Hub.Repos.create_branch/3.
Creates a collection. See Hub.Collections.create/1.
Creates a Hub repository. See Hub.Repos.create/2.
Deletes a branch. See Hub.Repos.delete_branch/3.
Deletes a file in a commit. See Hub.Commits.delete_file/2.
Deletes multiple files in a commit. See Hub.Commits.delete_files/2.
Deletes a Hub repository. See Hub.Repos.delete/2.
Downloads a file. See Hub.Repos.download_file/3.
Gets a collection by slug. See Hub.Collections.get/2.
Gets a job's status. See Hub.Jobs.get/3.
Returns the default Hub cache directory. See Hub.Snapshots.default_cache_dir/0.
Returns a lazy stream of collections. See Hub.Collections.list/1.
Returns a lazy stream of models. See Hub.Models.list/1.
Returns detailed metadata for a model. See Hub.Models.get/2.
Handles OAuth redirect and exchanges code for tokens. See Hub.OAuth.handle_redirect/1.
Builds a PKCE OAuth login URL. See Hub.OAuth.login_url/1.
Runs an inference job. See Hub.Jobs.run/2.
Uploads a file in a commit. See Hub.Commits.upload_file/2.
Uploads multiple files in a commit. See Hub.Commits.upload_files/3.
Returns info about the currently authenticated user/org. See Hub.Auth.who_am_i/1.
Functions
Creates a branch. See Hub.Repos.create_branch/3.
Creates a collection. See Hub.Collections.create/1.
Creates a Hub repository. See Hub.Repos.create/2.
Deletes a branch. See Hub.Repos.delete_branch/3.
Deletes a file in a commit. See Hub.Commits.delete_file/2.
Deletes multiple files in a commit. See Hub.Commits.delete_files/2.
Deletes a Hub repository. See Hub.Repos.delete/2.
Downloads a file. See Hub.Repos.download_file/3.
Gets a collection by slug. See Hub.Collections.get/2.
Gets a job's status. See Hub.Jobs.get/3.
Returns the default Hub cache directory. See Hub.Snapshots.default_cache_dir/0.
Returns a lazy stream of collections. See Hub.Collections.list/1.
Returns a lazy stream of models. See Hub.Models.list/1.
Returns detailed metadata for a model. See Hub.Models.get/2.
Handles OAuth redirect and exchanges code for tokens. See Hub.OAuth.handle_redirect/1.
Builds a PKCE OAuth login URL. See Hub.OAuth.login_url/1.
Runs an inference job. See Hub.Jobs.run/2.
Uploads a file in a commit. See Hub.Commits.upload_file/2.
Uploads multiple files in a commit. See Hub.Commits.upload_files/3.
Returns info about the currently authenticated user/org. See Hub.Auth.who_am_i/1.