-
Notifications
You must be signed in to change notification settings - Fork 9
/
train.yaml
38 lines (38 loc) · 918 Bytes
/
train.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
system:
random_seed: 8
num_gpus: 1
paths:
tensorboard_dir: ./tensor_logs
experiments_dir: ./checkpoints
optim:
max_steps: 250000
checkpoint_step: 25000
precision: 16
sync_batchnorm: True
optimizer:
_target_: torch.optim.AdamW
params:
_target_: lgssl.optim.set_weight_decay_per_param
weight_decay: 0.01
gain_bias_decay: 0.0
lr:
_target_: lgssl.optim.get_linear_scaled_lr
base_lr: 0.001
batch_size: ${dataset.batch_size}
base_batch_size: 512
scheduler:
_target_: pl_bolts.optimizers.lr_scheduler.LinearWarmupCosineAnnealingLR
max_epochs: ${optim.max_steps}
warmup_epochs: 5000
warmup_start_lr: 1e-5
eta_min: 1e-6
dataset:
_target_: lgssl.datasets.simclr_dataset.SimCLRDataset
name: redcaps
batch_size: 512
augmentation: global_crop
sampling: nn
nn_encoder: all-mpnet-base-v2
defaults:
- model: simclr
- _self_