Skip to content

[Bug] 在使用qwen3.5-122B的时候,模型是多模态模型,但是在使用lmdeploy收到请求的时候,报错了 #4715

Description

@simonjhy

Checklist

  • 1. I have searched related issues but cannot get the expected help.
  • 2. The bug has not been fixed in the latest version.
  • 3. Please note that if the bug-related issue you submitted lacks corresponding environment info and a minimal reproducible demo, it will be challenging for us to reproduce and resolve the issue, reducing the likelihood of receiving feedback.

Describe the bug

INFO: 172.22.0.4:42970 - "POST /v1/chat/completions HTTP/1.1" 200 OK
Exception in callback _raise_exception_on_finish(<Future finis...y image_url')>) at /opt/py3/lib/python3.12/site-packages/lmdeploy/vl/engine.py:63
handle: <Handle _raise_exception_on_finish(<Future finis...y image_url')>) at /opt/py3/lib/python3.12/site-packages/lmdeploy/vl/engine.py:63>
Traceback (most recent call last):
File "/usr/lib/python3.12/asyncio/events.py", line 88, in _run
self._context.run(self._callback, *self._args)
File "/opt/py3/lib/python3.12/site-packages/lmdeploy/vl/engine.py", line 70, in _raise_exception_on_finish
raise e
File "/opt/py3/lib/python3.12/site-packages/lmdeploy/vl/engine.py", line 66, in _raise_exception_on_finish
task.result()
File "/usr/lib/python3.12/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.12/site-packages/lmdeploy/vl/model/base.py", line 150, in preprocess
raise ValueError(f'unsupported modality {modality}')
ValueError: unsupported modality image_url
2026-06-29 04:59:05,479 - lmdeploy - ERROR - async_engine.py:562 - [generate] error in prompt processing
Traceback (most recent call last):
File "/opt/py3/lib/python3.12/site-packages/lmdeploy/serve/core/async_engine.py", line 540, in generate
prompt_input = await self.prompt_processor.get_prompt_input(prompt=prompt,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.12/site-packages/lmdeploy/serve/processors/multimodal.py", line 243, in get_prompt_input
return await self._get_multimodal_prompt_input(messages=prompt,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.12/site-packages/lmdeploy/serve/processors/multimodal.py", line 397, in _get_multimodal_prompt_input
results = await self.vl_encoder.preprocess(messages,
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/py3/lib/python3.12/site-packages/lmdeploy/vl/engine.py", line 121, in preprocess
outputs = await future

Reproduction

我是在codex中让模型读取一个图片然后我就看到lmdeploy中的log出现了错误

Environment

ubuntu2204 
lmdeploy openmmlab/lmdeploy:latest-cu12.8

Error traceback

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions