-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Change auto-device selection for Jupyter notebook environments #18291
Conversation
for more information, see https://pre-commit.ci
for more information, see https://pre-commit.ci
…nto feature/auto-device-notebooks
for more information, see https://pre-commit.ci
…nto feature/auto-device-notebooks
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I must say that I would prefer the alternative of keeping the current behavior - which is consistent with all other environments - and suggesting the possibility of running with devices=1
if things go wrong.
It would also avoid having to revert this breaking change again (meaning another breaking change) if support for multi-GPU environments with notebooks improves in the future.
However, I don't have a strong enough opinion to block this, so here's my stamp to proceed if you feel comfortable making this change
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## master #18291 +/- ##
=========================================
- Coverage 85% 62% -23%
=========================================
Files 427 422 -5
Lines 33138 33054 -84
=========================================
- Hits 28188 20406 -7782
- Misses 4950 12648 +7698 |
What does this PR do?
Fixes #18281
This PR changes the
devices="auto"
behavior when running inside a Jupyter notebook.Before:
Now:
We've seen multiple reports similar to #18281 with users reporting segmentation faults and CUDA issues. These are at the moment too hard to address. For a better user experience, we propose to switch the default back and add an info message that multiple devices may be used, but the feature is currently considered "unstable".
cc @Borda @justusschock @carmocca @awaelchli