[chores][log] change registry log from warning to debug (#43045)
Signed-off-by: Hank <hcc.mayday@gmail.com>
This commit is contained in:
@@ -108,14 +108,14 @@ def test_register_quantization_config(caplog_vllm):
|
|||||||
assert get_quantization_config("custom_quant") == CustomQuantConfig
|
assert get_quantization_config("custom_quant") == CustomQuantConfig
|
||||||
|
|
||||||
# The quantization method `custom_quant` is already exists,
|
# The quantization method `custom_quant` is already exists,
|
||||||
# should raise a warning when re-registering it.
|
# should raise a debug message when re-registering it.
|
||||||
with caplog_vllm.at_level(logging.WARNING):
|
with caplog_vllm.at_level(logging.DEBUG, logger="vllm"):
|
||||||
register_quantization_config("custom_quant")(CustomQuantConfig)
|
register_quantization_config("custom_quant")(CustomQuantConfig)
|
||||||
|
|
||||||
assert any(
|
assert any(
|
||||||
"The quantization method 'custom_quant' already exists" in message
|
"The quantization method 'custom_quant' already exists" in message
|
||||||
for message in caplog_vllm.messages
|
for message in caplog_vllm.messages
|
||||||
), "Expected a warning when re-registering custom_quant"
|
), "Expected a debug message when re-registering custom_quant"
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.parametrize(
|
@pytest.mark.parametrize(
|
||||||
|
|||||||
@@ -84,7 +84,7 @@ def register_quantization_config(quantization: str):
|
|||||||
|
|
||||||
def _wrapper(quant_config_cls):
|
def _wrapper(quant_config_cls):
|
||||||
if quantization in QUANTIZATION_METHODS:
|
if quantization in QUANTIZATION_METHODS:
|
||||||
logger.warning(
|
logger.debug(
|
||||||
"The quantization method '%s' already exists and will be "
|
"The quantization method '%s' already exists and will be "
|
||||||
"overwritten by the quantization config %s.",
|
"overwritten by the quantization config %s.",
|
||||||
quantization,
|
quantization,
|
||||||
|
|||||||
@@ -980,7 +980,7 @@ class _ModelRegistry:
|
|||||||
raise TypeError(msg)
|
raise TypeError(msg)
|
||||||
|
|
||||||
if model_arch in self.models:
|
if model_arch in self.models:
|
||||||
logger.warning(
|
logger.debug(
|
||||||
"Model architecture %s is already registered, and will be "
|
"Model architecture %s is already registered, and will be "
|
||||||
"overwritten by the new model class %s.",
|
"overwritten by the new model class %s.",
|
||||||
model_arch,
|
model_arch,
|
||||||
|
|||||||
Reference in New Issue
Block a user