0

I am using Huggginface's Seq2SeqTrainer module and Generator modules for my encoder-decoder models. I have to use weighted sample loss calculation in each mini-batches. Does anyone know how to achieve this ? Is there a way to do weighted loss in each example for each token losses as well ?

0 Answers0