Skip to content
offloadrPublic

About

Base images

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

17 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Offloadr Base Images

This repository builds reusable hardware/runtime base images for downstream application images.

Published images

The public image contract is:

  • ghcr.io/offloadr/base/cpu-core
  • ghcr.io/offloadr/base/amd-core
  • ghcr.io/offloadr/base/amd-full
  • ghcr.io/offloadr/base/nvidia-core
  • ghcr.io/offloadr/base/nvidia-full

Default tags

The default tags use Python 3.12 and 3.13 with PyTorch 2.14.1. NVIDIA uses CUDA 13.0.3; AMD uses ROCm 7.2.4:

  • cpu-core:py3.12-torch2.14.1-cpu
  • cpu-core:py3.13-torch2.14.1-cpu
  • amd-core:py3.12-torch2.14.1-rocm7.2.4
  • amd-core:py3.13-torch2.14.1-rocm7.2.4
  • amd-full:py3.12-torch2.14.1-rocm7.2.4
  • amd-full:py3.13-torch2.14.1-rocm7.2.4
  • nvidia-core:py3.12-torch2.14.1-cuda13.0.3
  • nvidia-core:py3.13-torch2.14.1-cuda13.0.3
  • nvidia-full:py3.12-torch2.14.1-cuda13.0.3
  • nvidia-full:py3.13-torch2.14.1-cuda13.0.3

Runtime contract

All published runtime images are expected to provide:

  • WORKDIR /workspace
  • python command backed by uv-managed CPython
  • uv 0.13.5
  • built-in virtual environment at /opt/venv with the base Python packages
  • UV_CONSTRAINT=/opt/offloadr/constraints/torch-stack.txt to pin torch, torchvision, and torchaudio
  • UV_TORCH_BACKEND set to the image's CPU/CUDA/ROCm flavor

AMD variants

amd-full also contains these accelerator packages in the built-in venv:

  • xFormers

NVIDIA variants

nvidia-full also contains these accelerator packages in the built-in venv:

  • xFormers
  • SageAttention2++

The runtime starts from NVIDIA's minimal CUDA base image. PyTorch's CUDA wheels supply the math libraries, avoiding a second copy from NVIDIA's larger runtime image. Extension builders use the CUDA devel image.

The opt-in nvidia-hopper image adds FlashAttention 3 for Hopper GPUs (H100/H800). Its tags use the same Python/PyTorch/CUDA suffixes, for example nvidia-hopper:py3.12-torch2.14.1-cuda13.0.3.

To build and publish the Hopper image, run the main-branch workflow manually with build_hopper enabled. Standard builds include nvidia-core and nvidia-full.

NVIDIA drivers and cloud hosts

The host provides the NVIDIA driver; the image provides its CUDA runtime. A matching host CUDA Toolkit installation is not required. For Vast.ai, RunPod, QuickPod, Shadeform and similar rentals, select a host advertising CUDA 13.0 or newer (driver branch R580 or newer). Check the actual driver capability before renting; a template's installed CUDA Toolkit version is not the driver limit.

Hosts below CUDA 13.0 need a separately maintained older runtime. NVIDIA's compatibility documentation explains driver requirements and PTX/JIT limitations.

PyTorch and torchvision are pinned to their cu130 wheels, including the CUDA suffix in the inherited constraints. TorchAudio 2.11.0 uses the same index and supports PyTorch 2.11 and later. xFormers and optional FlashAttention 3 use stable-ABI CUDA 13 wheels published in the cu130 index; SageAttention is built with the CUDA 13.0 toolkit. Builds check package versions, Torch's CUDA flavor and accelerator imports without requiring a GPU. Actual attention kernels still need GPU validation.

Building

Run a quick local check with the CPU images:

docker buildx bake cpu-core --pull --load

Build the standard images locally:

docker buildx bake --pull

Build a specific image:

docker buildx bake nvidia-full

Build a specific Python and PyTorch flavor:

docker buildx bake nvidia-full-py312-torch2141

Build the opt-in Hopper image (also builds its standard-image dependencies):

docker buildx bake nvidia-hopper-py312-torch2141

About

Base images

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages