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

Setting the argument find_unused_parameters to False #14486

Closed
Felonious-Spellfire opened this issue Sep 1, 2022 · 4 comments · Fixed by #16611
Closed

Setting the argument find_unused_parameters to False #14486

Felonious-Spellfire opened this issue Sep 1, 2022 · 4 comments · Fixed by #16611
Assignees
Labels
docs Documentation related pl Generic label for PyTorch Lightning package

Comments

@Felonious-Spellfire
Copy link
Contributor

Felonious-Spellfire commented Sep 1, 2022

📚 Documentation

Sean Carter

I’m running into a RuntimeError:Expected to mark a variable ready only once.. A quick google search found that setting the argument find_unused_parameters to False might fix this. Where do I put it in pytorch lightning?

Updated 09/03/2022:

Will add the following in a note based on Adrian's comment in the thread:

"To clarify, the concept of "looking for unused parameters" is only relevant for ddp. You wouldn't need this for anything running on a single device"

@Felonious-Spellfire Felonious-Spellfire added docs Documentation related needs triage Waiting to be triaged by maintainers labels Sep 1, 2022
@COYE-Coder
Copy link

I ended up putting a strategy = 'ddp_notebook_find_unused_parameters_false' argument in my pl.trainer.__init__(). However, when this happens, I get a RuntimeError: The server socket has failed to listen on any local network address

@carmocca carmocca added pl Generic label for PyTorch Lightning package and removed needs triage Waiting to be triaged by maintainers labels Sep 1, 2022
@carmocca
Copy link
Contributor

carmocca commented Sep 1, 2022

@Felonious-Spellfire, this issue has been resolved in Slack. Can we close this issue? Or what is its purpose?

@Felonious-Spellfire
Copy link
Contributor Author

@carmocca
I'll be creating tickets for questions, adding the content to the docs, closing the tickets then closing the loop and adding the URL from the docs to the original Slack post.

While the issue was resolved in Slack, the answer to his original question about where they should put the argument find_unused_parameters to False in PL wasn't.

@carmocca
Copy link
Contributor

carmocca commented Sep 1, 2022

Okay! I assume you want to check out if the current docs do answer that question.
And update them if they don't.

Could you assign yourself to such issues in the future? Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation related pl Generic label for PyTorch Lightning package
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants