代码拉取完成,页面将自动刷新
#!/bin/bash
NUM=$1
all_files=$(ls tune_files/${NUM}/*.txt)
for file in ${all_files};
do
setting_str=$(cat ${file})
stringarray=($setting_str)
dr=${stringarray[0]}
n_sh=${stringarray[1]}
n_sp=${stringarray[2]}
nh=${stringarray[3]}
warm=${stringarray[4]}
w=${stringarray[5]}
init_scale=${stringarray[6]}
#export CONFIG=configs/patch_transformer/tune_fixed.yaml;
#export CONFIG=configs/image_transformer/bert.yaml
#export CONFIG=configs/gr_transformer/sim.yaml
#export CONFIG=configs/gr_transformer/debug_heldout.yaml
#export CONFIG=configs/gr_transformer/flip_residual.yaml
#export CONFIG=configs/gr_transformer/rotate.yaml
export CONFIG=configs/gr_transformer/stacks/recon_long_command.yaml
dir="/srv/local1/estengel/models/transformer_tune_gr_long/${dr}_${w}_${n_sh}_${n_sp}_${nh}_${warm}_${init_scale}";
export CHECKPOINT_DIR=${dir};
export ZERO_WEIGHT=${w};
export SHARED_LAYERS=${n_sh};
export SPLIT_LAYERS=${n_sp};
export NHEADS=${nh};
export WARMUP=${warm};
export INIT_SCALE=${init_scale};
echo ${CHECKPOINT_DIR} &> grid_logs/tmux_test_${NUM}
echo "executing grid_scripts in $(pwd)" >> grid_logs/tmux_test_${NUM};
bash grid_scripts/tune_transformer_gr.sh;
#echo "cuda ${CUDA_VISIBLE_DEVICE}" >> grid_logs/tmux_test_${NUM}
done;
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。