You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
1. I have searched related issues but cannot get the expected help.
2. The bug has not been fixed in the latest version.
Describe the bug
报错信息:
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/vl_async_engine.py", line 118, in call
return super().call(prompts, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 304, in call
return self.batch_infer(prompts,
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/vl_async_engine.py", line 104, in batch_infer
return super().batch_infer(prompts, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 428, in batch_infer
_get_event_loop().run_until_complete(gather())
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 425, in gather
await asyncio.gather(
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 410, in _inner_call
async for out in generator:
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 563, in generate
prompt_input = await self._get_prompt_input(prompt, do_preprocess,
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/vl_async_engine.py", line 54, in _get_prompt_input
segs = decorated.split(IMAGE_TOKEN)
AttributeError: 'NoneType' object has no attribute 'split'
报错是prompt出来是个None,但实际pipline都给定了prompt的
Reproduction
用法:
from lmdeploy import pipeline, TurbomindEngineConfig
from lmdeploy.vl import load_image
Checklist
Describe the bug
报错信息:
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/vl_async_engine.py", line 118, in call
return super().call(prompts, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 304, in call
return self.batch_infer(prompts,
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/vl_async_engine.py", line 104, in batch_infer
return super().batch_infer(prompts, **kwargs)
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 428, in batch_infer
_get_event_loop().run_until_complete(gather())
File "/usr/lib/python3.10/asyncio/base_events.py", line 649, in run_until_complete
return future.result()
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 425, in gather
await asyncio.gather(
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 410, in _inner_call
async for out in generator:
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/async_engine.py", line 563, in generate
prompt_input = await self._get_prompt_input(prompt, do_preprocess,
File "/usr/local/lib/python3.10/dist-packages/lmdeploy/serve/vl_async_engine.py", line 54, in _get_prompt_input
segs = decorated.split(IMAGE_TOKEN)
AttributeError: 'NoneType' object has no attribute 'split'
报错是prompt出来是个None,但实际pipline都给定了prompt的
Reproduction
用法:
from lmdeploy import pipeline, TurbomindEngineConfig
from lmdeploy.vl import load_image
pipe = pipeline('./internvl')
prompts = [
{
'role': 'user',
'content': [
{'type': 'text', 'text': '你好'},
# {'type': 'image_url', 'image_url': {'url': 'https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/tests/data/tiger.jpeg'}}
]
}
]
response = pipe(prompts)
Environment
Error traceback
No response
The text was updated successfully, but these errors were encountered: