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

name 'position_ids' is not defined #16

Open
LMX-xin opened this issue Mar 13, 2024 · 1 comment
Open

name 'position_ids' is not defined #16

LMX-xin opened this issue Mar 13, 2024 · 1 comment

Comments

@LMX-xin
Copy link

LMX-xin commented Mar 13, 2024

when I run Baichuan2-7B-base model ,meet the issue that "position_ids" is not defined. And I checked the code and did not find the declaration of position_ids in the code

pt-p26l37d2-worker-0 logs:    File ''/root/home/AutoSmoothQuant/autosmoothquant/models/baichuan.py", line 146, in forward
pt-p26l37d2-worker-0 logs:     query_states, key_states = apply_rotary_pos_emb(query_states, key_states, cos, sin, position_ids)
pt-p26l37d2-worker-0 logs: NameError: name 'position_ids' is not defined
@AniZpZ
Copy link
Owner

AniZpZ commented Mar 15, 2024

Sorry that the Baichuan model with RoPE might occurs to the issuse. I plan to fix this problem later next week. If you have figure out the problem, We would appreciate that you could contribute by making a PR.

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