-
Notifications
You must be signed in to change notification settings - Fork 13
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
Allow pytorch 2.0 & pytorch-lightning 2.0 #54
Comments
Would also like to inquire if there are any plans to bump to pytorch-2.0 :) I'm planning to publish code for a recently submitted paper where we used PyCave (and cited it!). It would make our lives much easier if we could use torch 2.0 instead of fixing to |
Would love to do that. Unfortunately, I haven't used the latest versions of PyTorch (Lightning) and torchmetrics so I will need some time to figure out relevant changes. If you want to provide some support fixing the CI for the latest versions, please go ahead 😅 |
Would love to use a higher version aswell. |
Fixes borchero#54 Update the package to support PyTorch 2.0 and PyTorch-Lightning 2.0. * **pyproject.toml** - Update `torch` version to "^2.0.0". - Update `pytorch-lightning` version to "^2.0.0". * **.github/workflows/ci.yml** - Add Python 3.11 to the matrix of Python versions for unit tests. * **pycave/bayes/gmm/lightning_module.py** - Update import for `EarlyStopping` to ensure compatibility with PyTorch-Lightning 2.0. * **pycave/bayes/markov_chain/estimator.py** - Add import for `Trainer` from `pytorch_lightning`. * **pycave/utils/lightning_module.py** - Update import for `pytorch_lightning` to `lightning.pytorch` to ensure compatibility with PyTorch-Lightning 2.0. --- For more details, open the [Copilot Workspace session](https://copilot-workspace.githubnext.com/borchero/pycave/issues/54?shareId=XXXX-XXXX-XXXX-XXXX).
Hi, I'm just getting started with pycave and would like to use pytorch 2.0. It's torch.compile mechanism could be really powerful.
Would you please allow your package to also allow 2.0 for both pytorch and pytorch-lightning?
Also, would you expected any speedups from using torch.compile?
Thank you! 🙇
The text was updated successfully, but these errors were encountered: