-
Notifications
You must be signed in to change notification settings - Fork 3k
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
DockerFile for PyTorch? #745
Comments
Hi @jzf2101 . We've been trying to build, test, and maintain fewer image in this one uber-repo over time and encouraging more links to images based on the ones here managed elsewhere. Ways to go about it (ordered by my preference FWIW) would be:
|
I'm fine with option 1 as long as we presume this doesn't imply we're providing preferential support for TF over Pytorch. Both seem quite popular |
@jzf2101 I added two bullet points to the issue i posted previously:
@parente thanks for the input on this! @jzf2101 I could help out on option 1! |
Agreed. The tensorflow-notebook image predates our push to include fewer images in this single repo. Perhaps we should consider moving it to its own repo too. It's of limited use because it is a CPU-only image. On that topic: A handful of users have requested that we update it (tensorflow-notebook) to include the CUDA drivers. After consulting with the Jupyter Steering Council, we decided that we did not want to introduce commercial software into the images we maintain. See #516 for a brief history. I don't know how that affects plans for PyTorch. |
When you write Does this mean the CUDA licence has changed in some way, as it is available simple enough with a I supressed confirmations etc during install with |
It does look like the EULA has changed since the last time I looked: https://docs.nvidia.com/cuda/eula/index.html#distribution-requirements IANAL so I won't attempt to interpret the changes. That said, the original decision was about not including non-open source software in the images here, not the details of the CUDA license in particular.
We purposely installed https://github.com/jupyter/docker-stacks/blob/master/tensorflow-notebook/Dockerfile#L10 But that begs the valid question of what else might we be pulling in. |
@consideRatio @parente -- Here is my understanding from our open source team at Anaconda regarding CUDA, nvidia and redistribution. • EULA lists basically all the shared libraries as redistributable, but not compiler, debugger, or profiler There's also a nice discussion over on conda-forge here |
@alexbw followed up on this issue looking at the underlying conda build for PyTorch conda-forge/conda-forge.github.io#63 (comment) @scopatz are you saying that PyTorch likely has a license that allows people to use these conda packages to install CUDA with PyTorch wherever? |
Nope, users are not allowed to install cudatoolkit anywhere that is redistributed |
See here for a Pytorch GPU recipe: #706 (comment) The Tensorflow + Pytorch recipe is here: https://github.com/jolibrain/docker-stacks/tree/master/jupyter-dd-notebook-gpu |
This issue has been idle for some time now so I'm going to close it. If anyone would like to submit a PR to the recipes or community images doc pages linking to information about GPU-enabled images, I'll be happy to review it. For now, the decision stands that we do not wish to deal with the distribution of non-open source software in these images. I'm not sure if it's been said yet, so I'll point out that it might be much easier to direct users to images like https://hub.docker.com/r/pytorch/pytorch and https://hub.docker.com/r/tensorflow/tensorflow/ and help users add Jupyter components to them instead of working the other way around (i.e., starting with Jupyter images and adding deep learning frameworks with GPU acceleration to them). I'd be fine with the recipes page including such instructions if someone wants to figure out that approach and send a PR. |
@parente : @koustuvsinha are looking at jupyterhub/zero-to-jupyterhub-k8s#994 and @consideRatio 's dockerfile and we need to tweak both to get a pytorch image perhaps we can also add this when it's done?
The text was updated successfully, but these errors were encountered: