Moving Models Saved Under Previous Artifact Versions

Model artifacts can be moved to a newer version to take advantage of new features.

For all models that were saved under an earlier version of the model artifact (version < 3.0), predefined values are assigned to the INFERENCE_CONDA_ENV environment variable.

This could be a problem if the model requires custom third-party dependencies or if the library versions in the classic conda environment differ from the requirements of a model. The following sample simple migration plan takes advantage of the latest features in the model artifact and model deployment.

To move an artifact to version 3.0:

  1. Download the model artifact using the OCI Console, SDKs, CLI, or with ADS.
  2. Delete any runtime.yaml or ds-runtime.yaml files that were in the original artifact.
  3. Replace with the latest runtime.yaml schema.
  4. Enter parameter values into runtime.yaml.
  5. Test your model artifact before saving it to the model catalog.
  6. Save the model to the model catalog.

Was this article helpful?