Closed mikix closed 8 months ago
I think this will fix the exception (and produce reasonable behavior) but something else weird is going on -- we're probably doubly saving the model because it's happening inside the trainer api and in our code. we'll dig in to this a little bit.
I'm checking in on old PRs. I wonder if this is still an issue in v0.7.0? @mikix do you still remember the setup that caused this error? I'm wondering if I can try to replicate with a public dataset to try to track it down.
I'm sorry I don't remember what I was working on when I hit this :frowning_face:
transformers.Trainer
was erroring out because it was looking for theeval_one_score
metric, which we never saved for it.This sets it in the generated metrics for
Trainer
to find.Traceback I was seeing
At the end of training:
Is this the correct fix?
I'm not super familiar with this code path, but this seemed to be appropriate.