Bitsandbytes documentation

AdEMAMix

You are viewing main version, which requires installation from source. If you'd like regular pip install, checkout the latest stable version (v0.44.1).
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

AdEMAMix

AdEMAMix is a variant of the Adam optimizer.

bitsandbytes also supports paged optimizers which take advantage of CUDAs unified memory to transfer memory from the GPU to the CPU when GPU memory is exhausted.

AdEMAMix

class bitsandbytes.optim.AdEMAMix

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 optim_bits: Literal = 32 min_8bit_size: int = 4096 is_paged: bool = False )

__init__

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 optim_bits: Literal = 32 min_8bit_size: int = 4096 is_paged: bool = False )

AdEMAMix8bit

class bitsandbytes.optim.AdEMAMix8bit

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 min_8bit_size: int = 4096 is_paged: bool = False )

__init__

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 min_8bit_size: int = 4096 is_paged: bool = False )

AdEMAMix32bit

class bitsandbytes.optim.AdEMAMix32bit

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 min_8bit_size: int = 4096 is_paged: bool = False )

__init__

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 min_8bit_size: int = 4096 is_paged: bool = False )

PagedAdEMAMix

class bitsandbytes.optim.PagedAdEMAMix

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 optim_bits: Literal = 32 min_8bit_size: int = 4096 )

__init__

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 optim_bits: Literal = 32 min_8bit_size: int = 4096 )

PagedAdEMAMix8bit

class bitsandbytes.optim.PagedAdEMAMix8bit

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 min_8bit_size: int = 4096 )

__init__

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 min_8bit_size: int = 4096 )

PagedAdEMAMix32bit

class bitsandbytes.optim.PagedAdEMAMix32bit

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 min_8bit_size: int = 4096 )

__init__

< >

( params: Iterable lr: float = 0.001 betas: Tuple = (0.9, 0.999, 0.9999) alpha: float = 5.0 t_alpha: Optional = None t_beta3: Optional = None eps: float = 1e-08 weight_decay: float = 0.01 min_8bit_size: int = 4096 )

< > Update on GitHub