From 7e9409a2445c67b729392e58c7f8a8afac6388a1 Mon Sep 17 00:00:00 2001 From: Wing Lian Date: Thu, 7 Sep 2023 20:20:49 -0400 Subject: [PATCH] remove negation --- src/axolotl/utils/config.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/axolotl/utils/config.py b/src/axolotl/utils/config.py index a24eb46efc..0ec310d1f6 100644 --- a/src/axolotl/utils/config.py +++ b/src/axolotl/utils/config.py @@ -222,7 +222,7 @@ def validate_config(cfg): raise ValueError( "`early_stopping_patience` requires save_steps and eval_steps to be set. eval_steps should evenly divide save_steps." ) - if not cfg.save_steps % cfg.eval_steps != 0: + if cfg.save_steps % cfg.eval_steps != 0: raise ValueError( "`early_stopping_patience` requires that eval_steps should evenly divide save_steps." )