Problem with custom metric for custom T5 model

Hi @snork-maiden , were you able to resolve this? I am facing the same challenge.
I referred to Not sure how to compute BLEU through compute_metrics - #5 by xiami using Seq2SeqTrainingArguments and set predict_with_generate=True in Seq2SeqTrainingArguments and got TypeError: argument 'ids': 'list' object cannot be interpreted as an integer

the shape of predictions should be 2, but we got 3 instead … …