File size: 783 Bytes
8ebda9e |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
#!/bin/bash
set -x -e
echo "START TIME: $(date)"
BIN_DIR=/cognitive_comp/ganruyi/experiments/randeng_t5_char_57M/randeng_t5_char_57M
if [ ! -d ${BIN_DIR} ];then
mkdir ${BIN_DIR}
echo ${BIN_DIR} created!!!!!!!!!!!!!!
else
echo ${BIN_DIR} exist!!!!!!!!!!!!!!!
fi
export TORCH_EXTENSIONS_DIR=/cognitive_comp/ganruyi/tmp/torch_extendsions
MODEL_ARGS="
--ckpt_path /cognitive_comp/ganruyi/experiments/randeng_t5_char_57M/ckpt/last.ckpt/checkpoint/mp_rank_00_model_states.pt \
--bin_path ${BIN_DIR}/pytorch_model.bin \
--rm_prefix module.model. \
"
SCRIPTS_PATH=/cognitive_comp/ganruyi/Fengshenbang-LM/fengshen/examples/pretrain_t5/convert_ckpt_to_bin.py
export CMD=" \
$SCRIPTS_PATH \
$MODEL_ARGS \
"
echo $CMD
/home/ganruyi/anaconda3/bin/python $CMD
|