-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathexample_inference.sh
executable file
·36 lines (34 loc) · 1 KB
/
example_inference.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
MODEL_PATH='../models/best_checkpoint/'
# Informal --> Formal
python inference.py \
--out_dir example_results_formal \
--lr 200 \
--top_p 0.8 \
--kl_loss_weight 0.0 \
--semantic_loss_weight 0.0 \
--size 50 \
--ctr_embed_dim 768 \
--model_path $MODEL_PATH \
--total_t 200 \
--num_drift_steps 3 \
--task formal \
--input_path '../data/enron/holdout_attribute_splits/formal_splits/formal_0.5_0.5/test_neg.tsv' \
--temperature 3.0 \
--use_sqrt_schedule
# Authorship style transfer with Wegmann Style Embeddings (https://huggingface.co/AnnaWegmann/Style-Embedding)
python inference.py \
--out_dir example_results_authorship \
--lr 2500 \
--top_p 0.8 \
--kl_loss_weight 0.0 \
--semantic_loss_weight 0.0 \
--size 50 \
--ctr_embed_dim 768 \
--model_path $MODEL_PATH \
--total_t 200 \
--num_drift_steps 3 \
--task style \
--temperature 3.0 \
--use_sqrt_schedule \
--author_directory ../data/enron/holdout_author_splits \
--assignments_json ../data/enron/holdout_author_splits/assignments.json