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

RuntimeError: 'AddmmBackward0' Returned NaN Values #2

Open
yxwang8775 opened this issue May 5, 2024 · 1 comment
Open

RuntimeError: 'AddmmBackward0' Returned NaN Values #2

yxwang8775 opened this issue May 5, 2024 · 1 comment

Comments

@yxwang8775
Copy link

Hello,
While running your code, I encountered the following error:
RuntimeError: Function 'AddmmBackward0' returned nan values in its 1th output.
I noticed that in your configuration, you've explicitly set detect_anomaly=True, which is set to False by default. I wonder if you have also encountered this issue during development. And could you please provide guidance on how to resolve it?
Thank you in advance for your help!

Best regards

@yxwang8775
Copy link
Author

The command is
python run.py profile=re_twostage model.model.model_path="cnut1648/biolinkbert-large-mnli-snli"
model.model.margin=0.7 model.model.temperature=0.01
model.save_epoch=1
trainer.detect_anomaly=True
datamodule.batch_size=4 trainer.accumulate_grad_batches=16
datamodule=DDI model.num_negs=4 model.model.hypo_version=v1

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