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

Layoutlmv3 LayoutLMv3ForSequenceClassification NaN loss #1489

Open
Rithsek99 opened this issue Mar 27, 2024 · 0 comments
Open

Layoutlmv3 LayoutLMv3ForSequenceClassification NaN loss #1489

Rithsek99 opened this issue Mar 27, 2024 · 0 comments

Comments

@Rithsek99
Copy link

Hello,

I'm trainining Layoutlmv3 LayoutLMv3ForSequenceClassification and facing issue where loss goes to NaN on very first iteration. I've tried to increase batch size and gradient accumulation with lower lrate but it's still goes to NaN. I'm training with pytorch lightning.

My source code is pretty much this https://www.mlexpert.io/machine-learning/tutorials/document-classification-with-layoutlmv3 (layoutlmv3-large) with little tweak.

@HYPJUDY

thanks

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