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.71k stars 891 forks source link

[BUG] 视频微调lora出现警告:Token indices sequence length is longer than the specified maximum sequence length for this model (7902 > 2048). Running this sequence through the model will result in indexing errors #664

Closed hshc123 closed 2 weeks ago

hshc123 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

您好,当我使用lora做视频对话微调的时候,出现如下警告,训练能正常运行,我已经在sh里面将MODEL_MAX_Length设置为了更大的值还是出现如下警告:Token indices sequence length is longer than the specified maximum sequence length for this model (7902 > 2048). Running this sequence through the model will result in indexing errors。

期望行为 | Expected Behavior

No response

复现方法 | Steps To Reproduce

No response

运行环境 | Environment

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

备注 | Anything else?

No response