-
Notifications
You must be signed in to change notification settings - Fork 0
/
experiment.yaml
62 lines (52 loc) · 1.38 KB
/
experiment.yaml
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
defaults:
- override /hydra/sweeper: optuna
name: "ggponc_ellipses"
wandb_project: ${name}
# Args
data:
cnf_tsv_path: 'data/ellipses/ggponc_ellipses_compounds.tsv'
controls_tsv_path: 'data/ellipses/ggponc_no_ellipses_small.tsv'
ggponc_plain_text: 'data/ggponc_v2/plain_text/tokens/all_files_tokens'
random_seed: 42
model_name: "google/mt5-base"
num_epochs: 20
generation_max_length: 277
train_batch_size: 8
eval_batch_size: 8
warmup_steps: 100
learning_rate : 5e-04
weight_decay: 1e-04
fp16: False
gradient_checkpointing: False
api_key:
metrics:
- exact_match
- google_bleu
output_base_path: ./outputs/${name}
date_run: ${name}/${now:%Y-%m-%d_%H-%M-%S}
# Sweep Args
hydra:
job:
chdir: true
run:
dir: ${output_base_path}/${now:%Y-%m-%d_%H-%M-%S}
sweep:
dir: ./multirun/${name}/${now:%Y-%m-%d_%H-%M-%S}
subdir: ${hydra.job.num}_${hydra.job.override_dirname}
sweeper:
_target_: hydra_plugins.hydra_optuna_sweeper.optuna_sweeper.OptunaSweeper
storage: null
study_name: hyperparameter_search
n_jobs: 1
direction: maximize
n_trials: 100
sampler:
_target_: optuna.samplers.TPESampler
seed: 12345
n_startup_trials: 10
params:
learning_rate: interval(1e-06, 1e-03)
train_batch_size: choice(4, 8, 16)
weight_decay: interval(0.0, 1.0)
warmup_steps: range(0, 500)
generation_max_length: range(50, 500)