experiments.configs.scheduler

experiments/configs/scheduler.py
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
scheduler_defaults = {
    'linear_schedule_with_warmup': {
        'scheduler_kwargs': {
            'num_warmup_steps': 0,
        },
    },
    'cosine_schedule_with_warmup': {
        'scheduler_kwargs': {
            'num_warmup_steps': 0,
        },
    },
    'ReduceLROnPlateau': {
        'scheduler_kwargs': {},
    },
    'StepLR': {
        'scheduler_kwargs': {
            'step_size': 1,
        }
    },
    'MultiStepLR': {
        'scheduler_kwargs': {
            'gamma': 0.1,
        }
    },
}