Skip to content

Commit

Permalink
log model_state
Browse files Browse the repository at this point in the history
Signed-off-by: kalyan <[email protected]>
  • Loading branch information
rawwar committed Oct 12, 2023
1 parent 0338bd8 commit 68b237a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion opensearch_py_ml/ml_commons/ml_commons_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def load_model(self, model_id: str, wait_until_loaded: bool = True) -> object:
print("Model deployed only partially")
# TODO: need to add the test case later for this line
else:
raise Exception("Model deployment failed")
raise Exception("Model deployment failed. Model state: " + str(model_state))

return self._get_task_info(task_id)

Expand Down

0 comments on commit 68b237a

Please sign in to comment.