-
Notifications
You must be signed in to change notification settings - Fork 33
/
eval_only.sh
58 lines (56 loc) · 1.59 KB
/
eval_only.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
#!/bin/bash
EXP=$1
case "$EXP" in
"unsup-bert")
MODEL=royokong/unsup-PromptBERT
;;
"unsup-roberta")
MODEL=royokong/unsup-PromptRoBERTa
;;
"sup-bert")
MODEL=royokong/sup-PromptBERT
;;
"sup-roberta")
MODEL=royokong/sup-PromptRoBERTa
;;
*)
esac
case "$EXP" in
"unsup-bert")
CUDA_VISIBLE_DEVICES=0 python evaluation.py \
--model_name_or_path $MODEL\
--pooler avg\
--mode test\
--mask_embedding_sentence \
--mask_embedding_sentence_template "*cls*_This_sentence_of_\"*sent_0*\"_means*mask*.*sep+*"
;;
"unsup-roberta")
CUDA_VISIBLE_DEVICES=0 python evaluation.py \
--model_name_or_path $MODEL\
--pooler avg\
--mode test\
--mask_embedding_sentence \
--mask_embedding_sentence_template "*cls*_This_sentence_:_'_*sent_0*_'_means*mask*.*sep+*"
;;
"sup-bert")
CUDA_VISIBLE_DEVICES=0 python evaluation.py \
--model_name_or_path $MODEL\
--pooler avg\
--mode test\
--mask_embedding_sentence \
--mask_embedding_sentence_org_mlp\
--mask_embedding_sentence_delta \
--mask_embedding_sentence_template "*cls*_This_sentence_of_\"*sent_0*\"_means*mask*.*sep+*"
;;
"sup-roberta")
CUDA_VISIBLE_DEVICES=0 python evaluation.py \
--model_name_or_path $MODEL\
--pooler avg\
--mode test\
--mask_embedding_sentence \
--mask_embedding_sentence_use_pooler\
--mask_embedding_sentence_delta \
--mask_embedding_sentence_template "*cls*_This_sentence_:_'_*sent_0*_'_means*mask*.*sep+*"
;;
*)
esac