Skip to content
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions gpu.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ RUN CPATH=/usr/local/cuda/targets/x86_64-linux/include install2.r --error --ncpu

# Torch: install the full package upfront otherwise it will be installed on loading the package which doesn't work for kernels
# without internet (competitions for example). It will detect CUDA and install the proper version.
# Make Torch think we use CUDA 11.8 (https://github.com/mlverse/torch/issues/807)
# Pin torch to 0.13.0 (libtorch 2.0.1), the last version supporting CUDA 11.7.
ENV CUDA=11.7
RUN R -e 'install.packages("torch")'
RUN R -e 'install.packages("remotes"); remotes::install_version("torch", version = "0.13.0")'
RUN R -e 'library(torch); install_torch()'

CMD ["R"]