I think you are mentioning how to get the latest version of model and download the model in az ml.
There are 2 steps, one is list the model to get the model ID you want, two is download the model.
az ml model list
List models in the workspace.
az ml model list [--dataset-id]
[--latest]
[--model-name]
[--path]
[--property]
[--resource-group]
[--run-id]
[--subscription-id]
[--tag]
[--workspace-name]
[-v]
Optional Parameters
--dataset-id
If provided, will only show models with the specified dataset ID.
--latest -l
If provided, will only return models with the latest version.
--model-name -n
An optional model name to filter the list by.
--path
Path to a project folder. Default: current directory.
--property
Key/value property to add (e.g. key=value ). Multiple properties can be specified with multiple --property options.
--resource-group -g
Resource group corresponding to the provided workspace.
--run-id
If provided, will only show models with the specified Run ID.
--subscription-id
Specifies the subscription Id.
--tag
Key/value tag to add (e.g. key=value ). Multiple tags can be specified with multiple --tag options.
--workspace-name -w
Name of the workspace containing models to list.
-v
Verbosity flag.
az ml model download
Download a model from the workspace.
az ml model download --model-id
--target-dir
[--overwrite]
[--path]
[--resource-group]
[--subscription-id]
[--workspace-name]
[-v]
Required Parameters
--model-id -i
ID of model.
--target-dir -t
Target directory to download the model file to.
Optional Parameters
--overwrite
Overwrite if the same name file exists in target directory.
--path
Path to a project folder. Default: current directory.
--resource-group -g
Resource group corresponding to the provided workspace.
--subscription-id
Specifies the subscription Id.
--workspace-name -w
Name of the workspace containing model to show.
-v
Verbosity flag.
Hope this helps!
Please kindly accept the answer if you feel helpful, thank you!
Regards,
Yutong