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:
- Download the model artifact using the OCI Console, SDKs, CLI, or with ADS.
-
Delete any
runtime.yaml
ords-runtime.yaml
files that were in the original artifact. -
Replace with the latest
runtime.yaml
schema. -
Enter parameter values into
runtime.yaml
. - Test your model artifact before saving it to the model catalog.
- Save the model to the model catalog.