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

'grad_norm' is NaN #82

Open
LikeStarting opened this issue May 10, 2024 · 3 comments
Open

'grad_norm' is NaN #82

LikeStarting opened this issue May 10, 2024 · 3 comments

Comments

@LikeStarting
Copy link

Hi,
When it comes to training step, the problem arises with 'grad_norm' of NaN. I used diffuSeq-v2 and used FP16 for GPU acceleration. Where is the problem and how can it be fixed.Thank you!
1715308130240
image

@summmeer
Copy link
Collaborator

It is suggested to use gradient monitoring and logging during training to identify the layer(s) or operation(s) causing the problem.

@LikeStarting
Copy link
Author

Thank you a lot. I will try~

@X-fxx
Copy link

X-fxx commented Jul 19, 2024

I'm having the same problem, have you solved it?

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