Skip to content

Commit 0e18a5d

Browse files
[Misc] Reduce logs for model resolution (#21765)
Signed-off-by: DarkLight1337 <[email protected]>
1 parent 34a20c4 commit 0e18a5d

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

vllm/config.py

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -949,9 +949,12 @@ def _get_runner_type(
949949

950950
runner_type = self._get_default_runner_type(architectures)
951951

952-
logger.info(
953-
"Resolved `--runner auto` to `--runner %s`. "
954-
"Pass the value explicitly to silence this message.", runner_type)
952+
# Don't log the most common case
953+
if runner_type != "generate":
954+
logger.info(
955+
"Resolved `--runner auto` to `--runner %s`. "
956+
"Pass the value explicitly to silence this message.",
957+
runner_type)
955958

956959
return runner_type
957960

@@ -998,9 +1001,12 @@ def _get_convert_type(
9981001
convert_type = self._get_default_convert_type(architectures,
9991002
runner_type)
10001003

1001-
logger.info(
1002-
"Resolved `--convert auto` to `--convert %s`. "
1003-
"Pass the value explicitly to silence this message.", convert_type)
1004+
# Don't log the most common case
1005+
if convert_type != "none":
1006+
logger.info(
1007+
"Resolved `--convert auto` to `--convert %s`. "
1008+
"Pass the value explicitly to silence this message.",
1009+
convert_type)
10041010

10051011
return convert_type
10061012

0 commit comments

Comments
 (0)