Skip to content

Commit 75bc23f

Browse files
2 parents 8f5ad4c + bbc8bcd commit 75bc23f

17 files changed

Lines changed: 768 additions & 286 deletions

.github/CODEOWNERS

Lines changed: 223 additions & 224 deletions
Large diffs are not rendered by default.

.github/workflows/sdk-endpoints-online-mlflow-online-endpoints-deploy-mlflow-model-with-script.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
bash "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh" generate_workspace_config "../../.azureml/config.json";
8585
bash "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh" replace_template_values "online-endpoints-deploy-mlflow-model-with-script.ipynb";
8686
[ -f "../../.azureml/config" ] && cat "../../.azureml/config";
87-
papermill -k python online-endpoints-deploy-mlflow-model-with-script.ipynb online-endpoints-deploy-mlflow-model-with-script.output.ipynb
87+
papermill -k python online-endpoints-deploy-mlflow-model-with-script.ipynb online-endpoints-deploy-mlflow-model-with-script.output.ipynb --log-output
8888
working-directory: sdk/python/endpoints/online/mlflow
8989
- name: upload notebook's working folder as an artifact
9090
if: ${{ always() }}

.github/workflows/sdk-endpoints-online-mlflow-online-endpoints-deploy-mlflow-model.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
bash "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh" generate_workspace_config "../../.azureml/config.json";
8585
bash "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh" replace_template_values "online-endpoints-deploy-mlflow-model.ipynb";
8686
[ -f "../../.azureml/config" ] && cat "../../.azureml/config";
87-
papermill -k python online-endpoints-deploy-mlflow-model.ipynb online-endpoints-deploy-mlflow-model.output.ipynb
87+
papermill -k python online-endpoints-deploy-mlflow-model.ipynb online-endpoints-deploy-mlflow-model.output.ipynb --log-output
8888
working-directory: sdk/python/endpoints/online/mlflow
8989
- name: upload notebook's working folder as an artifact
9090
if: ${{ always() }}

.github/workflows/sdk-endpoints-online-triton-single-model-online-endpoints-triton.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ jobs:
8484
bash "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh" generate_workspace_config "../../.azureml/config.json";
8585
bash "${{ github.workspace }}/infra/bootstrapping/sdk_helpers.sh" replace_template_values "online-endpoints-triton.ipynb";
8686
[ -f "../../.azureml/config" ] && cat "../../.azureml/config";
87-
papermill -k python online-endpoints-triton.ipynb online-endpoints-triton.output.ipynb
87+
papermill -k python online-endpoints-triton.ipynb online-endpoints-triton.output.ipynb --log-output
8888
working-directory: sdk/python/endpoints/online/triton/single-model
8989
- name: upload notebook's working folder as an artifact
9090
if: ${{ always() }}

.github/workflows/tutorials-get-started-notebooks-explore-data.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ concurrency:
2626
cancel-in-progress: true
2727
jobs:
2828
build:
29-
runs-on: ubuntu-20.04
29+
runs-on: ubuntu-latest
3030
steps:
3131
- name: check out repo
3232
uses: actions/checkout@v2

cli/deploy-managed-online-endpoint-ncd.sh

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ else
2929
fi
3030

3131
# cleanup of existing models
32-
model_archive=$(az ml model archive -n $AML_SKLEARN_MODEL_NAME --version 1 || true)
33-
model_archive=$(az ml model archive -n $AML_LIGHTGBM_MODEL_NAME --version 1 || true)
32+
model_archive=$(az ml model archive -n $AML_SKLEARN_MODEL_NAME --version 2 || true)
33+
model_archive=$(az ml model archive -n $AML_LIGHTGBM_MODEL_NAME --version 3 || true)
3434

3535

3636
# <create_sklearn_deployment>
@@ -70,8 +70,8 @@ az ml online-endpoint invoke --name $ENDPOINT_NAME --deployment lightgbm-deploym
7070
# </test_lightgbm_deployment>
7171

7272
# cleanup of models
73-
model_archive=$(az ml model archive -n $AML_SKLEARN_MODEL_NAME --version 1 || true)
74-
model_archive=$(az ml model archive -n $AML_LIGHTGBM_MODEL_NAME --version 1 || true)
73+
model_archive=$(az ml model archive -n $AML_SKLEARN_MODEL_NAME --version 2 || true)
74+
model_archive=$(az ml model archive -n $AML_LIGHTGBM_MODEL_NAME --version 3 || true)
7575

