cd ~ for g in 0 1 2 3; do cp ~/wm_groups/v2/g$g/wm.pt ~/wm_groups/v2/g$g/wm_prev.pt; cp ~/wm_groups/v2/g$g/wm.pt ~/wm_groups/v2/g$g/wm_r3.pt; cp ~/wm_groups/v2/g$g/gen10.mp4 ~/wm_groups/v2/g$g/gen10_r3.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=25 TARGET=0.03 LR=2e-4 RESUME=1 nohup ~/xla_env/bin/python ~/wm_groups/train_group2.py > ~/wm_groups/v2/stdout4_g$g.txt 2>&1 & done wait; echo DONE > ~/wm_groups/v2/done4.txt