-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathtraining.yaml
45 lines (41 loc) · 1.24 KB
/
training.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
training:
# Experiment id to use in logging and checkpoints
experiment_id: null
# Maximum number of epochs
epochs: 100
# Device on which the model will be trained. Set 'cpu' to train/infer on CPU
device: cuda
dataloader:
batch_size: 256
num_workers: 4
shuffle: True
pin_memory: True
optimizer:
name: AdamW
args:
lr: 5e-5
eps: 1e-6
betas: [0.9, 0.98]
weight_decay: 0.2
# Whether to use mixed precision training instead of full precision (FP32)
amp: true
# Early stopping configs
early_stop:
# Whether to use early stopping, (Default: false)
enabled: false
# Patience for early stoppings
patience: 4000
# Criteria to be monitored for early stopping
criteria: loss
# Whether the monitored criteria should be minimized for early stopping
minimize: true
# Environment configuration
env:
# Base directory of the repo, populated when config is loaded
base_dir: null
# Directory for storing datasets and models
data_root: ${env.base_dir}/data
# Directory for experiments, logs, output samples etc.
save_dir: ${env.base_dir}/save
# Directory for saving models, logs and checkpoints for each experiment
experiments_dir: ${env.save_dir}/experiments