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

Torch check compatibility fails at torch #108

Open
d3sm0 opened this issue Jan 9, 2022 · 4 comments
Open

Torch check compatibility fails at torch #108

d3sm0 opened this issue Jan 9, 2022 · 4 comments
Assignees

Comments

@d3sm0
Copy link

d3sm0 commented Jan 9, 2022

This compatibility check pass if torch in requirements.txt but it installs rocm version. I think it should be strict on the version torch1.10.1+cu110.

if "torch" not in reqs and "torch==1.7.1+cu110" not in reqs:

@manuel-delverme
Copy link
Member

manuel-delverme commented Jan 9, 2022 via email

@d3sm0
Copy link
Author

d3sm0 commented Jan 10, 2022

because on mila cluster is the latest pytorch version that has the cuda version that we have access to. It doesn't really matter which version we specify, as long as there is a version with explicit cuda request.
The bit that fails is to specify torch only nor the version itself.

@manuel-delverme
Copy link
Member

import re

matches = re.search(r"torch==.*cu.*", reqs)

if "torch" in reqs and not matches:

would be ok?

I want to let people use any cuda version.

also, extra_modules should be checked i guess.

@d3sm0
Copy link
Author

d3sm0 commented Jan 10, 2022

this would work. Thank you!

No need to check for modules if module version is the same as the one specified in reqs then nothing should happen (my guess) otherwise pip version wins.

d3sm0 added a commit to d3sm0/experiment_buddy that referenced this issue Jan 17, 2022
manuel-delverme added a commit that referenced this issue Jan 23, 2022
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