@romungi-MSFT I finally was able to deploy the model into ACI
I did the following changes to the scoring script:
def init():
global model
#model_path = os.path.join(os.getenv('AZUREML_MODEL_DIR'), 'model.joblib')
model_dir = Model.get_model_path(model_name='chapter12-hesham')
model_path = os.path.join(model_dir, 'model.joblib')
print(f"Loading model from {model_path}")
model = joblib.load(model_path)
The model was successfully loaded:
What I cannot understand is that when I used the AZUREML__MODEL__DIR, the deployment fails with following error:
The model_path is the same in both cases but fails to load when using the variable?