Adam

Optimizer variant using the AdamW algorithm: adaptive per-parameter step sizes with decoupled weight decay. It is the default choice for most training and is robust to a wide range of learning rates.

Configuration

Selected as name: adam.

Option

Description

Type

Default

lr

Learning rate.

float

required

betas

Coefficients for the running gradient and squared- gradient averages.

(float, float)

(0.9, 0.999)

eps

Term added to the denominator for numerical stability.

float

1e-8

weight_decay

Decoupled weight-decay coefficient.

float

1e-2

amsgrad

Whether to use the AMSGrad variant.

bool

False

maximize

Whether to maximize rather than minimize.

bool

False

components:
  optimizer:
    name: adam
    kwargs:
      lr: 0.0002
      weight_decay: 0.00005