Skip to content

components download_model

github-actions[bot] edited this page Nov 29, 2024 · 31 revisions

Download model

download_model

Overview

Downloads a publicly available model

Version: 0.0.30

Tags

Preview

View in Studio: https://ml.azure.com/registries/azureml/components/download_model/version/0.0.30

Inputs

Name Description Type Default Optional Enum
model_source Storage containers from where model will be sourced from. string Huggingface ['AzureBlob', 'GIT', 'Huggingface']
model_id A valid model id for the model source selected. For example you can specify bert-base-uncased for importing HuggingFace bert base uncased model. Please specify the complete URL if GIT or AzureBlob is selected in model_source string
validation_info Path to the validation info file uri_file True
update_existing_model If set to true, will update the existing model. If set to false, will create a new model. boolean False True
token If set use it to access the private models or authenticate the user. For example, user can get the token for HF private model by creating account in Huggingface, accept the condition for models that needs to be downloaded and create access token from browser. For more details please visit - https://huggingface.co/docs/hub/security-tokens string True

Outputs

Name Description Type
model_download_metadata File name to which model download details will be written. File would contain details that could be useful for model registration in forms of model tags and properties uri_file
model_output Path to the dowloaded model uri_folder

Environment

azureml://registries/azureml/environments/model-management/versions/36

Clone this wiki locally