Closed BramVanroy closed 9 months ago
Hey @BramVanroy But i am not sure if I understand the error because the last version adds the @dataclass decorator to the Prediction class
you sure you are using 2.1.0?
Ah, that change is part of the 2.1.1 release, I was still on 2.1.0. Works on 2.1.1!
🐛 Bug
The following code does not work
Error trace:
Seems that you subclass ModelOutput but
transformers
expects something different. I tried adding @dataclass decorator but that did not completely solve the issue either.Environment
Using comet 2.1.0 and transformers 4.34.0
Seems that this is the commit that broke it: https://github.com/huggingface/transformers/pull/25638. Downgrading to transformers 4.33.3 works.