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

修改完8P后loss不收敛 #317

Open
Silentssss opened this issue Sep 25, 2023 · 0 comments
Open

修改完8P后loss不收敛 #317

Silentssss opened this issue Sep 25, 2023 · 0 comments

Comments

@Silentssss
Copy link

1695629181138
在修改完8P后出现以上报错,于是我在网上寻找解决办法,发现反向传播时没有设置loss.requires_grad_(True),于是在以下地方添加了改代码:
image

修改完后虽然可以跑通,但是loss却一直不收敛,如下图,请问有什么解决办法可以跑8P并使其收敛,不然训练步数太多,单P跑的太久了:
image

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