Hugging Face Forums
How to output loss from model.generate()?
š¤Transformers
mittu
April 22, 2022, 5:37am
3
Thanks for sharing your simple solution!
Iāll give this method a try!
show post in topic
Related topics
Topic
Replies
Views
Activity
Difference between model.generate() and model() outputs
Intermediate
2
3007
March 3, 2024
Generation Probabilities: How to compute probabilities of output scores for GPT2
š¤Transformers
24
28880
April 5, 2023
A potential in-place operation that caused an RuntimeError
š¤Transformers
1
2316
January 19, 2021
[Announcement] Generation: Get probabilities for generated output
š¤Transformers
63
41024
January 20, 2025
Carrying Gradients Through Generate
Research
5
2736
January 29, 2023