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

Allow pytorch 2.0 & pytorch-lightning 2.0 (changes via Copilot Workspace) #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

EvenStrangest
Copy link

@EvenStrangest EvenStrangest commented Sep 28, 2024

Fixes #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.

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).
@EvenStrangest
Copy link
Author

I have little idea if this is sufficient. Please excuse the noise.

@EvenStrangest EvenStrangest changed the title Allow pytorch 2.0 & pytorch-lightning 2.0 via Copilot Workspace Allow pytorch 2.0 & pytorch-lightning 2.0, via Copilot Workspace Sep 28, 2024
@EvenStrangest EvenStrangest changed the title Allow pytorch 2.0 & pytorch-lightning 2.0, via Copilot Workspace Allow pytorch 2.0 & pytorch-lightning 2.0 (changes via Copilot Workspace) Sep 28, 2024
@EvenStrangest
Copy link
Author

Obviously, lightkit also needs refactoring for compatibility.

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

Successfully merging this pull request may close these issues.

Allow pytorch 2.0 & pytorch-lightning 2.0
1 participant