File size: 540 Bytes
03292ca |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 |
from huggingface_hub import (
# User management
login,
logout,
whoami,
# Repository creation and management
Repository,
create_repo,
delete_repo,
update_repo_visibility,
# And some methods to retrieve/change information about the content
list_models,
list_datasets,
list_metrics,
list_repo_files,
upload_file,
delete_file,
)
repo = Repository("/kaggle/working/Toxic-Yarn-7b-128k", clone_from="bluuwhale/Toxic-Yarn-7b-128k")
repo.git_add()
repo.git_commit()
repo.git_push()
|