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, | |
) | |