Skip to content
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

transformers-4.45版本以上Qwen2RotaryEmbedding.forward接口报错 #978

Open
lixiao2010 opened this issue Dec 26, 2024 · 0 comments
Open

Comments

@lixiao2010
Copy link

cos, sin = self.rotary_emb(value_states, seq_len=rotary_seq_len)

xtuner Qwen2的代码里面Qwen2RotaryEmbedding.forward接口接收seq_len参数
image
Qwen2RotaryEmbedding是从transformers里面import的,但是transformers从4.45版本以上该接口不接收seq_len参数
image
换成了position_ids,因此用xtuner训练模型会报错
image

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

1 participant