HuggingFace Hub

Creator
Creator
Seonglae ChoSeonglae Cho
Created
Created
2023 Jun 19 16:53
Editor
Edited
Edited
2026 Jan 6 0:16
Refs
Refs
Github

Get Information

from huggingface_hub import HfApi commits = api.list_repo_commits(repo_id=dataset_id, repo_type="dataset") datasets = api.list_datasets(author=owner)

Login

from huggingface_hub import login, notebook_login notebook_login() login(token=token)

Download repository

from huggingface_hub import snapshot_download, hf_hub_download # Whole repo snapshot_download( repo_id=f"{owner}/{repo}", local_dir=str(sae_set_path), ) # Single file cached_file = hf_hub_download( repo_id=repo_id, filename=file )
HuggingFace Hub Features
 
 
 
 
 

Open Weight Atlas

 
 

Recommendations