Skip to content

Commit 6f7f143

Browse files
committed
update to wait for deployments
1 parent 575400f commit 6f7f143

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

Labs/11/Deploy to batch endpoint.ipynb

+11
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,7 @@
218218
]
219219
},
220220
{
221+
"attachments": {},
221222
"cell_type": "markdown",
222223
"metadata": {
223224
"nteract": {
@@ -227,6 +228,9 @@
227228
}
228229
},
229230
"source": [
231+
"> **IMPORTANT!**\n",
232+
"> Wait until the endpoint is created before continuing! A green notification should appear in the studio. \n",
233+
"\n",
230234
"## Create the deployment\n",
231235
"\n",
232236
"A deployment is a set of resources required for hosting the model that does the actual inferencing. We will create a deployment for our endpoint using the `BatchDeployment` class. \n",
@@ -294,9 +298,13 @@
294298
]
295299
},
296300
{
301+
"attachments": {},
297302
"cell_type": "markdown",
298303
"metadata": {},
299304
"source": [
305+
"> **IMPORTANT!**\n",
306+
"> Wait until the deployment is completed before continuing! A green notification should appear in the studio. \n",
307+
"\n",
300308
"You can deploy multiple models to an endpoint. You can set the default deployment to specify which model should be used by default when calling a batch endpoint."
301309
]
302310
},
@@ -330,9 +338,12 @@
330338
]
331339
},
332340
{
341+
"attachments": {},
333342
"cell_type": "markdown",
334343
"metadata": {},
335344
"source": [
345+
"> **IMPORTANT!** Wait until the default deployment is set before continuing! A green notification should appear in the studio. \n",
346+
"\n",
336347
"## Prepare the data for batch predictions\n",
337348
"\n",
338349
"In the `data` folder you'll find CSV files with unlabeled data. You'll create a data asset that points to the files in the `data` folder, which you'll use as input for the batch job."

Labs/11/Deploy to online endpoint.ipynb

+9
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@
176176
]
177177
},
178178
{
179+
"attachments": {},
179180
"cell_type": "markdown",
180181
"metadata": {
181182
"nteract": {
@@ -185,6 +186,8 @@
185186
}
186187
},
187188
"source": [
189+
"> **IMPORTANT!** Wait until the endpoint is created successfully before continuing! A green notification should appear in the studio. \n",
190+
"\n",
188191
"## Configure the deployment\n",
189192
"\n",
190193
"You can deploy multiple models to an endpoint. This is mostly useful when you want to update the deployed model while keeping the current model in production. You'll need to configure the deployment to specify which model needs to be deployed to an endpoint. In the following cell, you'll refer to the model trained and stored in the local `model` folder (stored in the same folder as this notebook). Note that since you're working with an MLflow model, you don't need to specify the environment or scoring script.\n",
@@ -274,11 +277,14 @@
274277
]
275278
},
276279
{
280+
"attachments": {},
277281
"cell_type": "markdown",
278282
"metadata": {},
279283
"source": [
280284
"The deployment of the model may take 10-15 minutes. While waiting for the model to be deployed, you can learn more about [managed endpoints in this video](https://www.youtube.com/watch?v=SxFGw_OBxNM&ab_channel=MicrosoftDeveloper).\n",
281285
"\n",
286+
"> **IMPORTANT!** Wait until the deployment is completed before continuing! A green notification should appear in the studio. \n",
287+
"\n",
282288
"Since you only have one model deployed to the endpoint, you want this deployment to take 100% of the traffic. If you deploy multiple models to the endpoint, you could use the same approach to distribute traffic across the deployed models."
283289
]
284290
},
@@ -310,6 +316,7 @@
310316
]
311317
},
312318
{
319+
"attachments": {},
313320
"cell_type": "markdown",
314321
"metadata": {
315322
"nteract": {
@@ -319,6 +326,8 @@
319326
}
320327
},
321328
"source": [
329+
"> **IMPORTANT!** Wait until the blue deployment is configured before continuing! A green notification should appear in the studio. \n",
330+
"\n",
322331
"## Test the deployment\n",
323332
"\n",
324333
"Let's test the deployed model by invoking the endpoint. A JSON file with sample data is used as input. The trained model predicts whether a patient has diabetes or not, based on medical data like age, BMI, and the number of pregnancies. A `[0]` indicates a patient doesn't have diabetes. A `[1]` means a patient does have diabetes."

0 commit comments

Comments
 (0)