cd ~ for g in 0 1 2 3; do cp ~/wm_groups/g$g/wm.pt ~/wm_groups/g$g/wm_round1.pt; cp ~/wm_groups/g$g/gen10.mp4 ~/wm_groups/g$g/gen10_round1.mp4; 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=8 RESUME=1 nohup ~/xla_env/bin/python ~/wm_groups/train_group.py > ~/wm_groups/stdout2_g$g.txt 2>&1 & done wait; echo ALL_RESUME_DONE > ~/wm_groups/resume_done.txt