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

Docker: Add GPU Support for Tensorflow #12

Open
DiogenesAnalytics opened this issue Dec 15, 2023 · 3 comments
Open

Docker: Add GPU Support for Tensorflow #12

DiogenesAnalytics opened this issue Dec 15, 2023 · 3 comments
Assignees
Labels
enhancement New feature or request

Comments

@DiogenesAnalytics
Copy link
Owner

DiogenesAnalytics commented Dec 15, 2023

Problem

Currently the Docker image being built does not have the correct drivers to work with the version of tensorflow pinned in the pyproject.toml file:

tensorflow = ">=2.15.0"

Solution

What seems to work is installing tensorflow[and-cuda] via pip according to the Tensorflow install documentation. Now the question becomes: how to handle this optional install with the autoencoder library (which uses poetry as its build backend)?

References

@DiogenesAnalytics DiogenesAnalytics added the documentation Improvements or additions to documentation label Dec 15, 2023
@DiogenesAnalytics DiogenesAnalytics self-assigned this Dec 15, 2023
@DiogenesAnalytics
Copy link
Owner Author

Implemented (finally) with: 1c7b1f6

@DiogenesAnalytics
Copy link
Owner Author

DiogenesAnalytics commented Dec 16, 2023

Problem

Installing the and-conda extras (i.e. as tensorflow[and-conda]) makes the resulting Docker image MASSIVE:
image

Solution

Need to work with Poetry docs to figure out the correct way to make these CUDA libs optional ...

@DiogenesAnalytics DiogenesAnalytics added enhancement New feature or request and removed documentation Improvements or additions to documentation labels Dec 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant