-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathprior.sh
30 lines (30 loc) · 898 Bytes
/
prior.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
TRAIN_METHOD=direct
TEST_METHOD=direct
LR=1e-2
N_PREFIX=10
DATASET=ethos-religion
TRAIN_TASK=tune
SPLIT=train
MODEL=gpt2-large
TRAIN_SIZE=100
STEP=100000
K=4
CUDA_VISIBLE_DEVICES=3 python test.py\
--dataset $DATASET\
--gpt $MODEL\
--method $TEST_METHOD\
--test_batch_size 16\
--out_dir out/$MODEL\
--k $K\
--embedding_dir embeddings/\
--use_demonstrations\
--concept_temperature 50\
--similarity_temperature 0.1\
--train_size $TRAIN_SIZE\
--difficulty concept_calibrated\
--n_prefix_tokens $N_PREFIX\
--concept_dir concept_likelihood/gpt2-large/$TRAIN_TASK-$SPLIT-$TRAIN_SIZE/$DATASET-$TRAIN_METHOD-prefix=$N_PREFIX-lr=$LR-$STEP\
--prefix_embed_file checkpoints/gpt2-large/$TRAIN_TASK-$SPLIT/prefix={$N_PREFIX}-{$TRAIN_METHOD}-lr={$LR}-initByVocab/soft_embeddings-$STEP.pt\
--prior easiest\
--reorder\
# --prior most_similar\