Download syxin_old/launch_train_random_anchor.py from FasterDFlash/Hanrui: direct link, hf CLI and curl.
- Browser
- Download file 412 Bytes
-
https://huggingface.co/FasterDFlash/Hanrui/resolve/main/syxin_old/launch_train_random_anchor.py
- Command line
-
hf download hf://FasterDFlash/Hanrui/syxin_old/launch_train_random_anchor.py
-
curl -L -o launch_train_random_anchor.py https://huggingface.co/FasterDFlash/Hanrui/resolve/main/syxin_old/launch_train_random_anchor.py
412 Bytes
| #!/usr/bin/env python3 | |
| """ | |
| Python wrapper to launch random anchor training script via northjob/torchrun | |
| """ | |
| import subprocess | |
| import sys | |
| import os | |
| if __name__ == "__main__": | |
| bash_script = "/workspace/hanrui/syxin_old/run_train_multinode_random_anchor.sh" | |
| args = sys.argv[1:] | |
| cmd = ["bash", bash_script] + args | |
| result = subprocess.run(cmd, env=os.environ.copy()) | |
| sys.exit(result.returncode) | |