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

Got NaN eval loss when I set the training batch size to 2. #23

Open
Car-pe opened this issue Oct 8, 2024 · 0 comments
Open

Got NaN eval loss when I set the training batch size to 2. #23

Car-pe opened this issue Oct 8, 2024 · 0 comments

Comments

@Car-pe
Copy link

Car-pe commented Oct 8, 2024

Hello,

I just ran your project through your script, but when I set the batch size to 2, the eval loss is NaN. And when I increase the batch size to 4 or larger, the eval loss is not NaN.
My Transformer version is 4.44.2; Leandojo version is 2.1.2. (Leandojo version 1.1.2 cannot evaluate.)

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

1 participant