quaterion.train.xbm.xbm_config module¶
- class XbmConfig(weight: Optional[float] = 1.0, buffer_size: Optional[int] = 10000, start_iteration: Optional[int] = 1000, device: Optional[XbmDevice] = XbmDevice.AUTO)[source]¶
Bases:
object
Determine XBM settings.
This class should be returned from
configure_xbm()
- buffer_size: Optional[int] = 10000¶
Size of the memory buffer that holds embeddings from previous batches
- start_iteration: Optional[int] = 1000¶
Iteration step to start considering the buffer loss
- weight: Optional[float] = 1.0¶
Value to scale the buffer loss before adding it to the final loss