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

Loosening Version Restrictions in environment.yml #492

Open
k9cdt opened this issue Oct 9, 2024 · 2 comments
Open

Loosening Version Restrictions in environment.yml #492

k9cdt opened this issue Oct 9, 2024 · 2 comments

Comments

@k9cdt
Copy link

k9cdt commented Oct 9, 2024

The current dependencies listed in environment.yml for OpenFold use strict version constraints (e.g., package==version). While this approach helps maintain compatibility, it can create challenges, especially for developers looking to integrate OpenFold into their own projects.

The issue is particularly relevant as many dependencies, including Python and key Biopython packages, evolve rapidly. These strict version requirements can make it harder to incorporate OpenFold alongside other tools or within environments that need more flexibility.

Would it be possible to relax some of these version constraints? Perhaps using package > version or package ~= version could strike a better balance between compatibility and flexibility.

@k9cdt
Copy link
Author

k9cdt commented Oct 9, 2024

The most prominent issue is with pytorch::pytorch==1.12.*, which is both strict and outdated. This causes problems because the underlying CUDA version is quite restricted, as PyTorch doesn’t always compile against all CUDA versions. Since the conda-forge channel tends to update cudatoolkit versions quickly, this creates dependency problems.

In terms of a quick fix, I’m thinking of adding the nvidia channel to the environment.yml as a source, which could provide better flexibility for handling newer CUDA versions. Also a cuda-nvcc dependency is needed to build the pip dependencies. Would this be a reasonable solution?

@RJ3
Copy link

RJ3 commented Oct 10, 2024

Have you checked the pl_upgrades branch which is attempting to fix some of these issues? It still has issues with the environment.yml regardless.

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