Hugging Face Forums
How to modify loss function in a seq2seq trainer?
🤗Transformers
nielsr
August 31, 2024, 8:36am
2
Hi,
You can overwrite the Seq2SeqTrainer’s compute_loss method as shown
here
.
show post in topic
Related topics
Topic
Replies
Views
Activity
Having troubel in understanding what loss is currently in use
Beginners
1
764
November 24, 2023
Custom trainer does not work on multiple GPUs
🤗Transformers
1
1426
December 21, 2021
Custom Training Loss Function for Seq2Seq BART
Beginners
1
1739
July 21, 2023
How to pass multiple datasets into Trainer for Knowledge distillation in NMT
🤗Transformers
3
335
May 9, 2024
Knowledge distillation for NER task
🤗Transformers
0
291
August 23, 2023