Skip to content

Commit af35d27

Browse files
authored
Removing step to archive anonymous model on triton deployment (Azure#1997)
* Remove archiving model step No need to archive an anonymous model registered by the system. Eventually, this action will trigger an error given it is a stage transition not allowed. * Removing archive model step No need to archive an anonymous model registered by the system. Eventually, this action will trigger an error given it is a stage transition not allowed. * Update online-endpoints-triton-cc.ipynb * Update online-endpoints-triton.ipynb
1 parent 982f258 commit af35d27

File tree

2 files changed

+2
-74
lines changed

2 files changed

+2
-74
lines changed

sdk/python/endpoints/online/custom-container/triton/online-endpoints-triton-cc.ipynb

+1-37
Original file line numberDiff line numberDiff line change
@@ -535,27 +535,7 @@
535535
"cell_type": "markdown",
536536
"metadata": {},
537537
"source": [
538-
"### 7.1 Get model name and version"
539-
]
540-
},
541-
{
542-
"cell_type": "code",
543-
"execution_count": null,
544-
"metadata": {},
545-
"outputs": [],
546-
"source": [
547-
"deployment = ml_client.online_deployments.get(name=\"blue\", endpoint_name=endpoint_name)\n",
548-
"\n",
549-
"model_uri = deployment.model.split(\"/\")\n",
550-
"model_name = model_uri[-3]\n",
551-
"model_version = model_uri[-1]"
552-
]
553-
},
554-
{
555-
"cell_type": "markdown",
556-
"metadata": {},
557-
"source": [
558-
"### 7.2 Delete the endpoint"
538+
"### 7.1 Delete the endpoint and underlying deployment"
559539
]
560540
},
561541
{
@@ -568,22 +548,6 @@
568548
"source": [
569549
"ml_client.online_endpoints.begin_delete(name=endpoint_name)"
570550
]
571-
},
572-
{
573-
"cell_type": "markdown",
574-
"metadata": {},
575-
"source": [
576-
"### 7.3 Archive the model"
577-
]
578-
},
579-
{
580-
"cell_type": "code",
581-
"execution_count": null,
582-
"metadata": {},
583-
"outputs": [],
584-
"source": [
585-
"ml_client.models.archive(name=model_name, version=model_version)"
586-
]
587551
}
588552
],
589553
"metadata": {

sdk/python/endpoints/online/triton/single-model/online-endpoints-triton.ipynb

+1-37
Original file line numberDiff line numberDiff line change
@@ -422,27 +422,7 @@
422422
"cell_type": "markdown",
423423
"metadata": {},
424424
"source": [
425-
"### 6.1 Get model name and version"
426-
]
427-
},
428-
{
429-
"cell_type": "code",
430-
"execution_count": null,
431-
"metadata": {},
432-
"outputs": [],
433-
"source": [
434-
"deployment = ml_client.online_deployments.get(name=\"blue\", endpoint_name=endpoint_name)\n",
435-
"\n",
436-
"model_uri = deployment.model.split(\"/\")\n",
437-
"model_name = model_uri[-3]\n",
438-
"model_version = model_uri[-1]"
439-
]
440-
},
441-
{
442-
"cell_type": "markdown",
443-
"metadata": {},
444-
"source": [
445-
"### 6.2 Delete the endpoint"
425+
"### 6.1 Delete the endpoint and underlying deployment"
446426
]
447427
},
448428
{
@@ -455,22 +435,6 @@
455435
"source": [
456436
"ml_client.online_endpoints.begin_delete(name=endpoint_name)"
457437
]
458-
},
459-
{
460-
"cell_type": "markdown",
461-
"metadata": {},
462-
"source": [
463-
"### 6.3 Archive the model"
464-
]
465-
},
466-
{
467-
"cell_type": "code",
468-
"execution_count": null,
469-
"metadata": {},
470-
"outputs": [],
471-
"source": [
472-
"ml_client.models.archive(name=model_name, version=model_version)"
473-
]
474438
}
475439
],
476440
"metadata": {

0 commit comments

Comments
 (0)