FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpqie8i33i/MLmodel' - Tutorial: Score machine learning models with PREDICT in serverless Apache Spark pool

AdamNevin-8126 52 Reputation points
2022-01-31T16:15:16.927+00:00

Hello,

I am following the tutorial score machine learning models using PREDICT.

I receive the following error: FileNotFoundError: [Errno 2] No such file or directory: '/tmp/tmpqie8i33i/MLmodel'

In a previous post it was advised to ensure to upload the mlflow folder to AML, not the parent folder to AML.

Could I get a bit more clarity on these steps as I was unable to solve my issue.

Thanks in advance,

Adam
![169973-image.png]3

Azure Machine Learning
Azure Machine Learning
An Azure machine learning service for building and deploying models.
2,561 questions
{count} votes

1 answer

Sort by: Most helpful
  1. romungi-MSFT 41,961 Reputation points Microsoft Employee
    2022-02-01T11:42:25.703+00:00

    @AdamNevin-8126 After checking the referenced thread I believe @PRADEEPCHEEKATLA-MSFT is referring to uploading your model folder to Azure ML workspace and register it as a model.

    If you are using AML Model as seen in the model_uri parameter above I think you need to navigate to ml.azure.com and register the model from the models tab. Then use the model name and appropriate version for the AML_MODEL_URI env variable.

    Ex:

    AML_MODEL_URI = "aml://test1:1"  
    

    170183-image.png

    170221-image.png
    If all the steps to register and authenticate the AML workspace mentioned in the earlier part of the document are run successfully then I think this should work.