Buckets:
AdaGrad
AdaGrad (Adaptive Gradient) is an adaptive learning rate optimizer. AdaGrad stores a sum of the squared past gradients for each parameter and uses it to scale their learning rate. This allows the learning rate to be automatically lower or higher depending on the magnitude of the gradient, eliminating the need to manually tune the learning rate.
Adagrad[[api-class]][[bitsandbytes.optim.Adagrad]]
class bitsandbytes.optim.Adagradbitsandbytes.optim.Adagrad
initbitsandbytes.optim.Adagrad.inittorch.tensor) --
The input parameters to optimize.
- lr (
float, defaults to 1e-2) -- The learning rate. - lr_decay (
int, defaults to 0) -- The learning rate decay. - weight_decay (
float, defaults to 0.0) -- The weight decay value for the optimizer. - initial_accumulator_value (
int, defaults to 0) -- The initial momemtum values. - eps (
float, defaults to 1e-10) -- The epsilon value prevents division by zero in the optimizer. - optim_bits (
int, defaults to 32) -- The number of bits of the optimizer state. - args (
object, defaults toNone) -- An object with additional arguments. - min_8bit_size (
int, defaults to 4096) -- The minimum number of elements of the parameter tensors for 8-bit optimization. - percentile_clipping (
int, defaults to 100) -- Adapts clipping threshold automatically by tracking the last 100 gradient norms and clipping the gradient at a certain percentile to improve stability. - block_wise (
bool, defaults toTrue) -- Whether to independently quantize each block of tensors to reduce outlier effects and improve stability.0
Base Adagrad optimizer.
Adagrad8bit[[bitsandbytes.optim.Adagrad8bit]]
class bitsandbytes.optim.Adagrad8bitbitsandbytes.optim.Adagrad8bit
initbitsandbytes.optim.Adagrad8bit.inittorch.tensor) --
The input parameters to optimize.
- lr (
float, defaults to 1e-2) -- The learning rate. - lr_decay (
int, defaults to 0) -- The learning rate decay. - weight_decay (
float, defaults to 0.0) -- The weight decay value for the optimizer. - initial_accumulator_value (
int, defaults to 0) -- The initial momemtum values. - eps (
float, defaults to 1e-10) -- The epsilon value prevents division by zero in the optimizer. - optim_bits (
int, defaults to 8) -- The number of bits of the optimizer state. - args (
object, defaults toNone) -- An object with additional arguments. - min_8bit_size (
int, defaults to 4096) -- The minimum number of elements of the parameter tensors for 8-bit optimization. - percentile_clipping (
int, defaults to 100) -- Adapts clipping threshold automatically by tracking the last 100 gradient norms and clipping the gradient at a certain percentile to improve stability. - block_wise (
bool, defaults toTrue) -- Whether to independently quantize each block of tensors to reduce outlier effects and improve stability.0
8-bit Adagrad optimizer.
Adagrad32bit[[bitsandbytes.optim.Adagrad32bit]]
class bitsandbytes.optim.Adagrad32bitbitsandbytes.optim.Adagrad32bit
initbitsandbytes.optim.Adagrad32bit.inittorch.tensor) --
The input parameters to optimize.
- lr (
float, defaults to 1e-2) -- The learning rate. - lr_decay (
int, defaults to 0) -- The learning rate decay. - weight_decay (
float, defaults to 0.0) -- The weight decay value for the optimizer. - initial_accumulator_value (
int, defaults to 0) -- The initial momemtum values. - eps (
float, defaults to 1e-10) -- The epsilon value prevents division by zero in the optimizer. - optim_bits (
int, defaults to 32) -- The number of bits of the optimizer state. - args (
object, defaults toNone) -- An object with additional arguments. - min_8bit_size (
int, defaults to 4096) -- The minimum number of elements of the parameter tensors for 8-bit optimization. - percentile_clipping (
int, defaults to 100) -- Adapts clipping threshold automatically by tracking the last 100 gradient norms and clipping the gradient at a certain percentile to improve stability. - block_wise (
bool, defaults toTrue) -- Whether to independently quantize each block of tensors to reduce outlier effects and improve stability.0
32-bit Adagrad optimizer.
Xet Storage Details
- Size:
- 9.24 kB
- Xet hash:
- 13d674b8720f6feac374da42bb6319ff5518869756eb9ffd8d3671e90f2d60bd
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.