We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If you set the pytorch default device to 'mps' on MacOS, pytorch lightning throws an exception on import.
The expected result is to not throw an exception and also to use the pytorch default device when doing computation.
v2.5.1
import torch torch.set_default_device('mps') import pytorch_lightning as pl
RuntimeError: Placeholder storage has not been allocated on MPS device!
#- PyTorch Lightning Version (e.g., 2.5.0): 2.5.1 #- PyTorch Version (e.g., 2.5): 2.6.0 #- Python version (e.g., 3.12): 3.12.9 #- OS (e.g., Linux): MacOS 15.3.2 #- CUDA/cuDNN version: #- GPU models and configuration: M1 Max #- How you installed Lightning(`conda`, `pip`, source): uv
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Bug description
If you set the pytorch default device to 'mps' on MacOS, pytorch lightning throws an exception on import.
The expected result is to not throw an exception and also to use the pytorch default device when doing computation.
What version are you seeing the problem on?
v2.5.1
How to reproduce the bug
Error messages and logs
Environment
Current environment
More info
No response
The text was updated successfully, but these errors were encountered: