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 ?
• 如何改变在休克疗法中放置病媒的层面?