From PVC (CLI)

If you have already pre-loaded a model onto a Persistant Volume Claim (PVC), you can add the model to HPE Machine Learning Inferencing Software by following the steps below.

Before You Start

PVC Syntax & URL Options

Review the following PVC syntax and URL options to ensure you have the correct information for adding your model.

OptionDescriptionExampleDefault
PVC NameName of the Persistent Volume Claim (PVC) to be mountedpvc://my-model-pvcRequired, no default
PathOptional path within the PVC to be mountedpvc://my-model-pvc/modelsIf not specified, the entire PVC is mounted
ContainerPathDirectory in container where the PVC is mountedpvc://my-model-pvc?containerPath=/mnt/models/mnt/models
readOnlyWhether the volume is read-onlypvc://my-model-pvc?readOnlyIf not specified, the volume is read-write

warning icon PVC Name
The PVC Name (e.g., <my-model-pvc>) must already exist in the Kubernetes namespace where the packaged model will be deployed.

How to Add a Packaged Model From PVC

  1. Sign in via the CLI.

    aioli user login <YOUR_USERNAME>
  2. Create a new model with the following command:

    aioli model create <MODEL_NAME> \
    --modelformat custom \
    --image <USER_NAME>/<MODEL_NAME>:<TAG> \
    --url pvc://<PVC_NAME>/<OPTIONAL_PATH>?containerPath=<DIR_IN_CONTAINER> \
    --description <DESCRIPTION> \
    --arg=--model_dir=<PATH_WHERE_MODEL_IS_STORED>