File size: 293 Bytes
9bf7146
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
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,
)