[MISC] Cleanup deprecated parameters (#53559)
Signed-off-by: Jee Jee Li <jeejeelee@inferact.ai> Signed-off-by: Cyrus Leung <cyrus.tl.leung@gmail.com> Co-authored-by: Cyrus Leung <tlleungac@connect.ust.hk>
This commit is contained in:
co-authored by
Cyrus Leung
parent
6648eb118d
commit
4f686e182a
@@ -12,7 +12,6 @@ from typing import TYPE_CHECKING, Any
|
||||
import numpy as np
|
||||
import numpy.typing as npt
|
||||
from PIL import Image
|
||||
from typing_extensions import deprecated
|
||||
|
||||
from vllm.inputs import MultiModalPlaceholders
|
||||
from vllm.utils.import_utils import LazyLoader
|
||||
@@ -325,19 +324,6 @@ def group_and_batch_mm_kwargs(
|
||||
yield modality, num_items, mm_kwargs_batch
|
||||
|
||||
|
||||
@deprecated(
|
||||
"`group_mm_kwargs_by_modality` has been renamed to `group_and_batch_mm_kwargs`. "
|
||||
"The old name will be removed in v0.19."
|
||||
)
|
||||
def group_mm_kwargs_by_modality(
|
||||
mm_kwargs: list[tuple[str, MultiModalKwargsItem]],
|
||||
*,
|
||||
device: torch.types.Device = None,
|
||||
pin_memory: bool = False,
|
||||
) -> Generator[tuple[str, int, BatchedTensorInputs], None, None]:
|
||||
return group_and_batch_mm_kwargs(mm_kwargs, device=device, pin_memory=pin_memory)
|
||||
|
||||
|
||||
def fetch_audio(
|
||||
audio_url: str,
|
||||
audio_io_kwargs: dict[str, Any] | None = None,
|
||||
|
||||
Reference in New Issue
Block a user