Download code/hf_push2.py from ThuongBuiRVC/datariengcuathuongbui: direct link, hf CLI and curl.
- Browser
- Download file 468 Bytes
-
https://huggingface.co/datasets/ThuongBuiRVC/datariengcuathuongbui/resolve/main/code/hf_push2.py
- Command line
-
hf download hf://datasets/ThuongBuiRVC/datariengcuathuongbui/code/hf_push2.py
-
curl -L -o hf_push2.py https://huggingface.co/datasets/ThuongBuiRVC/datariengcuathuongbui/resolve/main/code/hf_push2.py
468 Bytes
| 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) | |