MiniCPM-V icon indicating copy to clipboard operation
MiniCPM-V copied to clipboard

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

Open nigo81 opened this issue 1 year ago • 1 comments

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

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

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

  • [X] 我已经搜索过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

nigo81 avatar Jun 12 '24 12:06 nigo81

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

iceflame89 avatar Jun 18 '24 14:06 iceflame89