Search code examples
pythonazure-machine-learning-serviceazureml-python-sdkazuremlsdk

can you download azureml models registred in a workspace to a local folder?


I want to download all model pickle files which are registered in azureml workspace to a local folder. is this possible? using python only don't want to manually download each pickle file using ui


Solution

  • once you retrieve your model from your workspace you can do the following

    model.download(exist_ok=True)
    

    This is shown in the docs- https://learn.microsoft.com/en-us/python/api/azureml-core/azureml.core.model.model?view=azure-ml-py#azureml-core-model-model-download

    This answer form @Ninja_coder for this question might be helpful- Model.get_model_path(model_name="model") throws an error: Model not found in cache or in root at