-
Notifications
You must be signed in to change notification settings - Fork 2k
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
[Usage] None of the inputs have requires_grad=True. Gradients will be None #1475
Comments
/data22/llava/lib/python3.10/site-packages/torch/utils/checkpoint.py:429: UserWarning: torch.utils.checkpoint: please pass in use_reentrant=True or use_reentrant=False explicitly. The default value of use_reentrant will be updated to be False in the future. To maintain current behavior, pass use_reentrant=True. It is recommended that you use use_reentrant=False. Refer to docs for more details on the differences between the two variants. Will anyone could Help to see that? Thanks |
Have you solved it? I encountered the same problem, |
我也是这个问题,请问有解决吗 |
I have the same problem |
1 similar comment
I have the same problem |
有解决吗? |
@PangziZhang523 hello,你解决了吗?我也是,但我看 loss 还是正常在下降 |
+1 |
Any solutions? |
@SuperBruceJia It is not a problem. Just ignore it. Everything is fine. I completed the training and the model is fine |
@dacian7 Thank you very much for your quick reply! However, I have encountered further issues after this problem. ![]() |
Describe the issue
Issue:
Log said gradient will be none
Command:
just using pretran
Log:
Screenshots:
![image](https://private-user-images.githubusercontent.com/15274284/326742469-b0cee717-4bd7-43dc-8ae1-188a4368d1ad.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjA1MjcyNjcsIm5iZiI6MTcyMDUyNjk2NywicGF0aCI6Ii8xNTI3NDI4NC8zMjY3NDI0NjktYjBjZWU3MTctNGJkNy00M2RjLThhZTEtMTg4YTQzNjhkMWFkLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MDklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzA5VDEyMDkyN1omWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWMyNGY1OWMzYWFmMjVkYWZhOGFkMTlkYmFkYjZlN2M4NjA1NmJjODA4ZDk5MGE4ZGM0YjAxMTI5MGNiN2QwYTMmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.1nFLQ2jrh6uAL3m7nxqFwO1DH4N0u5VtUVJvVPpIK0k)
You may attach screenshots if it better explains the issue.
The text was updated successfully, but these errors were encountered: