ValueError: Evaluation module cache file doesn't exist

Here the error I get using a Seq2SeqTrainer with a custom Transformer model :

ValueError: Evaluation module cache file doesn’t exist. Please make sure that you call add or add_batch at least once before calling compute.

What are the “add” and “add_batch” functions ? Where can I find documentation about it ? How should I use them ?

Thank you.

1 Like

It’s similar, but… it’s a little different.