File size: 468 Bytes
cfa2024
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
import os, time
from huggingface_hub import HfApi
api = HfApi(token=os.environ['HF_TOKEN'])
REPO = 'ThuongBuiRVC/datariengcuathuongbui'
api.create_repo(REPO, repo_type='dataset', private=True, exist_ok=True)
t0 = time.time()
api.upload_large_folder(repo_id=REPO, folder_path='/mnt/10TB_HDD/nuReasoning/hf_stage', repo_type='dataset',
                        num_workers=int(os.environ.get('NW', '16')))
print(f'ALL_DONE {(time.time() - t0) / 3600:.2f} h', flush=True)