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

Nan loss for quantization #18

Open
syorami opened this issue Jul 18, 2019 · 5 comments
Open

Nan loss for quantization #18

syorami opened this issue Jul 18, 2019 · 5 comments

Comments

@syorami
Copy link

syorami commented Jul 18, 2019

I'm running the code for 8-bit quantization but found that the training loss always gets NAN while I didn't make a slight modification to the original code. Wondering why this could happen and hoping for your clarification.

@stgzr
Copy link

stgzr commented Aug 6, 2019

Same issue, using PyTorch 1.1.0

@stgzr
Copy link

stgzr commented Aug 6, 2019

Same issue, using PyTorch 1.1.0

Change PyTorch version to 1.0.1 may solve the NaN loss issue.

@syorami
Copy link
Author

syorami commented Aug 6, 2019

@stgzr Thanks! I would have a try. And this seems strange to me. What's the difference between Pytorch 1.1.0 and 1.0.1 that could lead to this Nan loss?

@chenhongluo
Copy link

The same problem, have you solved it? Finding help.

@TonojiKiobya
Copy link

Try changing the learning rate, decrease it or increase it by factor of 10 and see

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

No branches or pull requests

4 participants