diff --git a/astrai/trainer/strategy.py b/astrai/trainer/strategy.py index 55c5468..e4acc89 100644 --- a/astrai/trainer/strategy.py +++ b/astrai/trainer/strategy.py @@ -225,7 +225,7 @@ class DPOStrategy(BaseStrategy): device: str, ref_model: nn.Module, beta: float = 0.1, - reduction: str = "mean", + reduction: str = "sum", **kwargs, ): super().__init__(model, device, **kwargs)