Reputation: 73
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?
Upvotes: 7
Views: 12826
Reputation: 19
az ml model download --model-id
--target-dir
[--overwrite]
[--path]
[--resource-group]
[--subscription-id]
[--workspace-name]
[-v]
you gotta install azure-cli though
Upvotes: 1
Reputation: 1
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.
Upvotes: 0
Reputation: 812
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.
Upvotes: 2
Reputation: 344
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.
Upvotes: 1