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

Update installation to python 3.10, torch 2.1 #119

Merged
merged 27 commits into from
Feb 27, 2024
Merged

Conversation

julienroyd
Copy link
Contributor

A few updates regarding the installation setup:

  • Updated torch and python versions to 2.1 and 3.10 respectively. torch-geometric, sparse etc still seem sensitive to specific versions so I kept them lucked but at least now we get the improvements from python 3.10 and torch 2.0.
  • Added requirements/main-3.10.in and requirements/dev-3.10.in to regenerate the requirements/*.txt files used by tox run. The .in files are simply a copy-paste of the dependencies listed in the README. Not ideal since they need to be updated by hand and the .txt files also need to be regenerated by hand everytime we add a new core-dependency in pyproject.toml, but that doesn't happen very often and the user can still install the repo with a single pip install.
  • Added wandb in dependencies (only optional to use -- it is activated outside of the main codebase by the user, but we need the package to wandb.log() the data inside the GFNTrainer() in case the user has activated it)
  • Updated the README

…3.1 was not found in the local cache, Error: Version 3.1 with arch x64 not found
…dows) by using pip-compile-cross-platform. NOTE: I had to remove typeguard from dev-3.10.in (but not from pyproject.toml)
…nually) to allow pip to use --find-links to find the wheels and avoid the torch-cluster installation error where it needs torch to be already be installed to build
@julienroyd
Copy link
Contributor Author

It was a bit of a battle but it is ready to go now.

@julienroyd
Copy link
Contributor Author

Merging

@julienroyd julienroyd merged commit 74d6acc into trunk Feb 27, 2024
4 checks passed
@julienroyd julienroyd deleted the julien-update-install branch February 27, 2024 15:39
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.

2 participants