Interface AdamParamsConfig.Builder
- All Superinterfaces:
Buildable,CopyableBuilder<AdamParamsConfig.Builder,,AdamParamsConfig> SdkBuilder<AdamParamsConfig.Builder,,AdamParamsConfig> SdkPojo
- Enclosing class:
AdamParamsConfig
@Mutable
@NotThreadSafe
public static interface AdamParamsConfig.Builder
extends SdkPojo, CopyableBuilder<AdamParamsConfig.Builder,AdamParamsConfig>
-
Method Summary
Modifier and TypeMethodDescriptionThe exponential decay rate for the first moment estimates.The exponential decay rate for the second moment estimates.A small constant added to the denominator for numerical stability.gradClipNorm(Double gradClipNorm) The maximum gradient norm for gradient clipping.learningRate(Double learningRate) The learning rate for the optimizer.loraPlusLrRatio(Double loraPlusLrRatio) The learning rate multiplier for LoRA+ B matrices relative to A matrices.weightDecay(Double weightDecay) The weight decay (L2 regularization) coefficient.Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
learningRate
The learning rate for the optimizer. Must be greater than 0.
- Parameters:
learningRate- The learning rate for the optimizer. Must be greater than 0.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beta1
The exponential decay rate for the first moment estimates.
- Parameters:
beta1- The exponential decay rate for the first moment estimates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
beta2
The exponential decay rate for the second moment estimates.
- Parameters:
beta2- The exponential decay rate for the second moment estimates.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
eps
A small constant added to the denominator for numerical stability.
- Parameters:
eps- A small constant added to the denominator for numerical stability.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
weightDecay
The weight decay (L2 regularization) coefficient.
- Parameters:
weightDecay- The weight decay (L2 regularization) coefficient.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
gradClipNorm
The maximum gradient norm for gradient clipping. Gradients are scaled down if their norm exceeds this value.
- Parameters:
gradClipNorm- The maximum gradient norm for gradient clipping. Gradients are scaled down if their norm exceeds this value.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
loraPlusLrRatio
The learning rate multiplier for LoRA+ B matrices relative to A matrices. When set, B matrices use
learningRate * loraPlusLrRatiowhile A matrices use the base learning rate.- Parameters:
loraPlusLrRatio- The learning rate multiplier for LoRA+ B matrices relative to A matrices. When set, B matrices uselearningRate * loraPlusLrRatiowhile A matrices use the base learning rate.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-