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

No inf checks were recorded for this optimizer #85

Open
permanent-art opened this issue Sep 20, 2023 · 2 comments
Open

No inf checks were recorded for this optimizer #85

permanent-art opened this issue Sep 20, 2023 · 2 comments

Comments

@permanent-art
Copy link

Hi
I have encountered such a problem:assert len(optimizer_state["found_inf_per_device"]) > 0, "No inf checks were recorded for this optimizer."
AssertionError: No inf checks were recorded for this optimizer.
I checked my losses and it is a normal value.When I delete self. optimizer. zero_ grad(), it can run, but losses will not converge. May I ask what's going on here?

@permanent-art
Copy link
Author

Firstly, non convergence due to delete zero_grad().
I would like to know the reason for No inf checks were recorded for this optimizer

@luke110
Copy link

luke110 commented Feb 27, 2024

Hello, I also encountered this 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

2 participants