OpenBMB / MiniCPM-V

MiniCPM-Llama3-V 2.5: A GPT-4V Level Multimodal LLM on Your Phone

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

nigo81 opened this issue · comments

commented

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

  • 我已经搜索过已有的issues和讨论 | I have searched the existing issues / discussions

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

  • 我已经搜索过FAQ | I have searched 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

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