Load Model

opensearch_py_ml.ml_commons.MLCommonClient.load_model(self, model_id: str, wait_until_loaded: bool = True) object

This method deploys a model in the opensearch cluster using ml-common plugin’s deploy model api

Parameters:
  • model_id (string) – unique id of the model

  • wait_until_loaded (bool) – Whether to wait until the model is deployed

Returns:

returns a json object, with task_id and status key.

Return type:

object

Deprecated since version 2.7.0: Since OpenSearch 2.7.0, you can use deploy_model instead