Skip to content

Commit 4b7afe9

Browse files
authored
Merge pull request #88342 from jpe316/patch-7
Update how-to-deploy-and-where.md
2 parents e8f57b5 + d4a8215 commit 4b7afe9

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

articles/machine-learning/service/how-to-deploy-and-where.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -801,6 +801,19 @@ For more sample projects and examples, see these sample repos in GitHub:
801801
* [Microsoft/MLOps](https://github.com/Microsoft/MLOps)
802802
* [Microsoft/MLOpsPython](https://github.com/microsoft/MLOpsPython)
803803

804+
## Download a model
805+
If you want to download your model to use it in your own execution environment, you can do so with the following SDK / CLI commands:
806+
807+
SDK:
808+
```python
809+
model_path = Model(ws,'mymodel').download()
810+
```
811+
812+
CLI:
813+
```azurecli-interactive
814+
az ml model download --model-id mymodel:1 --target-dir model_folder
815+
```
816+
804817
## Package models
805818

806819
In some cases, you might want to create a Docker image without deploying the model (if, for example, you plan to [deploy to Azure App Service](how-to-deploy-app-service.md)). Or you might want to download the image and run it on a local Docker installation. You might even want to download the files used to build the image, inspect them, modify them, and build the image manually.

0 commit comments

Comments
 (0)