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

support version of torch(<2.5.1) #155

Open
wuchiz opened this issue Dec 13, 2024 · 1 comment
Open

support version of torch(<2.5.1) #155

wuchiz opened this issue Dec 13, 2024 · 1 comment

Comments

@wuchiz
Copy link

wuchiz commented Dec 13, 2024

when I install lib using pip install sphericart[torch], the torch-2.5.1 will be installed automatically even though older version of torch like (2.4.1) has already been installed. So now only torch-2.5.1 are supported?

@Luthaf
Copy link
Contributor

Luthaf commented Dec 13, 2024

Hello,

The code supports all recent versions of PyTorch, what you are seeing is a consequence of pip behavior.

So when you run pip install sphericart[torch], pip creates a separate virtual environment to compile the code, and installs the latest version of torch (2.5.1) there, and then builds sphericart against this version. It then takes the result of this build, and install it in your environment, which might have a different version of torch.

To solve the issue, you can either upgrade the version of torch in your environment, or tell pip to build the code using the version already in your environment, with pip install sphericart[torch] --no-build-isolation --check-build-dependencies.

We are working to provide a pre-compiled version of sphericart-torch that will not require you to compile the code and will work with all versions of torch simultaneously in #106, so hopefully we will no longer need such workarounds.

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

No branches or pull requests

2 participants