-
Notifications
You must be signed in to change notification settings - Fork 0
/
head_start_llama3.sh
54 lines (48 loc) · 1.53 KB
/
head_start_llama3.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
45
46
47
48
49
50
51
52
53
54
######################################## For Longbench
max_capacity_prompts=128
devices=(0 1 2 3 4 5 6 7 8)
head_choices=('reason') # copy, reason
betas=(1.005 1.01 1.1 1.2 1.5 2 5 10)
counter=0
for((i=0;i<1;i++));do
for((j=0;j<1;j++));do
device=${devices[counter]}
head_choice=${head_choices[i]}
beta=${betas[j]}
temp=1
nohup bash head_base.sh \
$device \
ReasonKV \
${max_capacity_prompts} \
flash_attention_2 \
meta-llama/Meta-Llama-3-8B-Instruct \
$head_choice \
$beta \
$temp > ./longbench_logs/llama3_ReasonKV_${head_choice}_base${max_capacity_prompts}_beta${beta}_temp${temp}.txt 2>&1 &
((counter+=1))
done
done
##################### for babi-reason
max_capacity_prompts=128
head_choices=('reason') # copy, reason
# betas=(1.02 1.005 1.1 1.2 1.5 2 5 10) # 64
betas=(1.005 1.01 1.1 1.2 1.5 2 5 10) # 128 256 512
counter=0
for((i=0;i<1;i++));do
for((j=0;j<8;j++));do
device=${devices[counter]}
head_choice=${head_choices[i]}
beta=${betas[j]}
temp=1
nohup bash head_base_babi.sh \
$device \
ReasonKV \
${max_capacity_prompts} \
flash_attention_2 \
meta-llama/Meta-Llama-3-8B-Instruct \
$head_choice \
$beta \
$temp > ./reason_logs/llama3_ReasonKV_${head_choice}_base${max_capacity_prompts}_beta${beta}_temp${temp}.txt 2>&1 &
((counter+=1))
done
done