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

ImportError: cannot import name '_expand_mask' from 'transformers.models.bloom.modeling_bloom #16

Open
gameveloster opened this issue Jan 29, 2024 · 1 comment

Comments

@gameveloster
Copy link

gameveloster commented Jan 29, 2024

When starting finetune_qlora.sh and using transformers==4.34.0, it crashes with the error

TypeError: forward() got an unexpected keyword argument 'padding_mask'

bitsandbytes              0.41.0
peft                      0.4.0
torch                     2.0.1
torchvision               0.15.2
transformers              4.34.0

Updated to transformers==4.35.0 and a new error occurs

ImportError: cannot import name '_expand_mask' from 'transformers.models.bloom.modeling_bloom'


Updated to transformers==4.36.0 and 4.37.0 and another error occurs

ValueError: 'llava' is already used by a Transformers config, pick another name.

Changed the named used in the AutoConfig and we are back to the same error as before:

ImportError: cannot import name '_expand_mask' from 'transformers.models.bloom.modeling_bloom'

Anyone knows how to fix this problem?

@BinZhu-ece
Copy link

I have the same problem, have you solved it? Thank you!

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