How to download the trained models from Azure machine studio?

11.1k views Asked by At

I have created two models in azure ml studio and i want to download those models.

Is it possible to download train and score models from azure ml studio?

4

There are 4 answers

4
andyabel On BEST ANSWER

Models can be trained, scored, saved, and run in AzureML studio, but can't downloaded to your local machine. There's no way to do anything with a model outside of AzureML.

0
Mauro Bellone On

From this link: https://learn.microsoft.com/en-us/azure/machine-learning/how-to-train-pytorch

"You can also download a local copy of the model by using the Run object. In the training script pytorch_train.py, a PyTorch save object persists the model to a local folder (local to the compute target). You can use the Run object to download a copy."

# Create a model folder in the current directory
os.makedirs('./model', exist_ok=True)

# Download the model from run history
run.download_file(name='outputs/model.pt',
output_file_path='./model/model.pt')

This is available for different frameworks: pytorch, keras etc.

0
shafee ul kabir Fahim On
az ml model download --model-id
                     --target-dir
                     [--overwrite]
                     [--path]
                     [--resource-group]
                     [--subscription-id]
                     [--workspace-name]
                     [-v]

you gotta install azure-cli though

6
Ahmet On

It is actually possible. First, transform your experiment as a retraining web-service, then download (right-click on the module) the output of the web-service module that is connected to the "train model" module. Sample 5: Train, Test, Evaluate for Binary Classification: Adult Dataset