diff --git a/examples/digital_fingerprinting/production/Dockerfile b/examples/digital_fingerprinting/production/Dockerfile index 7166edc12e..bf64b848b2 100644 --- a/examples/digital_fingerprinting/production/Dockerfile +++ b/examples/digital_fingerprinting/production/Dockerfile @@ -58,8 +58,10 @@ FROM base as jupyter RUN source activate morpheus \ && mamba install -y -c conda-forge \ ipywidgets \ - jupyterlab \ - nb_conda_kernels + nb_conda_kernels \ + && pip install jupyter_contrib_nbextensions==0.5.1 \ + && jupyter contrib nbextension install --user \ + && pip install jupyterlab_nvdashboard==0.7.0 # Launch jupyter CMD ["jupyter-lab", "--ip=0.0.0.0", "--no-browser", "--allow-root"] diff --git a/examples/digital_fingerprinting/production/README.md b/examples/digital_fingerprinting/production/README.md index f5f5f4d957..d844ac380e 100644 --- a/examples/digital_fingerprinting/production/README.md +++ b/examples/digital_fingerprinting/production/README.md @@ -16,7 +16,7 @@ This is necessary to get the latest changes needed for DFP. From the root of the ./docker/build_container_release.sh ``` -## Buildign and Running via `docker-compose` +## Building and Running via `docker-compose` ### Build ```bash cd examples/digital_fingerprinting/production @@ -24,7 +24,7 @@ export MORPHEUS_CONTAINER_VERSION="$(git describe --tags --abbrev=0)-runtime" docker-compose build ``` -### Runing the services +### Running the services #### Jupyter Server From the `examples/digital_fingerprinting/production` dir run: ```bash @@ -88,6 +88,11 @@ From the `examples/digital_fingerprinting/production` dir run: docker-compose up mlflow ``` +By default, a mlflow dashboard will be available at: +```bash +http://localhost:5000 +``` + ## Kubernetes deployment The Morpheus project also maintains Helm charts and container images for Kubernetes deployment of Morpheus and MLflow (both for serving and for the Triton plugin). These are located in the NVIDIA GPU Cloud (NGC) [public catalog](https://catalog.ngc.nvidia.com/orgs/nvidia/teams/morpheus/collections/morpheus_). @@ -125,4 +130,5 @@ Open your browser to the reachable address and NodePort exposed by the pod (defa ``` helm install --set ngc.apiKey="$API_KEY",sdk.args="cd /workspace/examples/digital_fingerprinting/production/morpheus && ./launch.sh --train_users=generic --duration=1d" morpheus-sdk-client/ -``` \ No newline at end of file +``` + diff --git a/examples/digital_fingerprinting/production/docker-compose.yml b/examples/digital_fingerprinting/production/docker-compose.yml index 1537acf89b..e74a721dcc 100644 --- a/examples/digital_fingerprinting/production/docker-compose.yml +++ b/examples/digital_fingerprinting/production/docker-compose.yml @@ -41,7 +41,12 @@ services: target: jupyter args: - MORPHEUS_CONTAINER_VERSION=${MORPHEUS_CONTAINER_VERSION:-v22.09.00-runtime} - runtime: nvidia + deploy: + resources: + reservations: + devices: + - driver: nvidia + capabilities: [gpu] image: dfp_morpheus_jupyter container_name: jupyter ports: @@ -69,7 +74,12 @@ services: - MORPHEUS_CONTAINER_VERSION=${MORPHEUS_CONTAINER_VERSION:-v22.09.00-runtime} image: dfp_morpheus container_name: morpheus_pipeline - runtime: nvidia + deploy: + resources: + reservations: + devices: + - driver: nvidia + capabilities: [gpu] networks: - frontend - backend diff --git a/examples/digital_fingerprinting/production/morpheus/dfp_azure_inference.ipynb b/examples/digital_fingerprinting/production/morpheus/dfp_azure_inference.ipynb index 931022da6f..a8e1c298a6 100644 --- a/examples/digital_fingerprinting/production/morpheus/dfp_azure_inference.ipynb +++ b/examples/digital_fingerprinting/production/morpheus/dfp_azure_inference.ipynb @@ -421,6 +421,14 @@ "# Run the pipeline\n", "await pipeline._do_run()\n" ] + }, + { + "cell_type": "code", + "execution_count": null, + "id": "39971052-6211-4bfe-82d8-88f5845562bc", + "metadata": {}, + "outputs": [], + "source": [] } ], "metadata": { diff --git a/examples/digital_fingerprinting/production/morpheus/dfp_azure_pipeline.py b/examples/digital_fingerprinting/production/morpheus/dfp_azure_pipeline.py index 8b4cb69af3..e75527b8dc 100644 --- a/examples/digital_fingerprinting/production/morpheus/dfp_azure_pipeline.py +++ b/examples/digital_fingerprinting/production/morpheus/dfp_azure_pipeline.py @@ -110,7 +110,7 @@ ) @click.option('--tracking_uri', type=str, - default="http://localhost:5000", + default="http://mlflow:5000", help=("The MLflow tracking URI to connect to the tracking backend.")) def run_pipeline(train_users, skip_user: typing.Tuple[str], diff --git a/examples/digital_fingerprinting/production/morpheus/dfp_duo_pipeline.py b/examples/digital_fingerprinting/production/morpheus/dfp_duo_pipeline.py index 5fe2b75e80..2bbcef4c67 100644 --- a/examples/digital_fingerprinting/production/morpheus/dfp_duo_pipeline.py +++ b/examples/digital_fingerprinting/production/morpheus/dfp_duo_pipeline.py @@ -111,7 +111,7 @@ ) @click.option('--tracking_uri', type=str, - default="http://localhost:5000", + default="http://mlflow:5000", help=("The MLflow tracking URI to connect to the tracking backend.")) def run_pipeline(train_users, skip_user: typing.Tuple[str],