Download run_groups.sh from LiberalMind/wm_groups: direct link, hf CLI and curl.
- Browser
- Download file 448 Bytes
-
https://huggingface.co/datasets/LiberalMind/wm_groups/resolve/main/run_groups.sh
- Command line
-
hf download hf://datasets/LiberalMind/wm_groups/run_groups.sh
-
curl -L -o run_groups.sh https://huggingface.co/datasets/LiberalMind/wm_groups/resolve/main/run_groups.sh
448 Bytes
| cd ~ | |
| mkdir -p ~/wm_groups | |
| ~/xla_env/bin/python ~/wm_groups/cluster.py > ~/wm_groups/cluster.log 2>&1 || { echo CLUSTER_FAIL; exit 1; } | |
| for g in 0 1 2 3; do | |
| TPU_CHIPS_PER_PROCESS_BOUNDS=1,1,1 TPU_PROCESS_BOUNDS=1,1,1 TPU_VISIBLE_CHIPS=$g TPU_PROCESS_PORT=$((8476+g)) CLOUD_TPU_TASK_ID=0 \ | |
| PJRT_DEVICE=TPU GROUP=$g MAX_MIN=7 nohup ~/xla_env/bin/python ~/wm_groups/train_group.py > ~/wm_groups/stdout_g$g.txt 2>&1 & | |
| done | |
| wait | |
| echo ALL_GROUPS_DONE | |