forked from Beomi/ko-lm-evaluation-harness
-
Notifications
You must be signed in to change notification settings - Fork 0
/
llama-2-ko-klue-etc.sh
executable file
·44 lines (36 loc) · 1.09 KB
/
llama-2-ko-klue-etc.sh
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
32
33
34
35
36
37
38
39
40
41
42
43
44
export TOKENIZERS_PARALLELISM=false
RESULT_DIR='results/korean_origin_bench'
TASKS='klue_nli,klue_sts,klue_ynat,kohatespeech,kohatespeech_apeach,kohatespeech_gen_bias,korunsmile,nsmc,pawsx_ko'
GPU_NO=3
CURRENT_TRAINED_TOKENS=40b
echo "mkdir -p $RESULT_DIR/$CURRENT_TRAINED_TOKENS"
mkdir -p $RESULT_DIR/$CURRENT_TRAINED_TOKENS
MODEL='beomi/llama-2-ko-7b'
python main.py \
--model gpt2 \
--model_args pretrained=$MODEL \
--tasks $TASKS \
--num_fewshot 0 \
--device cuda:$GPU_NO \
--output_path $RESULT_DIR/$CURRENT_TRAINED_TOKENS/00_shot.json
python main.py \
--model gpt2 \
--model_args pretrained=$MODEL \
--tasks $TASKS \
--num_fewshot 5 \
--device cuda:$GPU_NO \
--output_path $RESULT_DIR/$CURRENT_TRAINED_TOKENS/05_shot.json
python main.py \
--model gpt2 \
--model_args pretrained=$MODEL \
--tasks $TASKS \
--num_fewshot 10 \
--device cuda:$GPU_NO \
--output_path $RESULT_DIR/$CURRENT_TRAINED_TOKENS/10_shot.json
#python main.py \
#--model gpt2 \
#--model_args pretrained=$MODEL \
#--tasks $TASKS \
#--num_fewshot 50 \
#--device cuda:$GPU_NO \
#--output_path $RESULT_DIR/$CURRENT_TRAINED_TOKENS/50_shot.json