OpenBMB / MiniCPM-V

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

[BUG] --max_slice_nums > than 9 will not work #277

Open joaomsimoes opened 2 weeks ago

joaomsimoes commented 2 weeks ago

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

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

当前行为 | Current Behavior

When setting max_slice_nums > 9 for lora fine tune it gives the following error idx_dim >= 0 && idx_dim < index_size && "index out of bounds". There is any way to increase this number?

期望行为 | Expected Behavior

Fine tune the model

复现方法 | Steps To Reproduce

Follow the lora finetune instructions

运行环境 | Environment

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

备注 | Anything else?

No response

qyc-98 commented 2 weeks ago

hi this is a bug, please fix the value to 9

joaomsimoes commented 2 weeks ago

There will be any future update? I would like to increase this value so I can improve for OCR tasks