Unverified Commit 09dc7c69 authored by Cyrus Leung's avatar Cyrus Leung Committed by GitHub
Browse files

[Chore][1/2] Drop `v0.14` deprecations (#31285)


Signed-off-by: default avatarDarkLight1337 <tlleungac@connect.ust.hk>
parent 506eb0f4
# SPDX-License-Identifier: Apache-2.0
# SPDX-FileCopyrightText: Copyright contributors to the vLLM project
import warnings
def __getattr__(name: str):
if name == "Processor":
from .input_processor import InputProcessor
warnings.warn(
"`vllm.v1.engine.processor.Processor` has been moved to "
"`vllm.v1.engine.input_processor.InputProcessor`. "
"The old name will be removed in v0.14.",
DeprecationWarning,
stacklevel=2,
)
return InputProcessor
raise AttributeError(f"module {__name__!r} has no attribute {name!r}")
...@@ -1090,13 +1090,11 @@ class GPUModelRunner( ...@@ -1090,13 +1090,11 @@ class GPUModelRunner(
mm_kwargs.append(feature.data) mm_kwargs.append(feature.data)
# Input all modalities at once # Input all modalities at once
model = cast(SupportsMultiModal, self.model)
mm_kwargs_combined: BatchedTensorInputs = {} mm_kwargs_combined: BatchedTensorInputs = {}
for _, _, mm_kwargs_group in group_mm_kwargs_by_modality( for _, _, mm_kwargs_group in group_mm_kwargs_by_modality(
mm_kwargs, mm_kwargs,
device=self.device, device=self.device,
pin_memory=self.pin_memory, pin_memory=self.pin_memory,
merge_by_field_config=model.merge_by_field_config,
): ):
mm_kwargs_combined.update(mm_kwargs_group) mm_kwargs_combined.update(mm_kwargs_group)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment