Upgrade python versions in monai-deploy MAP Base Image #479
Unanswered
AnilMistry
asked this question in
Q&A
Replies: 1 comment
-
The App SDK is being updated to user Holoscan SDK v1.0.3, published on pypi, and as such CUDA 12 runtime is required in App SDK v1.0.0. For issue with v0.5.1, with the aforementioned templates.py, user's site-packages is inspected and the App SDK modules are copied to the MAP(container image)'s folders. This file can be modified once the App SDK is pip installed for newer versions of Python. App SDK v1.0.0 will actually pip install the App SDK when building the MAP container image instead. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
My segmentation application requires python >=3.9 for certain packages, but I'm limitted to CUDA 11.4. on our deployment platform. I'm tackling with a multi-stage docker build, starting with 'monai-deploy package ...' then running a docker file using that first MAP as a base image.
I'm using monai-deploy 0.5.1
monai-deploy package app (using base image nvcr.io/nvidia/pytorch:21.07-py3 which has python3.8)
Monai-deploy package autosegct/app/ -t autosegct/map_init:0.0.1 -l DEBUG -b nvcr.io/nvidia/pytorch:21.07-py3
docker build -t myapp/map:0.0.1 ./Dockerfile
This fails to run correctly, reverts to python3.8 again when running app.py, instead of the python3.9 we tried to symlink.
I believe this is due to the follow part of the MAP build, which enforces python.
monai-deploy-app-sdk/monai/deploy/packager/templates.py
Line 44 in 978f28c
..which I assume builds the monai-exec file which is run by
monai-deploy run
Is there a way of resolving this to update a docker base image to python3.9?
Or are there any base images for MAPs available with python>=3.9 as default but also compatible with CUDA v11.4?
Many thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions