PyTorch Software Options on Olivia

Olivia supports three distinct ways to run PyTorch workloads:

  1. NRIS Module through the NRIS GPU module stack.

  2. Container Implementation using Apptainer explicitly.

  3. EESSI Module using the EESSI software stack.

The PyTorch overview page (PyTorch on Olivia) links to the scaling guides and supporting reference pages. This page focuses only on the software choices available to you.

For validated examples of all three approaches, see Single-GPU Implementation for PyTorch on Olivia for single-GPU, Multi-GPU Implementation for PyTorch on Olivia for multi-GPU on a single node, and Multi-Node Implementation for PyTorch on Olivia for multi-node runs.

Software Options

The module path is the main user-facing solution on Olivia. It looks like a normal module workflow, but the runtime is container-backed underneath.

You can load the PyTorch module like this:

ml reset
ml load NRIS/GPU
ml PyTorch/2.12.0

In this stack:

  1. ml reset starts from a clean module environment.

  2. NRIS/GPU selects the ARM software stack used on Olivia GPU compute nodes.

  3. PyTorch/2.12.0 loads the user-facing PyTorch module. Under the hood, this module is a wrapper around the container-backed PyTorch runtime. It will load the GPU communication stack needed for multi-GPU and multi-node PyTorch jobs. On Olivia this also means the supporting communication layer used with NCCL, including components such as libfabric and AWS OFI NCCL.

If you want to see the container-based launch model directly, the PyTorch guide pages also show the equivalent direct-container examples for single-GPU, multi-GPU, and multi-node runs.

This is the recommended default when the published module already covers your workflow.

Warning

Do not plan around pip install based extension on NRIS GPU module stack. If packages are missing, use the container solution instead.

If you want recommendations for where to keep overlays, models, datasets, and Hugging Face caches on Olivia, see Models, Datasets, Caches, and Overlays on Olivia.