bluuwhale's picture
Upload folder using huggingface_hub
03292ca
raw
history blame contribute delete
540 Bytes
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()