Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@[hiyouga](https://github.com/hiyouga)vllm 0.6.3cannot import name 'ImagePixelData' from 'vllm.multimodal.image' #5818

Closed
xiezhipeng-git opened this issue Oct 24, 2024 · 1 comment
Labels
solved This problem has been already solved

Comments

@xiezhipeng-git
Copy link

xiezhipeng-git commented Oct 24, 2024

@hiyougavllm 0.6.3
Traceback (most recent call last):
File "D:\my\env\python3.10.10\lib\runpy.py", line 187, in run_module_as_main
mod_name, mod_spec, code = get_module_details(mod_name, Error)
File "D:\my\env\python3.10.10\lib\runpy.py", line 110, in get_module_details
import(pkg_name)
File "D:\my\env\python3.10.10\lib\site-packages\llmtuner_init
.py", line 3, in
from .cli import VERSION
File "D:\my\env\python3.10.10\lib\site-packages\llmtuner\cli.py", line 4, in
from .api.app import run_api
File "D:\my\env\python3.10.10\lib\site-packages\llmtuner\api\app.py", line 7, in
from ..chat import ChatModel
File "D:\my\env\python3.10.10\lib\site-packages\llmtuner\chat_init
.py", line 2, in
from .chat_model import ChatModel
File "D:\my\env\python3.10.10\lib\site-packages\llmtuner\chat\chat_model.py", line 8, in
from .vllm_engine import VllmEngine
File "D:\my\env\python3.10.10\lib\site-packages\llmtuner\chat\vllm_engine.py", line 16, in
from vllm.sequence import MultiModalData
ImportError: cannot import name 'MultiModalData' from 'vllm.sequence' (D:\my\env\python3.10.10\lib\site-packages\vllm\sequence.py)
是llmtuner的问题导致无法打开webui
llmtuner = 0.7.1
并且,如果直接使用源代码的方式打开。不报这个错误了。变成了
cannot import name 'ImagePixelData' from 'vllm.multimodal.image' (d:\my\env\python3.10.10\lib\site-packages\vllm\multimodal\image.py)
File "D:\my\work\LLM\LLaMA-Factory\LLaMA-Factory\src\llamafactory\chat\vllm_engine.py", line 33, in
from vllm.multimodal.image import ImagePixelData
File "D:\my\work\LLM\LLaMA-Factory\LLaMA-Factory\src\llamafactory\chat\chat_model.py", line 25, in
from .vllm_engine import VllmEngine
File "D:\my\work\LLM\LLaMA-Factory\LLaMA-Factory\src\llamafactory\chat_init.py", line 16, in
from .chat_model import ChatModel
File "D:\my\work\LLM\LLaMA-Factory\LLaMA-Factory\src\llamafactory\api\app.py", line 21, in
from ..chat import ChatModel
File "D:\my\work\LLM\LLaMA-Factory\LLaMA-Factory\src\llamafactory\cli.py", line 22, in
from .api.app import run_api
File "D:\my\work\LLM\LLaMA-Factory\LLaMA-Factory\src\llamafactory_init.py", line 17, in
from .cli import VERSION
File "D:\my\work\LLM\LLaMA-Factory\LLaMA-Factory\src\train.py", line 15, in
from llamafactory.train.tuner import run_exp
File "D:\my\env\python3.10.10\Lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
File "D:\my\env\python3.10.10\Lib\runpy.py", line 196, in _run_module_as_main (Current frame)
return _run_code(code, main_globals, None,
ImportError: cannot import name 'ImagePixelData' from 'vllm.multimodal.image' (d:\my\env\python3.10.10\lib\site-packages\vllm\multimodal\image.py)
每条路都走不通
vllm 0.6.3 not has ImagePixelData class and llmtuner need update

@github-actions github-actions bot added the pending This problem is yet to be addressed label Oct 24, 2024
@hiyouga hiyouga added solved This problem has been already solved and removed pending This problem is yet to be addressed labels Oct 25, 2024
@hiyouga
Copy link
Owner

hiyouga commented Oct 25, 2024

update llamafactory

@hiyouga hiyouga closed this as completed Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
solved This problem has been already solved
Projects
None yet
Development

No branches or pull requests

2 participants