OpenBMB / MiniCPM-V

MiniCPM-V 2.6: A GPT-4V Level MLLM for Single Image, Multi Image and Video on Your Phone
Apache License 2.0
12.14k stars 850 forks source link

macbook m3 运行web_demo_2.5.py,不能返回正常中文信息[BUG] <title> #258

Closed nigo81 closed 2 months ago

nigo81 commented 3 months ago

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

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

当前行为 | Current Behavior

我按Readme文档安装后,执行PYTORCH_ENABLE_MPS_FALLBACK=1 python3 web_demo_2.5.py --device mps,在网页上传图片并提问,返回的都是无意义的非中文文字。

image image

期望行为 | Expected Behavior

希望能和示例demo效果一样,能使用模型返回正确中文信息。

复现方法 | Steps To Reproduce

No response

运行环境 | Environment

- OS:macOS 14.4.1 23E224 arm64
- Python:Python 3.10.14
- Transformers:transformers==4.40.0
- PyTorch:torch==2.1.2,torchvision==0.16.2
- CUDA (`python -c 'import torch; print(torch.version.cuda)'`):None

备注 | Anything else?

No response

iceflame89 commented 3 months ago

你好,为方便调试,麻烦提供可复现的图像和prompt~