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

Issue on page /internvl2.5/deployment.html #863

Open
liulwx opened this issue Jan 16, 2025 · 1 comment
Open

Issue on page /internvl2.5/deployment.html #863

liulwx opened this issue Jan 16, 2025 · 1 comment

Comments

@liulwx
Copy link

liulwx commented Jan 16, 2025

怎么使用量化后的模型? 以及我写了一个for 循环
from lmdeploy import pipeline, TurbomindEngineConfig
from lmdeploy.vl import load_image

model = 'OpenGVLab/InternVL2_5-8B-MPO'
image = load_image('https://raw.githubusercontent.com/open-mmlab/mmdeploy/main/tests/data/tiger.jpeg')
pipe = pipeline(model, backend_config=TurbomindEngineConfig(session_len=8192, load_in_8bit=True))
for i in range(0,100):
response = pipe(('describe this image', image))
print(response.text)
print("XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX")

但是GPU的利用率是在瞬间能到100%,其余时间都是0%(大概持续6~7s)。卡是4090

@yuecao0119
Copy link
Collaborator

你好,

我们提供了AWQ的量化模型,可以参考 https://huggingface.co/OpenGVLab/InternVL2_5-8B-MPO-AWQ
其中README也提供了部署方式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants