Skip to content

qwn2.5-omni训练报错 #3905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
YuiGao opened this issue Apr 17, 2025 · 3 comments
Closed

qwn2.5-omni训练报错 #3905

YuiGao opened this issue Apr 17, 2025 · 3 comments

Comments

@YuiGao
Copy link

YuiGao commented Apr 17, 2025

报错:
File "/ssd2/gaomin12/project/modelscope/Qwen2.5-Omni-7B/git_transformers/src/transformers/models/qwen2_5_omni/modeling_qwen2_5_omni.py", line 322, in get_rope_index
audio_seqlen = audio_seqlens[audio_idx]
~~~~~~~~~~~~~^^^^^^^^^^^
IndexError: index 8 is out of bounds for dimension 0 with size 8
训练数据格式是{"query": , "response", "audios":[]}格式的jsonl文件

@Jintao-Huang
Copy link
Collaborator

transformers版本是什么

@Jintao-Huang
Copy link
Collaborator

pip uninstall transformers
pip install git+https://github.com/huggingface/transformers@f742a644ca32e65758c3adb36225aef1731bd2a8

@YuiGao
Copy link
Author

YuiGao commented Apr 17, 2025

pip uninstall transformers
pip install git+https://github.com/huggingface/transformers@f742a644ca32e65758c3adb36225aef1731bd2a8

应该是这个问题,感谢

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants