Skip to content

Commit 6497c1e

Browse files
authored
Update how-to-nlp-processing-batch.md
1 parent 28b8edb commit 6497c1e

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

articles/machine-learning/how-to-nlp-processing-batch.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ MODEL_NAME='bart-text-summarization'
118118
az ml model create --name $MODEL_NAME --path "model"
119119
```
120120

121-
# [Python](#tab/sdk)
121+
# [Python](#tab/python)
122122

123123
```python
124124
model_name = 'bart-text-summarization'
@@ -175,7 +175,7 @@ We are going to create a batch endpoint named `text-summarization-batch` where t
175175
176176
:::code language="azurecli" source="~/azureml-examples-main/cli/endpoints/batch/deploy-models/huggingface-text-summarization/deploy-and-run.sh" ID="create_batch_endpoint" :::
177177
178-
# [Python](#tab/sdk)
178+
# [Python](#tab/python)
179179
180180
```python
181181
ml_client.batch_endpoints.begin_create_or_update(endpoint)
@@ -218,7 +218,7 @@ Let's create the deployment that will host the model:
218218

219219
:::code language="yaml" source="~/azureml-examples-main/cli/endpoints/batch/deploy-models/huggingface-text-summarization/deployment.yml" range="7-10" :::
220220

221-
# [Python](#tab/sdk)
221+
# [Python](#tab/python)
222222

223223
Let's get a reference to the environment:
224224

@@ -272,7 +272,7 @@ Let's create the deployment that will host the model:
272272

273273
:::code language="azurecli" source="~/azureml-examples-main/cli/endpoints/batch/deploy-models/huggingface-text-summarization/deploy-and-run.sh" ID="create_batch_deployment_set_default" :::
274274

275-
# [Python](#tab/sdk)
275+
# [Python](#tab/python)
276276

277277
To create a new deployment with the indicated environment and scoring script use the following code:
278278

@@ -317,7 +317,7 @@ Let's create the deployment that will host the model:
317317
az ml batch-endpoint update --name $ENDPOINT_NAME --set defaults.deployment_name=$DEPLOYMENT_NAME
318318
```
319319

320-
# [Python](#tab/sdk)
320+
# [Python](#tab/python)
321321

322322
```python
323323
endpoint.defaults.deployment_name = deployment.name
@@ -340,7 +340,7 @@ For testing our endpoint, we are going to use a sample of the dataset [BillSum:
340340
> [!NOTE]
341341
> The utility `jq` may not be installed on every installation. You can get instructions in [this link](https://stedolan.github.io/jq/download/).
342342
343-
# [Python](#tab/sdk)
343+
# [Python](#tab/python)
344344

345345
```python
346346
input = Input(type=AssetTypes.URI_FOLDER, path="data")
@@ -360,7 +360,7 @@ For testing our endpoint, we are going to use a sample of the dataset [BillSum:
360360

361361
:::code language="azurecli" source="~/azureml-examples-main/cli/endpoints/batch/deploy-models/huggingface-text-summarization/deploy-and-run.sh" ID="show_job_in_studio" :::
362362

363-
# [Python](#tab/sdk)
363+
# [Python](#tab/python)
364364

365365
```python
366366
ml_client.jobs.get(job.name)
@@ -376,7 +376,7 @@ For testing our endpoint, we are going to use a sample of the dataset [BillSum:
376376
az ml job download --name $JOB_NAME --output-name score --download-path .
377377
```
378378

379-
# [Python](#tab/sdk)
379+
# [Python](#tab/python)
380380

381381
```python
382382
ml_client.jobs.download(name=job.name, output_name='score', download_path='./')

0 commit comments

Comments
 (0)