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

显存小的GPU跑起来很容易梯度爆炸 #16

Open
mafamily2496 opened this issue May 26, 2019 · 4 comments
Open

显存小的GPU跑起来很容易梯度爆炸 #16

mafamily2496 opened this issue May 26, 2019 · 4 comments

Comments

@mafamily2496
Copy link

救救只有4G显存的用户吧。。。batch_size只能设成2,跑起来动不动就梯度爆炸。。。该怎么办

@mafamily2496
Copy link
Author

把batchnorm改成groupnorm有用么

@121649982
Copy link

我也是

@njustymk
Copy link

不是显存的问题,我昨天刚跑的,24G显存,batch是16,loss依然会inf

@njustymk
Copy link

lr调小一些应该会好点

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

3 participants