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

make mask value smaller by factor of 2 #25

Merged
merged 1 commit into from
Jan 4, 2021

Conversation

lucidrains
Copy link
Contributor

because the mask is now added rather than used as a boolean fill, a max negative value for the mask may lead to overflow. decrease by factor of 2

@lucidrains lucidrains requested a review from a team as a code owner January 4, 2021 03:14
@StellaAthena
Copy link
Member

Discussion in #gpt-neo indicates that it’s ambiguous if this helps with the problem people were having. Waiting to approve until it’s clearer why some people’s code isn’t working.

Copy link
Member

@StellaAthena StellaAthena left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a useful change but does not fix the NaN issue.

@StellaAthena StellaAthena merged commit 922450f into main Jan 4, 2021
@StellaAthena StellaAthena deleted the pw/prevent-mask-overflow branch January 4, 2021 16:59
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