From d95ee67fbfe02d787846161e8851af834e85253e Mon Sep 17 00:00:00 2001 From: evelynmitchell Date: Wed, 14 Feb 2024 16:59:17 -0700 Subject: [PATCH] flake8 cleanup --- swarms/models/sampling_params.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/swarms/models/sampling_params.py b/swarms/models/sampling_params.py index bf33b76c..b688aad8 100644 --- a/swarms/models/sampling_params.py +++ b/swarms/models/sampling_params.py @@ -245,10 +245,7 @@ class SamplingParams: "early_stopping is not effective and must be " "False when not using beam search." ) - if ( - self.length_penalty < 1.0 - _SAMPLING_EPS - or self.length_penalty > 1.0 + _SAMPLING_EPS - ): + if (self.length_penalty < 1.0 - _SAMPLING_EPS or self.length_penalty > 1.0 + _SAMPLING_EPS): raise ValueError( "length_penalty is not effective and must be the " "default value of 1.0 when not using beam search."