opensi·si

Stochastic gradient descent (SGD) is a basic gradient descent optimizer to minimize loss given a set of model parameters and updates the parameters in the opposite direction of…

SGD

Stochastic gradient descent (SGD) is a basic gradient descent optimizer to minimize loss given a set of model parameters and updates the parameters in the opposite direction of the gradient. The update is performed on a randomly sampled mini-batch of data from the dataset.

bitsandbytes also supports momentum and Nesterov momentum to accelerate SGD by adding a weighted average of past gradients to the current gradient.

SGD[[api-class]]

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

SGD8bit

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

SGD32bit

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

Source and license

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