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

Seonglae Cho