inflaton commited on
Commit
71dcee7
·
1 Parent(s): 8e678e8

added scripts/eval-mgtv-internlm_v2.sh

Browse files
Files changed (1) hide show
  1. scripts/eval-mgtv-internlm_v2.sh +38 -0
scripts/eval-mgtv-internlm_v2.sh ADDED
@@ -0,0 +1,38 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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=false
21
+
22
+ # export MODEL_PREFIX=Llama3.1-8B-Chinese-Chat
23
+ # export MODEL_NAME=shenzhi-wang/$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
30
+
31
+ export MODEL_PREFIX=internlm2_5-7b-chat
32
+ export MODEL_NAME=internlm/$MODEL_PREFIX
33
+
34
+ export LOGICAL_REASONING_RESULTS_PATH=data/${MODEL_PREFIX}_results.csv
35
+ export ADAPTER_PATH_BASE=llama-factory/saves/$MODEL_PREFIX
36
+
37
+ echo "Eval $MODEL_NAME with $ADAPTER_PATH_BASE"
38
+ python llm_toolkit/eval_logical_reasoning_all_epochs.py