416
This DockerHub repository hosts a series of layered images designed for AI and HPC workloads, ranging from Jupyter-based data science to CUDA/NCCL-enabled multi-node GPU clusters with RDMA. This project provides production-ready Docker containers for PyTorch development and GPU benchmarking, from single-node development to multi-node distributed training.
All images are available on Docker Hub:
docker pull leoustc/pytorch:<tag>
Available tags:
base: CPU-only PyTorch with JupyterLabcuda12.6: CUDA 12.6 enabled PyTorchcuda12.6-mpi: CUDA 12.6 with MPI support for distributed trainingcuda12.6-mpi-rdma: CUDA 12.6 with MPI on RDMA support for distributed trainingdocker run -p 8888:8888 -v $(pwd)/project:/root/project leoustc/pytorch:base
docker run --gpus all -p 8888:8888 -v $(pwd)/project:/root/project leoustc/pytorch:cuda12.6
docker run --gpus all -p 8888:8888 \
-v ./ssh:/root/.ssh \
-v ./project:/root/project \
leoustc/pytorch:cuda12.6-mpi
version: "3.8"
services:
pytorch:
image: leoustc/pytorch:base
ports:
- "8888:8888"
environment:
- TOKEN=abc123
volumes:
- ./project:/workspace/project
version: "3.8"
services:
pytorch-gpu:
image: leoustc/pytorch:cuda12.6
runtime: nvidia
shm_size: '4gb'
ports:
- "8888:8888"
environment:
- TOKEN=abc123
deploy:
resources:
reservations:
devices:
- capabilities: [gpu]
volumes:
- ./project:/root/project
Open http://localhost:8888 in your browser.
Default token: abc123 (configurable via TOKEN environment variable)
pytorch-container/
├── Dockerfile # Base CPU image
├── Dockerfile.cuda12.6 # CUDA 12.6 image
├── Dockerfile.cuda12.6-mpi # MPI-enabled CUDA image
├── docker-compose.yml # Basic compose file
├── docker-compose.cuda12.yml # CUDA compose file
└── docker-compose.cuda12.6-mpi.yml # MPI cluster compose
This project is licensed under the Apache 2.0 License.
Maintained by:
Leo Li (leoustc)
Docker Hub Repository:
leoustc/pytorch
Content type
Image
Digest
sha256:8715b4500…
Size
7.4 GB
Last updated
over 1 year ago
docker pull leoustc/pytorch:cuda12.6-mpi