Container image for the use of the Torch R package in FH DaSL's WILDS
10K+
This directory contains Docker images for R with PyTorch integration, providing a CUDA-enabled environment for deep learning in R.
latest ( Dockerfile | Vulnerability Report )0.13.0 ( Dockerfile | Vulnerability Report )These Docker images are built from NVIDIA's CUDA 11.7.1 with cuDNN 8 base image and include:
torch::install_torch() for the appropriate CUDA runtime inside the image.The images are designed to provide a comprehensive environment for deep learning in R with GPU acceleration.
Core/Build:
remotes: Install specific versions of CRAN/GitHub packages; used at build time to pin torch to 0.13.0.pacman: Convenience package maintainer to install/load packages; helpful in scripts and reproducible containers.Torch Ecosystem:
torch: Tensor operations, autograd, modules, and optimizers for deep learning in R (0.13.0).torchvision: Vision utilities for R torch: common datasets, transforms/augmentations, and model helpers for CV tasks.torchdatasets: Dataset and dataloader tooling for torch; stream data, compose transforms, and build efficient input pipelines.coro: Coroutines used by the torch input pipeline (e.g., iterators).Data Engineering/Utilities:
magick: Image I/O and processing (resize, crop, annotate, format conversion) backed by ImageMagick; useful for computer vision preprocessing.pins: Versioned data artifacts (local folder, S3, GCS, etc.); cache datasets, models, and intermediate results.tidyverse: Data manipulation, visualization, and I/O (e.g., dplyr, ggplot2, readr, tidyr) for end-to-end analysis.Modeling/Evaluation:
smotefamily: Oversampling for imbalanced class learning (SMOTE variants).pROC: ROC curves, AUC, CI, partial AUC, etc.PRROC: Precision-Recall, ROC curves with fast computation.igraph: Network analysis and graph algorithms; useful for graph neural networks and complex network modeling.docker pull getwilds/rtorch:latest
# or
docker pull getwilds/rtorch:0.13.0
# Alternatively, pull from GitHub Container Registry
docker pull ghcr.io/getwilds/rtorch:latest
apptainer pull docker://getwilds/rtorch:latest
# or
apptainer pull docker://getwilds/rtorch:0.13.0
# Alternatively, pull from GitHub Container Registry
apptainer pull docker://ghcr.io/getwilds/rtorch:latest
# Docker (using a hypothetical script called "train_model.R")
docker run --gpus all --rm -v /path/to/project:/project getwilds/rtorch:latest Rscript /project/train_model.R
# Apptainer
apptainer run --nv --bind /path/to/project:/project docker://getwilds/rtorch:latest Rscript /project/train_model.R
# Apptainer (local SIF file)
apptainer run --nv --bind /path/to/project:/project rtorch_latest.sif Rscript /project/train_model.R
To use GPU acceleration with this image, ensure that:
--gpus all flag when running the containerThe rtorch Docker images include:
These images are regularly scanned for vulnerabilities using Docker Scout. However, due to the nature of deep learning frameworks and their dependencies, some Docker images may contain components with known vulnerabilities (CVEs).
Use at your own risk: While we strive to minimize security issues, these images are primarily designed for research and analytical workflows in controlled environments.
For the latest security information about this image, please check the CVEs_*.md files in this directory, which are automatically updated through our GitHub Actions workflow. If a particular vulnerability is of concern, please file an issue in the GitHub repo citing which CVE you would like to be addressed.
The Dockerfile follows these main steps:
These Dockerfiles are maintained in the WILDS Docker Library repository.
Content type
Image
Digest
sha256:9db737f83…
Size
6.4 GB
Last updated
about 1 year ago
docker pull getwilds/rtorch