You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
AttributeError: 'Int8OPTDecoder' object has no attribute '_use_flash_attention_2'
when I run smoothquant_opt_real_int8 and the eval for model_smoothquant = Int8OPTForCausalLM.from_pretrained('mit-han-lab/opt-30b-smoothquant', torch_dtype=torch.float16, device_map='auto')
I first got the error of "AttributeError: type object 'OPTDecoder' has no attribute '_prepare_decoder_attention_mask'" so I commented out "OPTDecoder._prepare_decoder_attention_mask" from opt.py file. Then this error occured.
If I simply add self._use_flash_attention_2 = False to 'Int8OPTDecoder' class, what would happen?
What's the right way of fixing it?
The text was updated successfully, but these errors were encountered:
ghost
changed the title
AttributeError: 'Int8OPTDecoder' object has no attribute '_use_flash_attention_2'
which version of transformer package do we need for this repo?
Mar 28, 2024
ghost
changed the title
which version of transformer package do we need for this repo?
which version of transformer and datasets package do we need for this repo?
Mar 28, 2024
congratulations! I just want to say maybe you can try use transformers==4.33.0,about the error use_flash_attention2 we tried many ways but this make it at last.
I got this error
AttributeError: 'Int8OPTDecoder' object has no attribute '_use_flash_attention_2'
when I run smoothquant_opt_real_int8 and the eval for model_smoothquant = Int8OPTForCausalLM.from_pretrained('mit-han-lab/opt-30b-smoothquant', torch_dtype=torch.float16, device_map='auto')
I first got the error of "AttributeError: type object 'OPTDecoder' has no attribute '_prepare_decoder_attention_mask'" so I commented out "OPTDecoder._prepare_decoder_attention_mask" from opt.py file. Then this error occured.
If I simply add self._use_flash_attention_2 = False to 'Int8OPTDecoder' class, what would happen?
What's the right way of fixing it?
The text was updated successfully, but these errors were encountered: