Checklist
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
Checklist
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
Error traceback