pass ruff check

Former-commit-id: c8f0d99704308ac1886b16e437dea601eb20658d
This commit is contained in:
marko1616 2024-03-24 16:12:10 +08:00
parent a68101cbbb
commit 1d0e24549f

View File

@ -66,7 +66,7 @@ def export_model(args: Optional[Dict[str, Any]] = None):
# Configuration check and fix
config = model.generation_config
if config.do_sample == False and (
if not config.do_sample and (
(config.temperature is not None and config.temperature != 1.0) or
(config.top_p is not None and config.top_p != 1.0) or
(config.typical_p is not None and config.typical_p != 1.0)