Skip to content

ImportError: cannot import name 'Qwen2_5OmniModel from 'transformers' #3897

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

Open
KingWangSeet opened this issue Apr 16, 2025 · 3 comments
Open

Comments

@KingWangSeet
Copy link

Describe the bug
What the bug is, and how to reproduce, better with screenshots(描述bug以及复现过程,最好有截图)

swift webui 推理 Qwen2.5-Omni-7B

Your hardware and system info
Write your system info like CUDA version/system/GPU/torch version here(在这里给出硬件信息和系统信息,如CUDA版本,系统,GPU型号和torch版本等)

ms_swift Version: 3.3.0.dev0

transformers Version: 4.51.3
transformers Version: 4.52.0.dev0
这两个transformers 版本都提示同样的错误

Additional context
Add any other context about the problem here(在这里补充其他信息)

@KingWangSeet
Copy link
Author

Image

@Jintao-Huang
Copy link
Collaborator

Please install a specific version of Transformers.

https://github.com/modelscope/ms-swift/blob/main/examples/train/multimodal/omni/sft.sh#L4

@KingWangSeet
Copy link
Author

ok tks

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