7676
# <delete_endpoint>
7777
az ml online-endpoint delete --name $ENDPOINT_NAME --yes

cli/endpoints/online/ncd/lightgbm-deployment.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: lightgbm-deployment
33
endpoint_name: my-endpoint
44
model:
55
name: mir-sample-lightgbm-ncd-model
6-
version: 2
6+
version: 3
77
path: lightgbm-iris/model
88
type: mlflow_model
99
instance_type: Standard_DS3_v2

cli/endpoints/online/ncd/lightgbm-iris/model/conda.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ dependencies:
88
- lightgbm==3.3.5
99
- pandas==2.0.0
1010
- psutil==5.9.4
11-
- typing-extensions==4.5.0
11+
- typing-extensions==4.1.1
1212
- numpy==1.26.4
13+
- azureml-inference-server-http
1314
name: mlflow-env

sdk/python/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,9 @@ Test Status is for branch - **_main_**
7575
|endpoints|online|[online-endpoints-deploy-mlflow-model-with-script](endpoints/online/mlflow/online-endpoints-deploy-mlflow-model-with-script.ipynb)|Deploy an mlflow model to an online endpoint. This will be a no-code-deployment. It doesn't require scoring script and environment.|[![online-endpoints-deploy-mlflow-model-with-script](https://github.com/Azure/azureml-examples/actions/workflows/sdk-endpoints-online-mlflow-online-endpoints-deploy-mlflow-model-with-script.yml/badge.svg?branch=main)](https://github.com/Azure/azureml-examples/actions/workflows/sdk-endpoints-online-mlflow-online-endpoints-deploy-mlflow-model-with-script.yml)|
7676
|endpoints|online|[online-endpoints-deploy-mlflow-model](endpoints/online/mlflow/online-endpoints-deploy-mlflow-model.ipynb)|Deploy an mlflow model to an online endpoint. This will be a no-code-deployment. It doesn't require scoring script and environment.|[![online-endpoints-deploy-mlflow-model](https://github.com/Azure/azureml-examples/actions/workflows/sdk-endpoints-online-mlflow-online-endpoints-deploy-mlflow-model.yml/badge.svg?branch=main)](https://github.com/Azure/azureml-examples/actions/workflows/sdk-endpoints-online-mlflow-online-endpoints-deploy-mlflow-model.yml)|
7777
|endpoints|online|[online-endpoints-triton](endpoints/online/triton/single-model/online-endpoints-triton.ipynb)|Deploy a custom container as an online endpoint. Use web servers other than the default Python Flask server used by Azure ML without losing the benefits of Azure ML's built-in monitoring, scaling, alerting, and authentication.|[![online-endpoints-triton](https://github.com/Azure/azureml-examples/actions/workflows/sdk-endpoints-online-triton-single-model-online-endpoints-triton.yml/badge.svg?branch=main)](https://github.com/Azure/azureml-examples/actions/workflows/sdk-endpoints-online-triton-single-model-online-endpoints-triton.yml)|
78+
|environments|environment|[environment](assets/environment/environment.ipynb)|Environments in AML SDK v2 ensure reproducibility and consistency by encapsulating dependencies, packages, and runtime settings for training and inference workflows.| NA |
79+
|environments|environment with private package - conda file|[environment-with-private-package-conda-spec](assets/environment/environment-with-private-packages/environment-with-private-package-conda-spec.ipynb)|Environments in AML SDK v2 ensure reproducibility and consistency by encapsulating dependencies, packages, and runtime settings for training and inference workflows. This example shows how to use private python packages with environments using conda file.| NA |
80+
|environments|environment with private packages - docker image|[environment-with-private-package-docker-image](assets/environment/environment-with-private-packages/environment-with-private-package-docker-image.ipynb)|Environments in AML SDK v2 ensure reproducibility and consistency by encapsulating dependencies, packages, and runtime settings for training and inference workflows.This example shows how to use private python packages with environments using docker image.| NA |
7881
|featurestore_sample|automation-test|[test_featurestore_cli_samples](featurestore_sample/automation-test/test_featurestore_cli_samples.ipynb)|*no description*|[![test_featurestore_cli_samples](https://github.com/Azure/azureml-examples/actions/workflows/sdk-featurestore_sample-automation-test-test_featurestore_cli_samples.yml/badge.svg?branch=main)](https://github.com/Azure/azureml-examples/actions/workflows/sdk-featurestore_sample-automation-test-test_featurestore_cli_samples.yml)|
7982
|featurestore_sample|automation-test|[test_featurestore_sdk_samples](featurestore_sample/automation-test/test_featurestore_sdk_samples.ipynb)|*no description*|[![test_featurestore_sdk_samples](https://github.com/Azure/azureml-examples/actions/workflows/sdk-featurestore_sample-automation-test-test_featurestore_sdk_samples.yml/badge.svg?branch=main)](https://github.com/Azure/azureml-examples/actions/workflows/sdk-featurestore_sample-automation-test-test_featurestore_sdk_samples.yml)|
8083
|featurestore_sample|automation-test|[test_featurestore_vnet_samples](featurestore_sample/automation-test/test_featurestore_vnet_samples.ipynb)|*no description*|[![test_featurestore_vnet_samples](https://github.com/Azure/azureml-examples/actions/workflows/sdk-featurestore_sample-automation-test-test_featurestore_vnet_samples.yml/badge.svg?branch=main)](https://github.com/Azure/azureml-examples/actions/workflows/sdk-featurestore_sample-automation-test-test_featurestore_vnet_samples.yml)|

sdk/python/assets/environment/environment-with-private-package.ipynb

Lines changed: 5 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
"cell_type": "code",
3838
"execution_count": null,
3939
"metadata": {
40-
"msdoc": "how-to-manage-environments-v2.md",
4140
"name": "libraries"
4241
},
4342
"outputs": [],
@@ -61,7 +60,6 @@
6160
"cell_type": "code",
6261
"execution_count": null,
6362
"metadata": {
64-
"msdoc": "how-to-manage-environments-v2.md",
6563
"name": "workspace_details"
6664
},
6765
"outputs": [],
@@ -76,7 +74,6 @@
7674
"cell_type": "code",
7775
"execution_count": null,
7876
"metadata": {
79-
"msdoc": "how-to-manage-environments-v2.md",
8077
"name": "get_workspace"
8178
},
8279
"outputs": [],
@@ -141,10 +138,7 @@
141138
{
142139
"cell_type": "code",
143140
"execution_count": null,
144-
"metadata": {
145-
"msdoc": "how-to-manage-environments-v2.md",
146-
"name": "create_from_docker_image"
147-
},
141+
"metadata": {},
148142
"outputs": [],
149143
"source": [
150144
"env = Environment(\n",
@@ -154,14 +148,9 @@
154148
" \"dependencies\": [\n",
155149
" \"python=3.8\", # Specify the Python version\n",
156150
" \"pip\",\n",
157-
" {\n",
158-
" \"pip\": [\n",
159-
" private_wheel_1,\n",
160-
" private_wheel_2\n",
161-
" ]\n",
162-
" }\n",
151+
" {\"pip\": [private_wheel_1, private_wheel_2]},\n",
163152
" ]\n",
164-
" }\n",
153+
" },\n",
165154
")\n",
166155
"\n",
167156
"# Register the environment\n",
@@ -172,7 +161,7 @@
172161
"cell_type": "markdown",
173162
"metadata": {},
174163
"source": [
175-
"# 3. Define a job within the custom ebvironment"
164+
"# 3. Define a job within the custom environment"
176165
]
177166
},
178167
{
@@ -189,7 +178,7 @@
189178
" code=\"./my-script-folder\", # Directory containing the script\n",
190179
" environment=env, # The environment with private wheels\n",
191180
" compute=\"my-compute\", # Compute target to use\n",
192-
" environment_variables={\"ENV_VAR\": \"value\"} # Optional: environment variables\n",
181+
" environment_variables={\"ENV_VAR\": \"value\"}, # Optional: environment variables\n",
193182
")\n",
194183
"\n",
195184
"# Submit the job\n",

0 commit comments

Comments
 (0)