[Bugfix] Warn only on per-request do_normalize/do_rescale overrides (#60240)

Signed-off-by: lesj0610 <lesj0610@gmail.com>
This commit is contained in:
SeongJun Lee
2026-10-06 15:55:27 +00:00
committed by GitHub
parent aad4579bbe
commit 4ea0c28bc4
+1 -1
View File
@@ -725,7 +725,7 @@ class MultiModalConfig:
# The model expects raw pixels and normalises on device;
# overriding these per request would silently double-normalise.
for key in ("do_normalize", "do_rescale"):
if key in inference_kwargs:
if inference_kwargs.get(key):
logger.warning_once(
"mm_device_do_normalize is enabled; ignoring "
"per-request mm_processor_kwargs[%r].",