opensi·si

LAMB (Layerwise adaptive large batch optimization) is an adaptive optimizer designed for training with large batch sizes to accelerate training, combining ideas from LARS and…

LAMB

LAMB (Layerwise adaptive large batch optimization) is an adaptive optimizer designed for training with large batch sizes to accelerate training, combining ideas from LARS and Adam to automatically scale the learning rate for each layer:

  • calculates a trust ratio between the weight and gradient norm in a layer and clips the ratio to prevent overly large or small updates
  • updates weights with the first and second-moments

LAMB[[api-class]]

[[autodoc]] bitsandbytes.optim.LAMB - init

LAMB8bit

[[autodoc]] bitsandbytes.optim.LAMB8bit - init

LAMB32bit

[[autodoc]] bitsandbytes.optim.LAMB32bit - init

Source and license

Source: Bitsandbytes documentation, adapted for this site. Licensing and attribution follow the terms of the upstream project.