This error occurs after adding the dataclass decorator to ED_LMOutput. I suspect that 'loss' should be 'clf_loss' but I'm not sure since I'm unfamiliar with the repo.
I added in the dataclass decorator since without it you get the error:
"TypeError: src.multiTrans.ED_LMOutput is not a dataclasss. This is a subclass of ModelOutput and so must use the @dataclass decorator."
I suspect that there have been changes made to Huggingface's transformers that break this repo.
This error occurs after adding the dataclass decorator to ED_LMOutput. I suspect that 'loss' should be 'clf_loss' but I'm not sure since I'm unfamiliar with the repo.
I added in the dataclass decorator since without it you get the error: "TypeError: src.multiTrans.ED_LMOutput is not a dataclasss. This is a subclass of ModelOutput and so must use the @dataclass decorator."
I suspect that there have been changes made to Huggingface's transformers that break this repo.