Closed YerongLi closed 1 year ago
Thanks for instant reply. With your example script for eg dataset: scripts/KGMixtureOfExpertCho.sh,
self.compute_metrics is None all the time right? For instance, in the script you pointed out, I still cannnot figure out how you assign self.compute_metrics. Can you show us how to compute the metric?
I am just wondering on your task for eg, how you compute the scores with 3 reference sentences.
Because preds and label_ids are both of size (B x 60)
Good question!
I did modify a little bit since the self.compute_metric is predefined by Huggingface Seq2Seq models. Since the prediction size is different from the input size, I add the evaluation script in
and did not use the self.compute_metrics
I see, it's in the training loop, not the prediction loop.
Where is the self.compute_metrics in the kmoe_trainer.py?