I am trying to create a regitered Azure ML Model using the the existing best model from the experiment which is run.
The documentation I have refered said we can create it via this code. but it returns a error
import datetime
from azure.ai.ml.entities import (
Environment,
BatchEndpoint,
BatchDeployment,
BatchRetrySettings,
Model,
)
from azure.ai.ml.constants import BatchDeploymentOutputAction
model_name = "github-dau-tcn"
batch_endpoint_name = "gdau-batch-" + datetime.datetime.now().strftime("%m%d%H%M%f")
model = Model(
path=f"azureml://jobs/{best_run.info.run_id}/outputs/artifacts/outputs/model.pt",
name=model_name,
description="some name",
)
registered_model = ml_client.models.create_or_update(model)
It seems the artifact is not stored in a specific path under azureml::
Can anyone help?
I am getting the below error:
HttpResponseError: (UserError) The request is invalid. Code: UserError Message: The request is invalid. Exception Details: (NoMatchingArtifactsFoundFromJob) No artifacts matching outputs/model.pt found from Job. Code: NoMatchingArtifactsFoundFromJob Message: No artifacts matching outputs/model.pt found from Job. Additional Information:Type: ComponentName Info: { "value": "managementfrontend" }Type: Correlation
I am trying to create a regitered Azure ML Model using the the existing best model from the experiment which is run.