Skip to content

Commit 81cc588

Browse files
Merge pull request #223807 from AbeOmor/patch-69
Replace $RUN_ID with <run-id> to aviod confusion
2 parents 09acf9b + 6fa7274 commit 81cc588

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

articles/machine-learning/how-to-manage-models.md

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -115,10 +115,10 @@ Format:
115115
`runs:/<run-id>/<path-to-model-relative-to-the-root-of-the-artifact-location>`
116116

117117
Example:
118-
`runs:/$RUN_ID/model/`
118+
`runs:/<run-id>/model/`
119119

120120
```cli
121-
az ml model create --name my-model --version 1 --path runs:/$RUN_ID/model/ --type mlflow_model
121+
az ml model create --name my-model --version 1 --path runs:/<run-id>/model/ --type mlflow_model
122122
```
123123

124124
### azureml job
@@ -129,18 +129,18 @@ Format:
129129
`azureml://jobs/<job-name>/outputs/<output-name>/paths/<path-to-model-relative-to-the-named-output-location>`
130130

131131
Examples:
132-
- Default artifact location: `azureml://jobs/$RUN_ID/outputs/artifacts/paths/model/`
133-
* This is equivalent to `runs:/$RUN_ID/model/`.
132+
- Default artifact location: `azureml://jobs/<run-id>/outputs/artifacts/paths/model/`
133+
* This is equivalent to `runs:/<run-id>/model/`.
134134
* *artifacts* is the reserved keyword to refer to the output that represents the default artifact location.
135-
- From a named output directory: `azureml://jobs/$RUN_ID/outputs/trained-model`
135+
- From a named output directory: `azureml://jobs/<run-id>/outputs/trained-model`
136136
- From a specific file or folder path within the named output directory:
137-
* `azureml://jobs/$RUN_ID/outputs/trained-model/paths/cifar.pt`
138-
* `azureml://jobs/$RUN_ID/outputs/checkpoints/paths/model/`
137+
* `azureml://jobs/<run-id>/outputs/trained-model/paths/cifar.pt`
138+
* `azureml://jobs/<run-id>/outputs/checkpoints/paths/model/`
139139

140140
Saving model from a named output:
141141

142142
```cli
143-
az ml model create --name my-model --version 1 --path azureml://jobs/$RUN_ID/outputs/trained-model
143+
az ml model create --name my-model --version 1 --path azureml://jobs/<run-id>/outputs/trained-model
144144
```
145145

146146
For a complete example, see the [CLI reference](/cli/azure/ml/model).
@@ -176,14 +176,14 @@ Format:
176176
`runs:/<run-id>/<path-to-model-relative-to-the-root-of-the-artifact-location>`
177177

178178
Example:
179-
`runs:/$RUN_ID/model/`
179+
`runs:/<run-id>/model/`
180180

181181
```python
182182
from azure.ai.ml.entities import Model
183183
from azure.ai.ml.constants import ModelType
184184

185185
run_model = Model(
186-
path="runs:/$RUN_ID/model/"
186+
path="runs:/<run-id>/model/"
187187
name="run-model-example",
188188
description="Model created from run.",
189189
type=ModelType.MLFLOW
@@ -200,13 +200,13 @@ Format:
200200
`azureml://jobs/<job-name>/outputs/<output-name>/paths/<path-to-model-relative-to-the-named-output-location>`
201201

202202
Examples:
203-
- Default artifact location: `azureml://jobs/$RUN_ID/outputs/artifacts/paths/model/`
204-
* This is equivalent to `runs:/$RUN_ID/model/`.
203+
- Default artifact location: `azureml://jobs/<run-id>/outputs/artifacts/paths/model/`
204+
* This is equivalent to `runs:/<run-id>/model/`.
205205
* *artifacts* is the reserved keyword to refer to the output that represents the default artifact location.
206-
- From a named output directory: `azureml://jobs/$RUN_ID/outputs/trained-model`
206+
- From a named output directory: `azureml://jobs/<run-id>/outputs/trained-model`
207207
- From a specific file or folder path within the named output directory:
208-
* `azureml://jobs/$RUN_ID/outputs/trained-model/paths/cifar.pt`
209-
* `azureml://jobs/$RUN_ID/outputs/checkpoints/paths/model/`
208+
* `azureml://jobs/<run-id>/outputs/trained-model/paths/cifar.pt`
209+
* `azureml://jobs/<run-id>/outputs/checkpoints/paths/model/`
210210

211211
Saving model from a named output:
212212

0 commit comments

Comments
 (0)