InseeFrLab / images-datascience

Collection of Docker images to build the data science catalog of the Onyxia project
MIT License
24 stars 22 forks source link

Compile PyTorch from the sources #69

Closed avouacr closed 1 year ago

avouacr commented 1 year ago

Installing PyTorch with GPU support via Conda as we do it currently generates huge images, since the binaries are pre-built with CUDA support. As we use a base image with CUDA already set-up, we could build PyTorch from the sources instead so that it uses the locally shipped CUDA toolkit instead.

See this discussion : https://discuss.pytorch.org/t/cudnn-vs-cudatoolkit/154164/2