laurentiubp's picture
Model save
9bf7146 verified
raw
history blame contribute delete
293 Bytes
from huggingface_hub import HfApi
username = "catallama"
MODEL_NAME = "checkpoint-4500"
api = HfApi()
api.create_repo(
repo_id=f"{username}/{MODEL_NAME}",
repo_type="model",
private=True
)
api.upload_folder(
repo_id=f"{username}/{MODEL_NAME}",
folder_path=MODEL_NAME,
)