Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pin mlflow image and conda file and disable dynamic package install #3456

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion cli/deploy-managed-online-endpoint-ncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ model_archive=$(az ml model archive -n $AML_LIGHTGBM_MODEL_NAME --version 1 || t


# <create_sklearn_deployment>
az ml online-deployment create --name sklearn-deployment --endpoint $ENDPOINT_NAME -f endpoints/online/ncd/sklearn-deployment.yaml --all-traffic
az ml online-deployment create --name sklearn-deployment --endpoint $ENDPOINT_NAME -f endpoints/online/ncd/sklearn-deployment-with-image.yaml --all-traffic
# </create_sklearn_deployment>

deploy_status=`az ml online-deployment show --name sklearn-deployment --endpoint $ENDPOINT_NAME --query "provisioning_state" -o tsv`
Expand Down
15 changes: 15 additions & 0 deletions cli/endpoints/online/ncd/sklearn-deployment-with-image.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
$schema: https://azuremlschemas.azureedge.net/latest/managedOnlineDeployment.schema.json
name: sklearn-image
endpoint_name: my-endpoint
model:
name: mir-sample-sklearn-mlflow-model
version: 1
path: sklearn-diabetes/model
type: mlflow_model
environment:
image: mcr.microsoft.com/azureml/mlflow-ubuntu20.04-py38-cpu-inference
conda_file: sklearn-diabetes/environment/conda.yaml
environment_variables:
MLFLOW_MODEL_FOLDER: model
instance_type: Standard_DS3_v2
instance_count: 1
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,6 @@ dependencies:
- cloudpickle==2.2.1
- psutil==5.9.4
- pandas==2.0.0
- numpy==1.26.4
- azureml-inference-server-http
name: mlflow-env
Loading