Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Satisfy fp cross entropy loss arg in pipeline parallel model #140

Merged
merged 2 commits into from
Feb 28, 2021

Conversation

sdtblck
Copy link
Contributor

@sdtblck sdtblck commented Feb 27, 2021

pipeline parallel model was always computing loss as fp32 even if args.fp16_lm_cross_entropy = True
This PR actually calculates the loss in fp16 if that arg is true.

@sdtblck sdtblck requested a review from a team as a code owner February 27, 2021 20:28
@StellaAthena StellaAthena merged commit 36e1c7c into main Feb 28, 2021
@StellaAthena StellaAthena deleted the fp16_loss branch February 28, 2021 19:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants