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

cannot import AttentionType from gpt2 #20

Closed
ocramz opened this issue Oct 28, 2022 · 0 comments · Fixed by #21 or #22
Closed

cannot import AttentionType from gpt2 #20

ocramz opened this issue Oct 28, 2022 · 0 comments · Fixed by #21 or #22

Comments

@ocramz
Copy link
Contributor

ocramz commented Oct 28, 2022

Loading multi_query_experiments.profile_hf_generate results in

ImportError: cannot import name 'AttentionType' from 'transformers.models.gpt2.modeling_gpt2'

I find this puzzling since this class is not exported by transformers 4.20.0

Are you using a custom fork of transformers by chance?

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