-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig-tune.yaml
More file actions
55 lines (50 loc) · 1.22 KB
/
config-tune.yaml
File metadata and controls
55 lines (50 loc) · 1.22 KB
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
model:
emb_dim: 512
hidden_dim: 1365
num_heads: 8
qkv_bias: true
max_seq_len: 50
attn_dropout: 0.0
transformer_layers: 2
learning_rate: 1.0e-5
scheduler_patience: 4
reduce_lr_by: 0.5
vocabulary_size: 20
data:
batch_size: 16
max_seq_len: 50
trainer:
max_epochs: 4
accelerator: auto
devices: auto
precision: "16-mixed"
gradient_clip_val: 1.0
log_every_n_steps: 50
val_check_interval: 0.5
limit_train_batches: 10000
limit_val_batches: 1000
callbacks:
- class_path: lightning.pytorch.callbacks.ModelCheckpoint
init_args:
dirpath: "models/"
filename: "model-tune-{epoch:02d}-{val_loss:.3f}"
monitor: "val_loss"
mode: "min"
save_top_k: 2
save_last: "link"
- class_path: lightning.pytorch.callbacks.EarlyStopping
init_args:
monitor: "val_loss"
patience: 2
mode: "min"
stopping_threshold: 0.01
verbose: true
logger:
- class_path: lightning.pytorch.loggers.TensorBoardLogger
init_args:
save_dir: "logs"
name: "default"
- class_path: lightning.pytorch.loggers.mlflow.MLFlowLogger
init_args:
experiment_name: "tune-config"
save_dir: "logs-mlflow"