[Misc] Reduce logs for model resolution (#21765)

Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
This commit is contained in:
Cyrus Leung 2025-07-28 22:59:56 +08:00 committed by GitHub
parent 34a20c49b3
commit 0e18a5d058
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -949,9 +949,12 @@ class ModelConfig:
runner_type = self._get_default_runner_type(architectures)
# Don't log the most common case
if runner_type != "generate":
logger.info(
"Resolved `--runner auto` to `--runner %s`. "
"Pass the value explicitly to silence this message.", runner_type)
"Pass the value explicitly to silence this message.",
runner_type)
return runner_type
@ -998,9 +1001,12 @@ class ModelConfig:
convert_type = self._get_default_convert_type(architectures,
runner_type)
# Don't log the most common case
if convert_type != "none":
logger.info(
"Resolved `--convert auto` to `--convert %s`. "
"Pass the value explicitly to silence this message.", convert_type)
"Pass the value explicitly to silence this message.",
convert_type)
return convert_type