Table of Contents

Property AdamGradientClipping

Namespace
LMKit.Finetuning
Assembly
LM-Kit.NET.dll

AdamGradientClipping

Gets or sets the AdamW optimizer's gradient clipping parameter. Gradient clipping is used to constrain the gradients to a specific range during backpropagation to prevent the exploding gradient problem.

public float AdamGradientClipping { get; set; }

Property Value

float

The default value is 1.0f. A value of 0 disables gradient clipping.