Scoring runtimes
Overview
The selection of available runtimes is determined by the artifact type that you specify. The following list provides information on the available options when selecting an artifact type and runtime.
Selecting an incorrect runtime causes the deployment to fail.
Artifact type | Version | Runtime option | Notes |
---|---|---|---|
Driverless AI MOJO pipeline | DAI 1.9.3 and later | DAI MOJO Scorer (Shapley none) | |
Driverless AI MOJO pipeline | DAI 1.10.0 and later | DAI MOJO Scorer (Shapley original only) | Requires 2x the memory as the Shapley none option. |
Driverless AI MOJO pipeline | DAI 1.9.3 and later | DAI MOJO Scorer (Shapley transformed only) | Requires 2x the memory as the Shapley none option. |
Driverless AI MOJO pipeline | DAI 1.10.0 and later | DAI MOJO Scorer (Shapley all) | Requires 3x the memory as the Shapley none option. |
Driverless AI MOJO pipeline | DAI 1.10.0 and later | DAI MOJO Scorer (C++ Runtime) | Experiment needs to be linked through project. Original Shapley requires DAI 1.10.3 and later. Transformed Shapley requires DAI 1.10.2 and later. |
Driverless AI Python scoring pipeline | DAI 1.9.3 | Python Pipeline Scorer [DAI 1.9.3] | No longer supported. |
Driverless AI Python scoring pipeline | DAI 1.10.0 and later | Python Pipeline Scorer [DAI 1.10.0] and Python Pipeline Scorer [DAI 1.10.4.3] | Python pipeline scorer’s version must correspond to the DAI version used to build the model (for example, a model built with DAI 1.10.4.2 must use Python Pipeline Scorer [DAI 1.10.4.2]). |
H2O-3 MOJO | All versions | H2O-3 MOJO Scorer | |
MLflow / .pkl file | MLflow Model Scorer [Python 3.8] and MLflow Model Scorer [Python 3.9] | MLflow Model Scorer’s version must correspond to the Python version used to build the model. | |
MLflow | [PY-3.8] MLflow Dynamic Model Scorer , [PY-3.9] MLflow Dynamic Model Scorer , and [PY-3.10] MLflow Dynamic Model Scorer | For information on how to use the dynamic runtime, see MLflow Dynamic Runtime. |
The C++ MOJO2 runtime (DAI MOJO Scorer (C++ Runtime)
) accepts a wider range of algorithms DAI may use that the Java runtime does not support, including BERT, GrowNet, and TensorFlow models. If you want to use one of these models, it must be linked from DAI and not be manually uploaded.
MLflow Dynamic Runtime
The MLflow Dynamic Runtime lets you deploy MLflow models with diverse dependencies in H2O MLOps. The following steps describe how to deploy a dynamic MLflow runtime deployment in H2O MLOps.
Note: For an example of how to train a dynamic runtime, see Train a dynamic runtime.
- Save your model using the
mlflow.pyfunc.save_model
function call. Use thepip_requirements
parameter to specify the Python package dependencies required by the model.
mlflow.pyfunc.save_model(
path=...,
python_model=...,
artifacts=...,
signature=...,
pip_requirements=..., # <- Use this parameter to override libs for dynamic runtime
)
- After saving the model, create a zip archive of the saved model directory. Ensure that a requirements file (
requirements.txt
) that lists all dependencies is included in the zip archive. The following is an example of the expected structure for the zip file from a TensorFlow model:
tf-model-py310
├── MLmodel
├── artifacts
│ └── tf.h5
├── conda.yaml
├── python_env.yaml
├── python_model.pkl
└── requirements.txt
- Depending on whether you are using Python 3.8 or Python 3.9, select from one of the following options:
- [PY-3.8] MLflow Dynamic Model Scorer
- [PY-3.9] MLflow Dynamic Model Scorer
The MLflow Dynamic Runtime has a fixed MLflow dependency, which is MLflow 1.26.1. This means that the MLflow Dynamic Runtime is not guaranteed to work with a different version of MLflow model.