[bugfix] small fix logic issue (#18999)

Signed-off-by: reidliu41 <reid201711@gmail.com>
Co-authored-by: reidliu41 <reid201711@gmail.com>
This commit is contained in:
Reid 2025-06-03 13:35:12 +08:00 committed by GitHub
parent 1282bd812e
commit 17430e3653
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -455,7 +455,7 @@ class EngineArgs:
title="ModelConfig",
description=ModelConfig.__doc__,
)
if 'serve' not in sys.argv[1:] and '--help' not in sys.argv[1:]:
if not ('serve' in sys.argv[1:] and '--help' in sys.argv[1:]):
model_group.add_argument("--model", **model_kwargs["model"])
model_group.add_argument("--task", **model_kwargs["task"])
model_group.add_argument("--tokenizer", **model_kwargs["tokenizer"])