Signed-off-by: Megha Agarwal <agarwalmegha1308@gmail.com> Signed-off-by: meghaagr13 <divyanshsinghvi@gmail.com> Signed-off-by: Taichang Zhou <tzhouam@connect.ust.hk> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Co-authored-by: Hongsheng Liu <liuhongsheng4@huawei.com> Co-authored-by: meghaagr13 <divyanshsinghvi@gmail.com> Co-authored-by: Boao Shi <aoibosh@connect.hku.hk> Co-authored-by: Taichang Zhou <tzhouam@connect.ust.hk> Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
49 files changed
+985
-327
No files matched your search
@@ -2,6 +2,8 @@
|
||||
payloads, most of which are shared by the prefix cache / no prefix cache path.
|
||||
"""
|
||||
|
||||
from collections.abc import Mapping
|
||||
|
||||
import torch
|
||||
from vllm.logger import init_logger
|
||||
|
||||
@@ -23,7 +25,7 @@ def build_mm_cpu(multimodal_outputs: dict) -> dict[str, object]:
|
||||
mm_cpu: dict[str, object] = {}
|
||||
# Currently there are some cases where this is true at the
|
||||
# moment, which should be fixed.
|
||||
if not isinstance(multimodal_outputs, dict):
|
||||
if not isinstance(multimodal_outputs, Mapping):
|
||||
logger.warning("Multimodal outputs are not a dict and will not be passed")
|
||||
|
||||
if multimodal_outputs:
|
||||
|
||||
Reference in new issue
Block a user