ML_Decoder icon indicating copy to clipboard operation
ML_Decoder copied to clipboard

AttributeError: 'TransformerDecoderLayerOptimal' object has no attribute 'self_attn'

Open agathebeucher opened this issue 1 year ago • 9 comments

When i try to train the model on MSCOCO2014, i have this error that i can't fix : AttributeError: 'TransformerDecoderLayerOptimal' object has no attribute 'self_attn'... what should i do ?

agathebeucher avatar Jan 15 '24 13:01 agathebeucher

I have meet the same question.

DatesYuen avatar Jan 17 '24 08:01 DatesYuen

It has been resolved when I change Pytorch version from 2.1.1 to 1.13.1.

DatesYuen avatar Jan 17 '24 12:01 DatesYuen

But when i do that i have the error : "ModuleNotFoundError : No module named 'torch._dynamo'...

agathebeucher avatar Jan 17 '24 16:01 agathebeucher

Did you solve that ?

agathebeucher avatar Jan 17 '24 16:01 agathebeucher

But when i do that i have the error : "ModuleNotFoundError : No module named 'torch._dynamo'...

I don't have that problem. I can run this project after change Pytorch version.

DatesYuen avatar Jan 18 '24 02:01 DatesYuen