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

[Urgent] Unable to reproduce T5FakeNewsDetector: AttributeError - Cannot Set Attribute Error #151

Open
zjc664656505 opened this issue May 15, 2021 · 1 comment

Comments

@zjc664656505
Copy link

Hello,

Could anyone help me with this. I followed the exact same code when I was trying to finetune the T5FakeNewsDetector model, I always got the AttributeError - Cannot Set Attribute, like this:

AttributeError Traceback (most recent call last)
in ()
15 )
16
---> 17 model = T5FakeNewsDetector(args)
18 trainer = pl.Trainer(**train_params)

1 frames
/usr/local/lib/python3.7/dist-packages/torch/nn/modules/module.py in setattr(self, name, value)
993 buffers[name] = value
994 else:
--> 995 object.setattr(self, name, value)
996
997 def delattr(self, name):

AttributeError: can't set attribute,

I don't know where went wrong. Could anyone help me with this?

@priya-dwivedi
Copy link
Owner

I think this error is related to pytorch lightning version. I used pytorch lightning == 1.1.4. Could you try this version?

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