Skip to content

Files

Latest commit

 

History

History
56 lines (38 loc) · 2.08 KB

reference-yaml-model.md

File metadata and controls

56 lines (38 loc) · 2.08 KB
title titleSuffix description services ms.service ms.subservice ms.topic ms.custom author ms.author ms.date ms.reviewer
CLI (v2) model YAML schema
Azure Machine Learning
Reference documentation for the CLI (v2) model YAML schema.
machine-learning
machine-learning
core
reference
cliv2, event-tier1-build-2022
Abeomor
osomorog
03/31/2022
nibaccam

CLI (v2) model YAML schema

[!INCLUDE cli v2]

The source JSON schema can be found at https://azuremlschemas.azureedge.net/latest/model.schema.json.

[!INCLUDE schema note]

YAML syntax

Key Type Description Allowed values
$schema string The YAML schema.
name string Required. Name of the model.
version string Version of the model. If omitted, Azure ML will autogenerate a version.
description string Description of the model.
tags object Dictionary of tags for the model.
path string Either a local path to the model file(s), or the URI of a cloud path to the model file(s). This can point to either a file or a directory.
type string Storage format type of the model. Applicable for no-code deployment scenarios. custom_model, mlflow_model, triton_model
flavors object Flavors of the model. Each model storage format type may have one or more supported flavors. Applicable for no-code deployment scenarios.

Remarks

The az ml model command can be used for managing Azure Machine Learning models.

Examples

Examples are available in the examples GitHub repository. Several are shown below.

YAML: local file

:::code language="yaml" source="~/azureml-examples-main/cli/assets/model/local-file.yml":::

YAML: local folder in MLflow format

:::code language="yaml" source="~/azureml-examples-main/cli/assets/model/local-mlflow.yml":::