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