-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathrun_lora_exp_test.sh
74 lines (64 loc) · 2.65 KB
/
run_lora_exp_test.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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
data_dir=./sample_data
nmd=/vol/bitbucket/l22/qkv_llama2_models_lora_16
pof=/homes/l22/Documents/git_repos/clini_dummy/qkv_predictions_llama2_lora_16.txt
log=/homes/l22/Documents/git_repos/clini_dummy/log_files/qkv_log_llama2_lora_exp.txt
ckpt_path=/vol/bitbucket/l22/qkv_llama2_models_lora_16/ckpt_0
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--ckpt_dir $ckpt_path\
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--new_model_dir $nmd \
--predict_output_file $pof \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_predict \
--do_lower_case \
--eval_batch_size 2 \
--log_file $log \
--progress_bar
data_dir=./sample_data
nmd=/vol/bitbucket/l22/qkv_llama2_models_lora_8
pof=/homes/l22/Documents/git_repos/clini_dummy/qkv_predictions_llama2_lora_8.txt
ckpt_path=/vol/bitbucket/l22/qkv_llama2_models_lora_8/ckpt_0
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--ckpt_dir $ckpt_path\
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--new_model_dir $nmd \
--predict_output_file $pof \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_predict \
--do_lower_case \
--eval_batch_size 2 \
--log_file $log \
--progress_bar
data_dir=./sample_data
nmd=/vol/bitbucket/l22/qkv_llama2_models_lora_4
pof=/homes/l22/Documents/git_repos/clini_dummy/qkv_predictions_llama2_lora_4.txt
ckpt_path=/vol/bitbucket/l22/qkv_llama2_models_lora_4/ckpt_0
accelerate launch ./src/relation_extraction.py \
--model_type llama \
--ckpt_dir $ckpt_path\
--data_format_mode 0 \
--classification_scheme 2 \
--pretrained_model meta-llama/Llama-2-7b-hf \
--data_dir $data_dir \
--new_model_dir $nmd \
--predict_output_file $pof \
--seed 13 \
--max_seq_length 256 \
--cache_data \
--do_predict \
--do_lower_case \
--eval_batch_size 2 \
--log_file $log \
--progress_bar