Skip to content

Commit 0e475f4

Browse files
committed
update docs/tutorials with AMD GPU/rocm references
Signed-off-by: Vicky Tsang <vtsang@amd.com>
1 parent aaf14cc commit 0e475f4

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed

docs/source/getting_started/tutorials/mednist_app.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,14 @@ monai-deploy package examples/apps/mednist_classifier_monaideploy/mednist_classi
8888
--model classifier.zip \
8989
-l DEBUG
9090

91+
# For AMD GPUs, nvidia-docker is not required. Use --base [base image] option to override the docker base image.
92+
# Please see https://hub.docker.com/r/rocm/pytorch for rocm/pytorch docker images.
93+
monai-deploy package -b rocm/pytorch:rocm5.4.1_ubuntu20.04_py3.7_pytorch_1.12.1 \
94+
examples/apps/mednist_classifier_monaideploy/mednist_classifier_monaideploy.py \
95+
--tag mednist_app:latest \
96+
--model classifier.zip \
97+
-l DEBUG
98+
9199
# Run the app with docker image and input file locally
92100
monai-deploy run mednist_app:latest input output
93101
cat output/output.json

docs/source/getting_started/tutorials/monai_bundle_app.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ monai-deploy exec ../examples/apps/ai_spleen_seg_app/app.py -i dcm/ -o output -m
6666
# Please see https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker to install nvidia-docker2.
6767
monai-deploy package examples/apps/ai_spleen_seg_app --tag seg_app:latest --model model.ts -l DEBUG
6868

69+
# For AMD GPUs, nvidia-docker is not required. Use --base [base image] option to override the docker base image.
70+
# Please see https://hub.docker.com/r/rocm/pytorch for rocm/pytorch docker images.
71+
monai-deploy package -b rocm/pytorch:rocm5.4.1_ubuntu20.04_py3.7_pytorch_1.12.1 examples/apps/ai_spleen_seg_app --tag seg_app:latest --model model.ts -l DEBUG
72+
6973
# Run the app with docker image and input file locally
7074
monai-deploy run seg_app:latest dcm/ output
7175
```

docs/source/getting_started/tutorials/multi_model_app.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,10 @@ monai-deploy exec ../examples/apps/examples/apps/ai_multi_ai_app/app.py -i dcm/
6666
# Please see https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker to install nvidia-docker2.
6767
monai-deploy package -b nvcr.io/nvidia/pytorch:22.08-py3 examples/apps/ai_multi_ai_app --tag multi_model_app:latest --model multi_models -l DEBUG
6868

69+
# For AMD GPUs, nvidia-docker is not required. Use --base [base image] option to override the docker base image.
70+
# Please see https://hub.docker.com/r/rocm/pytorch for rocm/pytorch docker images.
71+
monai-deploy package -b rocm/pytorch:rocm5.4.1_ubuntu20.04_py3.7_pytorch_1.12.1 examples/apps/ai_multi_ai_app --tag multi_model_app:latest --model multi_models -l DEBUG
72+
6973
# Run the app with docker image and input file locally
7074
monai-deploy run multi_model_app:latest dcm/ output
7175
```

docs/source/getting_started/tutorials/segmentation_app.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,10 @@ python examples/apps/ai_spleen_seg_app/app.py -i dcm/ -o output -m model.ts
7676
# Please see https://docs.nvidia.com/datacenter/cloud-native/container-toolkit/install-guide.html#docker to install nvidia-docker2.
7777
monai-deploy package examples/apps/ai_spleen_seg_app --tag seg_app:latest --model model.ts -l DEBUG
7878

79+
# For AMD GPUs, nvidia-docker is not required. Use --base [base image] option to override the docker base image.
80+
# Please see https://hub.docker.com/r/rocm/pytorch for rocm/pytorch docker images.
81+
monai-deploy package -b rocm/pytorch:rocm5.4.1_ubuntu20.04_py3.7_pytorch_1.12.1 examples/apps/ai_spleen_seg_app --tag seg_app:latest --model model.ts -l DEBUG
82+
7983
# Run the app with docker image and input file locally
8084
monai-deploy run seg_app:latest dcm/ output
8185
```

0 commit comments

Comments
 (0)