1 Star 0 Fork 0

焦建军/good_robot

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
execute_tune_gr.sh 1.33 KB
一键复制 编辑 原始数据 按行查看 历史
esteng 提交于 2021-04-27 11:17 . pre-pull
#!/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;
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/jiaojianjun-com/good_robot.git
git@gitee.com:jiaojianjun-com/good_robot.git
jiaojianjun-com
good_robot
good_robot
master

搜索帮助