dh-mc commited on
Commit
75c4663
1 Parent(s): 33cd694

Create eval-mgtv-internlm-20b.sh

Browse files
Files changed (1) hide show
  1. scripts/eval-mgtv-internlm-20b.sh +29 -0
scripts/eval-mgtv-internlm-20b.sh ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ #!/bin/sh
2
+
3
+ BASEDIR=$(dirname "$0")
4
+ cd $BASEDIR/..
5
+ echo Current Directory:
6
+ pwd
7
+
8
+ BASEDIR=`pwd`
9
+
10
+ nvidia-smi
11
+ uname -a
12
+ cat /etc/os-release
13
+ lscpu
14
+ grep MemTotal /proc/meminfo
15
+
16
+ export LOGICAL_REASONING_DATA_PATH=datasets/mgtv
17
+ export RESIZE_TOKEN_EMBEDDINGS=true
18
+ export USING_LLAMA_FACTORY=true
19
+ export USING_P1_PROMPT_TEMPLATE=false
20
+ export LOAD_IN_4BIT=true
21
+
22
+ export MODEL_PREFIX=internlm2_5-20b-chat
23
+ export MODEL_NAME=internlm/$MODEL_PREFIX
24
+
25
+ export LOGICAL_REASONING_RESULTS_PATH=data/${MODEL_PREFIX}_results.csv
26
+ export ADAPTER_PATH_BASE=llama-factory/saves/$MODEL_PREFIX
27
+
28
+ echo "Eval $MODEL_NAME with $ADAPTER_PATH_BASE"
29
+ python llm_toolkit/eval_logical_reasoning_all_epochs.py