Skip to content

Commit

Permalink
Removing step to archive anonymous model on triton deployment (#1997)
Browse files Browse the repository at this point in the history
* 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
  • Loading branch information
hugoaponte committed Jan 10, 2023
1 parent 982f258 commit af35d27
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 74 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,27 +535,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### 7.1 Get model name and version"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"deployment = ml_client.online_deployments.get(name=\"blue\", endpoint_name=endpoint_name)\n",
"\n",
"model_uri = deployment.model.split(\"/\")\n",
"model_name = model_uri[-3]\n",
"model_version = model_uri[-1]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 7.2 Delete the endpoint"
"### 7.1 Delete the endpoint and underlying deployment"
]
},
{
Expand All @@ -568,22 +548,6 @@
"source": [
"ml_client.online_endpoints.begin_delete(name=endpoint_name)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 7.3 Archive the model"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"ml_client.models.archive(name=model_name, version=model_version)"
]
}
],
"metadata": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -422,27 +422,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"### 6.1 Get model name and version"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"deployment = ml_client.online_deployments.get(name=\"blue\", endpoint_name=endpoint_name)\n",
"\n",
"model_uri = deployment.model.split(\"/\")\n",
"model_name = model_uri[-3]\n",
"model_version = model_uri[-1]"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 6.2 Delete the endpoint"
"### 6.1 Delete the endpoint and underlying deployment"
]
},
{
Expand All @@ -455,22 +435,6 @@
"source": [
"ml_client.online_endpoints.begin_delete(name=endpoint_name)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"### 6.3 Archive the model"
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"ml_client.models.archive(name=model_name, version=model_version)"
]
}
],
"metadata": {
Expand Down

0 comments on commit af35d27

Please sign in to comment.