logical-reasoning / scripts /tune-mgtv-internlm.sh
dh-mc's picture
ready for internlm r3
c4a6675
#!/bin/sh
BASEDIR=$(dirname "$0")
cd $BASEDIR/..
echo Current Directory:
pwd
BASEDIR=`pwd`
nvidia-smi
uname -a
cat /etc/os-release
lscpu
grep MemTotal /proc/meminfo
#pip install -r requirements.txt
#cd ../LLaMA-Factory && pip install -e .[torch,bitsandbytes]
export LOGICAL_REASONING_DATA_PATH=datasets/mgtv
export LOGICAL_REASONING_RESULTS_PATH=results/mgtv-results_p1_full.csv
export CONFIG_FILE=config/internlm2_5_7b_lora_sft_bf16_p1_full.yaml
#echo "Tuning with $CONFIG_FILE"
#$BASEDIR/scripts/tune-lf.sh $CONFIG_FILE
#export LOGICAL_REASONING_RESULTS_PATH=results/mgtv-results_p2_full.csv
#export CONFIG_FILE=config/internlm2_5_7b_lora_sft_bf16_p2_full.yaml
# export LOGICAL_REASONING_RESULTS_PATH=results/mgtv-results_p2_full_r2.csv
# export CONFIG_FILE=config/internlm2_5_7b_lora_sft_bf16_p2_full_r2.yaml
export LOGICAL_REASONING_RESULTS_PATH=results/mgtv-results_p2_full_r3.csv
export CONFIG_FILE=config/internlm2_5_7b_lora_sft_bf16_p2_full_r3.yaml
echo "Tuning with $CONFIG_FILE"
$BASEDIR/scripts/tune-lf.sh $CONFIG_FILE
$BASEDIR/scripts/eval-mgtv-internlm.sh