Prerequisites
- Docker with Buildx and a builder configured for
linux/amd64andlinux/arm64. - A container registry account with permission to publish your image.
- Your application files and
Dockerfile. - A Vast.ai account for testing on a GB200 instance.
1 Check your existing image
On your development machine, inspect the exact image tag you use. Replace the example name below with your own registry namespace, image and tag.linux/arm64 in the listed platforms. linux/amd64 is the x86 version. If Arm is already listed, you can move to runtime testing, but still check that your framework and dependencies support Blackwell GPUs.
A multi-platform image stores both versions under one tag. Docker automatically selects the version that matches the machine.
2 Choose a base image with Arm and Blackwell support
Vast provides PyTorch images with AMD64 and ARM64 support. For this GB200 example, use a Blackwell-compatible PyTorch build with CUDA 12.8 or newer. CUDA 12.8 introduced native compiler support for Blackwell GPUs, including GB200’s GPU architecture. Arm CPU support and Blackwell GPU support are separate requirements. Do not choose a tag with-cu126- or -cuda-12.6.3- for this example just because it has an Arm version. Those names indicate an older PyTorch CUDA backend or CUDA base. Choose a Blackwell-compatible framework build and check the exact image tag. The base image’s CUDA version alone does not establish compatibility for every installed package.
Some older CUDA applications can run on Blackwell through forward-compatible PTX. That is application-specific and should not be assumed for an arbitrary image. See the CUDA 12.8 release notes and NVIDIA Blackwell compatibility guide.
Start from a compatible image and add your application dependencies. This minimal Dockerfile uses the base image shown in Vast’s PyTorch image documentation, with uv pip install as specified in Vast’s contribution conventions.
Dockerfile in your build directory, then add the files and packages your application needs. Check the exact base tag’s platforms before building.
Keep the env-hash step last, after every dependency change. Vast images can sync /venv to a volume and reuse a saved environment whose hash matches /.env_hash. If you install packages without refreshing the hash, an instance can reuse an older saved environment and your new packages will be missing at runtime.
For a reproducible release, pin your dependencies and replace the moving auto tag with a tested image digest.
3 Review your dependencies
A compatible base image is the starting point. Review yourDockerfile and setup scripts for software that assumes an x86 machine.
- Downloaded executables. Names containing
x86_64oramd64often identify an x86 build. Select the corresponding Arm release for the Arm image. - Python packages with compiled components. Confirm that your selected versions provide Linux Arm64 builds, or check what is required to compile them from source.
- Files copied from your computer. Copied binaries must match the target architecture. Rebuild native components for each target instead of copying an x86 build into both images.
- Custom CUDA extensions. Check compatibility with the Blackwell GPU architecture as well as the Arm CPU architecture.
4 Build and publish both versions
Use a Docker Buildx builder configured for both target platforms. Docker Desktop includes emulation support; other environments may need builder setup. See Docker’s multi-platform build guide. Sign in to your container registry, then run this command from the directory containing yourDockerfile. Replace the image name with a registry location you can publish to.
5 Test on GB200
Launch a GB200 instance using your published image and an appropriate Vast template. For an image derived from Vast’s PyTorch image, run the following inside the instance.aarch64, the GPU name and a successful matrix operation. Then run a representative task in your application. A CUDA check alone does not validate every dependency or workload.