Skip to content

Commit

Permalink
Updating the candidate for SDK - 0.1.0b8 (Azure#1706)
Browse files Browse the repository at this point in the history
* Updating the candidate for SDK - 0.1.0b8

* Replacing path with source for load method

* Updating load components parameter for more notebooks

* Update sdk target

* Update notebooks to wait for result from LROPoller

* Fix malformed notebook

* Update CLI version

* Get result from LROPoller from job-schedule notebook

* Update sdk release candidate

* Remove extraneous result from schedules notebook

* Updating the configurations of notebook for working_with_mltable

* Wait for compute operations

* Get result from LRO poller in online-endpoints-safe-rollout

* Update SDK version

* Update SDK Version

Co-authored-by: Kevin Destin <[email protected]>
  • Loading branch information
harneetvirk and kdestin authored Oct 10, 2022
1 parent 57c867d commit 112f898
Show file tree
Hide file tree
Showing 35 changed files with 114 additions and 134 deletions.
2 changes: 1 addition & 1 deletion cli/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# az extension remove -n ml

# Use a daily build
az extension add --source https://azuremlsdktestpypi.blob.core.windows.net/wheels/sdk-cli-v2-public/ml-2.8.0-py3-none-any.whl --yes
az extension add --source https://azuremlsdktestpypi.blob.core.windows.net/wheels/sdk-cli-v2-public/ml-2.9.0-py3-none-any.whl --yes

# <set_variables>
GROUP="azureml-examples"
Expand Down
2 changes: 1 addition & 1 deletion sdk/python/assets/component/component.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@
"outputs": [],
"source": [
"parent_dir = \".\"\n",
"train = load_component(path=parent_dir + \"/train.yml\")\n",
"train = load_component(source=parent_dir + \"/train.yml\")\n",
"print(train)"
]
},
Expand Down
6 changes: 3 additions & 3 deletions sdk/python/assets/data/working_with_mltable.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -40,9 +40,9 @@
"from azure.identity import DefaultAzureCredential\n",
"\n",
"# enter details of your AML workspace\n",
"subscription_id = \"<SUBSCRIPTION ID>\"\n",
"resource_group = \"<RESOURCE GROUP NAME>\"\n",
"workspace = \"<WORKSPACE NAME>\"\n",
"subscription_id = \"<SUBSCRIPTION_ID>\"\n",
"resource_group = \"<RESOURCE_GROUP>\"\n",
"workspace = \"<AML_WORKSPACE_NAME>\"\n",
"\n",
"# get a handle to the workspace\n",
"ml_client = MLClient(\n",
Expand Down
4 changes: 2 additions & 2 deletions sdk/python/endpoints/batch/mnist-nonmlflow.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -234,7 +234,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(deployment)"
"ml_client.begin_create_or_update(deployment).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -139,9 +139,9 @@
" \"resource_id\": \"/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.ContainerService/managedClusters/<CLUSTER_NAME>\"\n",
" },\n",
"]\n",
"k8s_compute = load_compute(path=None, params_override=compute_params)\n",
"k8s_compute = load_compute(source=None, params_override=compute_params)\n",
"\n",
"ml_client.begin_create_or_update(k8s_compute)"
"ml_client.begin_create_or_update(k8s_compute).result()"
]
},
{
Expand Down Expand Up @@ -204,7 +204,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -273,7 +273,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(blue_deployment)"
"ml_client.begin_create_or_update(blue_deployment).result()"
]
},
{
Expand All @@ -284,7 +284,7 @@
"source": [
"# blue deployment takes 100 traffic\n",
"endpoint.traffic = {\"blue\": 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -338,7 +338,7 @@
"blue_deployment.instance_count = 2\n",
"\n",
"#!!!bug https://msdata.visualstudio.com/Vienna/_workitems/edit/1740434\n",
"ml_client.online_deployments.begin_create_or_update(blue_deployment)"
"ml_client.online_deployments.begin_create_or_update(blue_deployment).result()"
]
},
{
Expand Down Expand Up @@ -404,7 +404,7 @@
"outputs": [],
"source": [
"# use MLClient to create green deployment\n",
"ml_client.begin_create_or_update(green_deployment)"
"ml_client.begin_create_or_update(green_deployment).result()"
]
},
{
Expand Down Expand Up @@ -443,7 +443,7 @@
"outputs": [],
"source": [
"endpoint.traffic = {\"blue\": 90, \"green\": 10}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand All @@ -468,7 +468,7 @@
"outputs": [],
"source": [
"endpoint.traffic = {\"blue\": 0, \"green\": 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,10 +301,10 @@
" \"resource_id\": \"/subscriptions/<SUBSCRIPTION_ID>/resourceGroups/<RESOURCE_GROUP>/providers/Microsoft.ContainerService/managedClusters/<CLUSTER_NAME>\"\n",
" },\n",
"]\n",
"k8s_compute = load_compute(path=None, params_override=compute_params)\n",
"k8s_compute = load_compute(source=None, params_override=compute_params)\n",
"\n",
"# !!!bug https://msdata.visualstudio.com/Vienna/_workitems/edit/1740311\n",
"ml_client.begin_create_or_update(k8s_compute)"
"ml_client.begin_create_or_update(k8s_compute).result()"
]
},
{
Expand Down Expand Up @@ -358,7 +358,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -409,7 +409,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(blue_deployment)"
"ml_client.begin_create_or_update(blue_deployment).result()"
]
},
{
Expand All @@ -420,7 +420,7 @@
"source": [
"# blue deployment takes 100 traffic\n",
"endpoint.traffic = {\"blue\": 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -341,7 +341,7 @@
},
"outputs": [],
"source": [
"ml_client.online_endpoints.begin_create_or_update(endpoint)"
"ml_client.online_endpoints.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -494,7 +494,7 @@
},
"outputs": [],
"source": [
"ml_client.online_deployments.begin_create_or_update(deployment)"
"ml_client.online_deployments.begin_create_or_update(deployment).result()"
]
},
{
Expand Down Expand Up @@ -552,7 +552,7 @@
"outputs": [],
"source": [
"endpoint.traffic = {str(deployment.name): 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -417,7 +417,7 @@
" ),\n",
")\n",
"\n",
"ml_client.online_endpoints.begin_create_or_update(endpoint)"
"ml_client.online_endpoints.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -674,7 +674,7 @@
},
"outputs": [],
"source": [
"ml_client.online_deployments.begin_create_or_update(deployment)"
"ml_client.online_deployments.begin_create_or_update(deployment).result()"
]
},
{
Expand Down Expand Up @@ -730,7 +730,7 @@
"outputs": [],
"source": [
"endpoint.traffic = {str(deployment.name): 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@
"source": [
"# blue deployment takes 100 traffic\n",
"endpoint.traffic = {\"blue\": 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -588,7 +588,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -695,7 +695,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.online_deployments.begin_create_or_update(deployment)"
"ml_client.online_deployments.begin_create_or_update(deployment).result()"
]
},
{
Expand All @@ -708,7 +708,7 @@
"source": [
"# bankmarketing deployment to take 100% traffic\n",
"endpoint.traffic = {\"bankmarketing-deploy\": 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -375,7 +375,7 @@
" min_instances=0,\n",
" max_instances=4,\n",
" )\n",
" ml_client.begin_create_or_update(compute_config)"
" ml_client.begin_create_or_update(compute_config).result()"
]
},
{
Expand Down Expand Up @@ -882,7 +882,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -975,7 +975,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.online_deployments.begin_create_or_update(deployment)"
"ml_client.online_deployments.begin_create_or_update(deployment).result()"
]
},
{
Expand All @@ -986,7 +986,7 @@
"source": [
"# ic mc fridge items deployment to take 100% traffic\n",
"endpoint.traffic = {\"ic-mc-fridge-items-mlflow-deploy\": 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -364,7 +364,7 @@
" min_instances=0,\n",
" max_instances=4,\n",
" )\n",
" ml_client.begin_create_or_update(compute_config)"
" ml_client.begin_create_or_update(compute_config).result()"
]
},
{
Expand Down Expand Up @@ -867,7 +867,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -960,7 +960,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.online_deployments.begin_create_or_update(deployment)"
"ml_client.online_deployments.begin_create_or_update(deployment).result()"
]
},
{
Expand All @@ -971,7 +971,7 @@
"source": [
"# ic ml fridge items deployment to take 100% traffic\n",
"endpoint.traffic = {\"ic-ml-fridge-items-mlflow-dpl\": 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -333,7 +333,7 @@
" min_instances=0,\n",
" max_instances=4,\n",
" )\n",
" ml_client.begin_create_or_update(compute_config)"
" ml_client.begin_create_or_update(compute_config).result()"
]
},
{
Expand Down Expand Up @@ -842,7 +842,7 @@
},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -929,7 +929,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.online_deployments.begin_create_or_update(deployment)"
"ml_client.online_deployments.begin_create_or_update(deployment).result()"
]
},
{
Expand All @@ -940,7 +940,7 @@
"source": [
"# is fridge items deployment to take 100% traffic\n",
"endpoint.traffic = {\"is-fridge-items-mlflow-dpl\": 100}\n",
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,7 @@
" min_instances=0,\n",
" max_instances=4,\n",
" )\n",
" ml_client.begin_create_or_update(compute_config)"
" ml_client.begin_create_or_update(compute_config).result()"
]
},
{
Expand Down Expand Up @@ -834,7 +834,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(endpoint)"
"ml_client.begin_create_or_update(endpoint).result()"
]
},
{
Expand Down Expand Up @@ -871,7 +871,7 @@
" min_instances=0,\n",
" max_instances=5,\n",
" )\n",
" ml_client.begin_create_or_update(compute_config)"
" ml_client.begin_create_or_update(compute_config).result()"
]
},
{
Expand Down Expand Up @@ -949,7 +949,7 @@
"metadata": {},
"outputs": [],
"source": [
"ml_client.begin_create_or_update(deployment)"
"ml_client.begin_create_or_update(deployment).result()"
]
},
{
Expand Down
Loading

0 comments on commit 112f898

Please sign in to comment.