Skip to content

AdamParamsConfig

Source code in docs_src/capo_sagemakertrainingsessionruntime/types/adam_params_config.py
class AdamParamsConfig(TypedDict, closed=True):
    learning_rate: "float"
    """<p>The learning rate for the optimizer. Must be greater than 0.</p>"""
    beta1: "float"
    """<p>The exponential decay rate for the first moment estimates.</p>"""
    beta2: "float"
    """<p>The exponential decay rate for the second moment estimates.</p>"""
    eps: "float"
    """<p>A small constant added to the denominator for numerical stability.</p>"""
    weight_decay: "float"
    """<p>The weight decay (L2 regularization) coefficient.</p>"""
    grad_clip_norm: "float"
    """<p>The maximum gradient norm for gradient clipping. Gradients are scaled down if their norm exceeds this value.</p>"""
    lora_plus_lr_ratio: NotRequired["float"]
    """<p>The learning rate multiplier for LoRA+ B matrices relative to A matrices. When set, B matrices use <code>learningRate * loraPlusLrRatio</code> while A matrices use the base learning rate.</p>"""

beta1 instance-attribute

beta1: float

The exponential decay rate for the first moment estimates.

beta2 instance-attribute

beta2: float

The exponential decay rate for the second moment estimates.

eps instance-attribute

eps: float

A small constant added to the denominator for numerical stability.

grad_clip_norm instance-attribute

grad_clip_norm: float

The maximum gradient norm for gradient clipping. Gradients are scaled down if their norm exceeds this value.

learning_rate instance-attribute

learning_rate: float

The learning rate for the optimizer. Must be greater than 0.

lora_plus_lr_ratio instance-attribute

lora_plus_lr_ratio: NotRequired[float]

The learning rate multiplier for LoRA+ B matrices relative to A matrices. When set, B matrices use learningRate * loraPlusLrRatio while A matrices use the base learning rate.

weight_decay instance-attribute

weight_decay: float

The weight decay (L2 regularization) coefficient.