Download code/RL_model/verl/Search-R1/misc/scripts/upload.py from shahidul034/readctrl: direct link, hf CLI and curl.
- Browser
- Download file 395 Bytes
-
https://huggingface.co/shahidul034/readctrl/resolve/9f813643ecd2eecc1100086fab052d9c59ac09e5/code/RL_model/verl/Search-R1/misc/scripts/upload.py
- Command line
-
hf download hf://shahidul034/readctrl@9f813643ecd2eecc1100086fab052d9c59ac09e5/code/RL_model/verl/Search-R1/misc/scripts/upload.py
-
curl -L -o upload.py https://huggingface.co/shahidul034/readctrl/resolve/9f813643ecd2eecc1100086fab052d9c59ac09e5/code/RL_model/verl/Search-R1/misc/scripts/upload.py
395 Bytes
| import os | |
| from huggingface_hub import upload_file | |
| repo_id = "PeterJinGo/wiki-18-e5-index" | |
| path = "/home/peterjin/mnt/index/wiki-18" | |
| for file in ["part_aa", "part_ab"]: | |
| upload_file( | |
| path_or_fileobj=os.path.join(path, file), # File path | |
| path_in_repo=file, # Destination filename in the repo | |
| repo_id=repo_id, # Your dataset repo ID | |
| repo_type="dataset" | |
| ) | |