Open chrischang5 opened 3 years ago
Hi @chrischang5 Even I am facing the same issue. Were you able to fix it?
Hi @swarupe, unfortunately, I was not able to fix it. I've seen talks on using older versions of Huggingface transformers but I haven't been able to test them fully.
getting exact error output Any Solution
Same error. I was able to get it resolved to downgrade Transformers: pip install transformers==3
In the BERT_Arch(nn.Module): class change the line
from: _, cls_hs = self.bert(sent_id, attention_mask=mask)
to this:- _, cls_hs = self.bert(sent_id, attention_mask=mask, return_dict=False)
Thank you so much for this solution. I was really struggling to solve this issue.
Tried running the code but got this error on both my dataset and the example dataset.