chore: modify batch run

This commit is contained in:
wql 2024-09-19 14:03:17 +08:00
parent 53f79118f0
commit e99fab5e4c
2 changed files with 26 additions and 2 deletions

View File

@ -1 +1,25 @@
bash run_once.sh lora_sft Qwen-7B 4 50
#!/bin/bash
# bash batch_run.sh 3
repeat_cnt=$1
for ((i=0; i<repeat_cnt; i++)); do
bash run_once.sh lora_sft Qwen-7B 8 500
bash run_once.sh lora_sft Qwen-7B 8 1000
bash run_once.sh lora_sft Qwen-7B 1 500
bash run_once.sh lora_sft Qwen-7B 1 1000
bash run_once.sh lora_sft Baichuan2-7B 8 500
bash run_once.sh lora_sft Baichuan2-7B 8 1000
bash run_once.sh lora_sft Baichuan2-7B 1 500
bash run_once.sh lora_sft Baichuan2-7B 1 1000
bash run_once.sh inference Qwen-7B 8 500
bash run_once.sh inference Qwen-7B 8 1000
bash run_once.sh inference Qwen-7B 1 500
bash run_once.sh inference Qwen-7B 1 1000
bash run_once.sh inference Baichuan2-7B 8 500
bash run_once.sh inference Baichuan2-7B 8 1000
bash run_once.sh inference Baichuan2-7B 1 500
bash run_once.sh inference Baichuan2-7B 1 1000
done

View File

@ -50,6 +50,6 @@ fi
wait $train_pid
echo "Train ended"
# sleep 60
sleep 60
kill $npu_status_pid
echo "Npu status ended"