transformers
Only cast logits to float when computing loss
#34147
Merged
Go
Login via GitHub
Home
Pricing
FAQ
Install
Login
via GitHub
Overview
Commits
2
Changes
View On
GitHub
Only cast logits to float when computing loss
#34147
ArthurZucker
merged 2 commits into
huggingface:main
from
ringohoffman:only-cast-logits-float-compute-loss
Only cast logits to float when computing loss
2eaa05e3
gante
approved these changes on 2024-10-17
gante
requested a review
from
ArthurZucker
2 years ago
Move logits.float() into existing if labels is not None branch
b9209618
ArthurZucker
approved these changes on 2024-10-18
ArthurZucker
merged
816f4424
into main
2 years ago
ringohoffman
deleted the only-cast-logits-float-compute-loss branch
1 year ago
Login to write a write a comment.
Login via GitHub
Reviewers
ArthurZucker
gante
Assignees
No one assigned
Labels
None yet
Milestone
No milestone
Login to write a write a comment.
Login via GitHub