File size: 479 Bytes
655f931
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python3
import os
from huggingface_hub import HfApi

api = HfApi(token=os.environ.get('HF_TOKEN'))
api.upload_folder(
    repo_id='zerolimites/BitNet-TinyDialogues-1.58b',
    repo_type='model',
    folder_path='/home/user/bitnet-tinydialogues',
    commit_message='BitNet b1.58 TinyDialogues: trained checkpoint, GGUF, scripts, patches',
    ignore_patterns=['space/index.html', 'space/static-README.md', '*.pyc', '__pycache__/*'],
)
print('uploaded model repo')