python-gpu/astro-gpu-tensor-flow:2026-01-28
Version sha256.c2a3411ae15c699e5df772fe50a8f31a8f602bd52d4ef1768b0213f6e8c51054
Image size: 15.4 GB
For more on pulling from the registry, see the ilifu documentation.
First, once: add the registry and make it your default
singularity remote add --no-login idia-registry https://sregistry.idia.ac.za
singularity remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
singularity remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
singularity pull library://python-gpu/astro-gpu-tensor-flow:2026-01-28
Shell into the container
singularity shell library://python-gpu/astro-gpu-tensor-flow:2026-01-28
Run the container
singularity run library://python-gpu/astro-gpu-tensor-flow:2026-01-28
First, once: add the registry and make it your default
apptainer remote add --no-login idia-registry https://sregistry.idia.ac.za
apptainer remote use idia-registry
If you added it before, as the ilifu docs describe, remote add says it already exists: just run remote use.
Log in, for a private collection
apptainer remote login idia-registry
Paste a token from your token page when asked. Public collections need no login.
Pull the container
apptainer pull library://python-gpu/astro-gpu-tensor-flow:2026-01-28
Shell into the container
apptainer shell library://python-gpu/astro-gpu-tensor-flow:2026-01-28
Run the container
apptainer run library://python-gpu/astro-gpu-tensor-flow:2026-01-28
This container includes PyTorch and software for accelerating ETL (DALI, RAPIDS), Training (cuDNN, NCCL), and Inference (TensorRT) workloads. Common astronomy Python pacakges have also been included.
Bootstrap: docker
From: nvcr.io/nvidia/pytorch:25.12-py3
%runscript
/usr/bin/python "$@"
%post
apt-get update -y
apt-get install -y wget vim python3-pip gcc unzip git time
python -m pip install --upgrade pip
python -m pip install pipenv ipython ipykernel astropy numpy glop matplotlib scipy
# install zoobot
mkdir -p /opt
cd /opt
git clone https://github.com/mwalmsley/zoobot.git
pip install 'zoobot[pytorch]'
%labels
APPLICATION_NAME NVIDIA PyTorch
APPLICATION_URL https://catalog.ngc.nvidia.com/orgs/nvidia/containers/pytorch
SYSTEM_NAME iLifu
SYSTEM_URL http://www.ilifu.ac.za
AUTHOR_NAME IDIA
AUTHOR_EMAIL support@ilifu.ac.za
%help
This container includes PyTorch and software for accelerating ETL (DALI, RAPIDS), Training (cuDNN, NCCL), and Inference (TensorRT) workloads. Common astronomy Python pacakges have also been included.
Download python-gpu-astro-gpu-tensor-flow_2026-01-28.def
#!/bin/sh
/usr/bin/python "$@"
# /.singularity.d/env/10-docker2singularity.sh
#!/bin/sh
export PATH="/usr/local/lib/python3.12/dist-packages/torch_tensorrt/bin:/usr/local/nvidia/bin:/usr/local/cuda/bin:/usr/local/mpi/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/local/ucx/bin:/opt/amazon/efa/bin:/opt/tensorrt/bin"
export NVIDIA_REQUIRE_JETPACK_HOST_MOUNTS="${NVIDIA_REQUIRE_JETPACK_HOST_MOUNTS:-""}"
export GDRCOPY_VERSION="${GDRCOPY_VERSION:-"2.5.1"}"
export HPCX_VERSION="${HPCX_VERSION:-"2.25.1-RC2"}"
export MOFED_VERSION="${MOFED_VERSION:-"5.4-rdmacore56.0"}"
export OPENUCX_VERSION="${OPENUCX_VERSION:-"1.20.0"}"
export OPENMPI_VERSION="${OPENMPI_VERSION:-"4.1.7"}"
export RDMACORE_VERSION="${RDMACORE_VERSION:-"56.0"}"
export EFA_VERSION="${EFA_VERSION:-"1.43.1"}"
export AWS_OFI_NCCL_VERSION="${AWS_OFI_NCCL_VERSION:-"1.17.0"}"
export OPAL_PREFIX="${OPAL_PREFIX:-"/opt/hpcx/ompi"}"
export OMPI_MCA_coll_hcoll_enable="${OMPI_MCA_coll_hcoll_enable:-"0"}"
export CUDA_VERSION="${CUDA_VERSION:-"13.1.0.036"}"
export CUDA_DRIVER_VERSION="${CUDA_DRIVER_VERSION:-"590.44.01"}"
export NVVM_VERSION="${NVVM_VERSION:-"13.1.80"}"
export DOCA_VERSION="${DOCA_VERSION:-"3.1.0"}"
export _CUDA_COMPAT_PATH="${_CUDA_COMPAT_PATH:-"/usr/local/cuda/compat"}"
export ENV="${ENV:-"/etc/shinit_v2"}"
export BASH_ENV="${BASH_ENV:-"/etc/bash.bashrc"}"
export SHELL="${SHELL:-"/bin/bash"}"
export NVIDIA_REQUIRE_CUDA="${NVIDIA_REQUIRE_CUDA:-"cuda>=9.0"}"
export NCCL_VERSION="${NCCL_VERSION:-"2.28.9+cuda13.0"}"
export CUBLAS_VERSION="${CUBLAS_VERSION:-"13.2.0.9"}"
export CUFFT_VERSION="${CUFFT_VERSION:-"12.1.0.31"}"
export CURAND_VERSION="${CURAND_VERSION:-"10.4.1.34"}"
export CUSPARSE_VERSION="${CUSPARSE_VERSION:-"12.7.2.19"}"
export CUSPARSELT_VERSION="${CUSPARSELT_VERSION:-"0.8.1.1"}"
export CUSOLVER_VERSION="${CUSOLVER_VERSION:-"12.0.7.41"}"
export NPP_VERSION="${NPP_VERSION:-"13.0.2.21"}"
export NVJPEG_VERSION="${NVJPEG_VERSION:-"13.0.2.28"}"
export CUFILE_VERSION="${CUFILE_VERSION:-"1.16.0.49"}"
export NVJITLINK_VERSION="${NVJITLINK_VERSION:-"13.1.80"}"
export NVFATBIN_VERSION="${NVFATBIN_VERSION:-"13.1.80"}"
export CUBLASMP_VERSION="${CUBLASMP_VERSION:-"0.7.0.125"}"
export NVSHMEM_VERSION="${NVSHMEM_VERSION:-"3.4.5"}"
export CUDLA_VERSION="${CUDLA_VERSION:-"13.1.0.036"}"
export NVPTXCOMPILER_VERSION="${NVPTXCOMPILER_VERSION:-"13.1.80"}"
export CUDNN_VERSION="${CUDNN_VERSION:-"9.17.0.29"}"
export CUDNN_FRONTEND_VERSION="${CUDNN_FRONTEND_VERSION:-"1.16.0"}"
export TRT_VERSION="${TRT_VERSION:-"10.14.1.48+cuda13.0"}"
export TRTOSS_VERSION="${TRTOSS_VERSION:-""}"
export NSIGHT_SYSTEMS_VERSION="${NSIGHT_SYSTEMS_VERSION:-"2025.5.2.266"}"
export NSIGHT_COMPUTE_VERSION="${NSIGHT_COMPUTE_VERSION:-"2025.4.0.12"}"
export DALI_VERSION="${DALI_VERSION:-"1.52.0"}"
export DALI_BUILD="${DALI_BUILD:-""}"
export DALI_URL_SUFFIX="${DALI_URL_SUFFIX:-"130"}"
export POLYGRAPHY_VERSION="${POLYGRAPHY_VERSION:-"0.49.26"}"
export TRANSFORMER_ENGINE_VERSION="${TRANSFORMER_ENGINE_VERSION:-"2.10"}"
export MODEL_OPT_VERSION="${MODEL_OPT_VERSION:-"0.39.0"}"
export CUDA_ARCH_LIST="${CUDA_ARCH_LIST:-"7.5 8.0 8.6 9.0 10.0 12.0"}"
export MAXSMVER="${MAXSMVER:-""}"
export NVRX_VERSION="${NVRX_VERSION:-"0.5.0"}"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH:-"/usr/local/lib/python3.12/dist-packages/torch/lib:/usr/local/lib/python3.12/dist-packages/torch_tensorrt/lib:/usr/local/cuda/compat/lib:/usr/local/nvidia/lib:/usr/local/nvidia/lib64"}"
export NVIDIA_VISIBLE_DEVICES="${NVIDIA_VISIBLE_DEVICES:-"all"}"
export NVIDIA_DRIVER_CAPABILITIES="${NVIDIA_DRIVER_CAPABILITIES:-"compute,utility,video"}"
export NVIDIA_PRODUCT_NAME="${NVIDIA_PRODUCT_NAME:-"PyTorch"}"
export CUDA_COMPONENT_LIST="${CUDA_COMPONENT_LIST:-"cccl crt nvrtc driver-dev culibos-dev cudart cudart-dev nvcc"}"
export LIBRARY_PATH="${LIBRARY_PATH:-"/usr/local/cuda/lib64/stubs:/usr/local/cuda/lib64/stubs:"}"
export PYTORCH_BUILD_VERSION="${PYTORCH_BUILD_VERSION:-"2.10.0a0+b4e4ee8"}"
export PYTORCH_VERSION="${PYTORCH_VERSION:-"2.10.0a0+b4e4ee8"}"
export PYTORCH_BUILD_NUMBER="${PYTORCH_BUILD_NUMBER:-"0"}"
export NVIDIA_PYTORCH_VERSION="${NVIDIA_PYTORCH_VERSION:-"25.12"}"
export NVFUSER_BUILD_VERSION="${NVFUSER_BUILD_VERSION:-"073e91b"}"
export NVFUSER_VERSION="${NVFUSER_VERSION:-"073e91b"}"
export TORCHAO_BUILD_VERSION="${TORCHAO_BUILD_VERSION:-"+git01374eb5"}"
export PIP_BREAK_SYSTEM_PACKAGES="${PIP_BREAK_SYSTEM_PACKAGES:-"1"}"
export PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION="${PROTOCOL_BUFFERS_PYTHON_IMPLEMENTATION:-"python"}"
export PIP_CONSTRAINT="${PIP_CONSTRAINT:-"/etc/pip/constraint.txt"}"
export NVPL_LAPACK_MATH_MODE="${NVPL_LAPACK_MATH_MODE:-"PEDANTIC"}"
export PYTHONIOENCODING="${PYTHONIOENCODING:-"utf-8"}"
export LC_ALL="${LC_ALL:-"C.UTF-8"}"
export PIP_DEFAULT_TIMEOUT="${PIP_DEFAULT_TIMEOUT:-"100"}"
export JUPYTER_PORT="${JUPYTER_PORT:-"8888"}"
export TENSORBOARD_PORT="${TENSORBOARD_PORT:-"6006"}"
export UCC_CL_BASIC_TLS="${UCC_CL_BASIC_TLS:-"^sharp"}"
export UCC_EC_CUDA_EXEC_NUM_THREADS="${UCC_EC_CUDA_EXEC_NUM_THREADS:-"256"}"
export TORCH_CUDA_ARCH_LIST="${TORCH_CUDA_ARCH_LIST:-"7.5 8.0 8.6 9.0 10.0 12.0+PTX"}"
export PYTORCH_HOME="${PYTORCH_HOME:-"/opt/pytorch/pytorch"}"
export CUDA_HOME="${CUDA_HOME:-"/usr/local/cuda"}"
export TORCH_ALLOW_TF32_CUBLAS_OVERRIDE="${TORCH_ALLOW_TF32_CUBLAS_OVERRIDE:-"1"}"
export TRITON_PTXAS_PATH="${TRITON_PTXAS_PATH:-"/usr/local/cuda/bin/ptxas"}"
export TRITON_CUOBJDUMP_PATH="${TRITON_CUOBJDUMP_PATH:-"/usr/local/cuda/bin/cuobjdump"}"
export TRITON_NVDISASM_PATH="${TRITON_NVDISASM_PATH:-"/usr/local/cuda/bin/nvdisasm"}"
export TRITON_CUDACRT_PATH="${TRITON_CUDACRT_PATH:-"/usr/local/cuda/include"}"
export TRITON_CUDART_PATH="${TRITON_CUDART_PATH:-"/usr/local/cuda/include"}"
export TRITON_CUPTI_LIB_PATH="${TRITON_CUPTI_LIB_PATH:-"/usr/local/cuda/lib64"}"
export TRITON_CUPTI_INCLUDE_PATH="${TRITON_CUPTI_INCLUDE_PATH:-"/usr/local/cuda/include"}"
export COCOAPI_VERSION="${COCOAPI_VERSION:-"2.0+nv0.8.1"}"
export CUDA_BINARY_LOADER_THREAD_COUNT="${CUDA_BINARY_LOADER_THREAD_COUNT:-"8"}"
export CUDA_MODULE_LOADING="${CUDA_MODULE_LOADING:-"LAZY"}"
export TORCH_NCCL_USE_COMM_NONBLOCKING="${TORCH_NCCL_USE_COMM_NONBLOCKING:-"0"}"
export TORCHINDUCTOR_LOOP_ORDERING_AFTER_FUSION="${TORCHINDUCTOR_LOOP_ORDERING_AFTER_FUSION:-"0"}"
export NVIDIA_BUILD_ID="${NVIDIA_BUILD_ID:-"245654590"}"