OpenBMB / MiniCPM-V

MiniCPM-Llama3-V 2.5: A GPT-4V Level Multimodal LLM on Your Phone
Apache License 2.0
7.86k stars 547 forks source link

[BUG] 4bit模型的结果混乱 #241

Closed HaoLiuHust closed 2 weeks ago

HaoLiuHust commented 1 month ago

是否已有关于该错误的issue或讨论? | Is there an existing issue / discussion for this?

该问题是否在FAQ中有解答? | Is there an existing answer for this in FAQ?

当前行为 | Current Behavior

在T4显卡上,使用web_demo_2.5.py载入4bit模型,输入图片问问题,基本上都是乱答。然后又使用huggingface上的代码启动,也乱答。

2cd86b2f5372d79338e825f9821f35b 251a7dc83fcb4a015eb9cda5d181a59

期望行为 | Expected Behavior

No response

复现方法 | Steps To Reproduce

No response

运行环境 | Environment

- OS:ubuntu 18.04
- Python:3.9
- Transformers:
- PyTorch:
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):12

备注 | Anything else?

No response

iceflame89 commented 2 weeks ago

请提供原图以便我们复现问题

HaoLiuHust commented 2 weeks ago

使用lmdeloy量化和部署正常