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 default channels in environment.yml and refactor Dockerfile #276

Merged
merged 4 commits into from
May 13, 2022

Conversation

mliu49
Copy link
Contributor

@mliu49 mliu49 commented May 3, 2022

Description

This updates default conda channels to prefer the pytorch channel over conda-forge.

The Dockerfile has also been updated to use micromamba. This provides two benefits:

  1. Faster environment solving compared to conda
  2. Removes dependence on anaconda, which may be helpful due to their updated licensing structure

A semi-related change is removing save_dir definitions in test_integration.py since they aren't necessary, and they can cause tests to fail if the parent directory is not writable (as is the case with the current Dockerfile).

Example / Current workflow

Using the existing version of the environment file, pytorch comes from the conda-forge channel and does not have gpu support.

Bugfix / Desired workflow

Using the updated version of the environment file, pytorch should come from the pytorch channel and include gpu support. Cudatoolkit will also be installed in the environment.

Questions

I haven't explicitly tested whether GPU support works. It would be great if someone familiar with nvidia-docker could help with that.

Relevant issues

Fixes #183

Checklist

  • linted with flake8?
  • (if appropriate) unit tests added?

mliu49 added 3 commits May 3, 2022 16:43
pytorch channel has better builds of pytorch with GPU support
conda-forge has better builds of rdkit than rdkit channel
Removes dependency on anaconda
Faster environment solving
So the TemporaryDirectory works as intended
@davidegraff
Copy link
Contributor

changes seem good to me. Also i think we need to bump the python version since we dropped 3.6 iirc

@mliu49
Copy link
Contributor Author

mliu49 commented May 12, 2022

I bumped the Python version minimum to 3.7. Let me know if there's anything else to address.

Copy link
Contributor

@davidegraff davidegraff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nothing on my end

@mliu49 mliu49 merged commit b1f3422 into master May 13, 2022
@mliu49 mliu49 deleted the fix-env-gpu branch May 13, 2022 13:32
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.

environment.yml installs cpu instead of gpu version of pytorch and torchvision
2 participants