Download code_uploader_hf.py from Sumitwarrior7/sample-grpo-openenv: direct link, hf CLI and curl.
- Browser
- Download file 325 Bytes
-
https://huggingface.co/Sumitwarrior7/sample-grpo-openenv/resolve/main/code_uploader_hf.py
- Command line
-
hf download hf://Sumitwarrior7/sample-grpo-openenv/code_uploader_hf.py
-
curl -L -o code_uploader_hf.py https://huggingface.co/Sumitwarrior7/sample-grpo-openenv/resolve/main/code_uploader_hf.py
325 Bytes
| from huggingface_hub import HfApi | |
| # crate repo in hf | |
| # hf repo create grpo-openenv --type model | |
| api = HfApi() | |
| api.upload_large_folder( | |
| folder_path="/home/sumit-ghosh/Development/hackathons/meta-final-project/meta-hackathon", # <-- change this | |
| repo_id="Sumitwarrior7/sample-grpo-openenv", | |
| repo_type="model", | |
| ) |