[Misc]fix logger which does not take effects in patches (#7402)

### What this PR does / why we need it?
This PR fixes the logger initialization in patches so that the log info
can be displayed as expected.

### Does this PR introduce _any_ user-facing change?
No.

- vLLM version: v0.17.0
- vLLM main:
4497431df6

---------

Signed-off-by: Angazenn <supperccell@163.com>
This commit is contained in:
Angazenn
2026-03-18 17:13:12 +08:00
committed by GitHub
parent 1ff9e3f25f
commit ec34bf0062
5 changed files with 4 additions and 14 deletions

View File

@@ -2,7 +2,7 @@
import math
import vllm.model_executor.models.config
from vllm.logger import init_logger
from vllm.logger import logger
from vllm.model_executor.models import ModelRegistry
from vllm.model_executor.models.config import MambaModelConfig
from vllm.utils.math_utils import cdiv
@@ -21,7 +21,6 @@ def verify_and_update_config(cls, vllm_config) -> None:
Args:
vllm_config: vLLM Config
"""
logger = init_logger(__name__)
# Enable FULL_AND_PIECEWISE by default
MambaModelConfig.verify_and_update_config(vllm_config)