'str' object has no attribute 'size' during training
mhoangvslev opened this issue · 4 comments
mhoangvslev commented
It just happened when I run the main.py
macabdul9 commented
Hi @mhoangvslev ,
Have you tried training it on your local machine or kaggle (Notebook). I think if you don't have API key it will log locally also you can comment line 65 and 91 in Trainer.py
and line 20-25 and 42 in main.py
to disable the wandb logger.
Hope this helps.
macabdul9 commented
Can you paste the whole error message here and can tell me where and how are you running this?
mhoangvslev commented
I resolved the issue by downgrading transformers to 3.0.0
pip install transformers=3.0.0
macabdul9 commented
Great, closing it.