Skip to content

Commit 8c6fd65

Browse files
committed
acrolinx
1 parent 9af101c commit 8c6fd65

File tree

5 files changed

+15
-15
lines changed

5 files changed

+15
-15
lines changed

articles/ai-services/content-safety/how-to/containers/container-overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ The content safety container is available in public preview. Containers in previ
3030

3131
To use the content safety containers in environments that are disconnected from the internet, you must submit a [request form](https://aka.ms/csdisconnectedcontainers) and wait for approval. For more information about applying and purchasing a commitment plan to use containers in disconnected environments, see [Use containers in disconnected environments](../../../../ai-services/containers/disconnected-containers.md) in the Azure AI services documentation.
3232

33-
The request form takes information about you, your company, and the user scenario for which you'll use the container. Make sure you meet the following requirements:
33+
The request form takes information about you, your company, and the user scenario for which you use the container. Make sure you meet the following requirements:
3434

3535
* On the form, you must use the email address associated with your Azure subscription ID.
3636
* The Azure resource you use to run the container must be created with the approved Azure subscription ID.

articles/ai-services/content-safety/how-to/containers/image-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ keywords: on-premises, Docker, container
1313

1414
# Analyze image content with docker containers
1515

16-
The analyze image container scans image for sexual content, violence, hate, and self harm with multi-severity levels. In this article, you learn how to download, install, and run a content safety to image container.
16+
The Analyze image container scans image for sexual content, violence, hate, and self harm with multi-severity levels. In this article, you learn how to download, install, and run a content safety to image container.
1717

1818
For more information about prerequisites, validating that a container is running, running multiple containers on the same host, and running disconnected containers, see [Install and run content safety containers with Docker](container-install-run.md).
1919

articles/ai-services/content-safety/how-to/containers/install-run-container.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ The minimum GPU requirement for these containers is NVIDIA's T4, however, we rec
6464

6565
The table below presents the requests per second (RPS) and latency metrics obtained when the containers were tested on a single-node GPU configuration using NVIDIA's T4 and A100 GPUs.
6666

67-
Note that even with identical GPUs, performance can fluctuate based on the GPU load and the specific configuration of the environment. The benchmark data we provide should be used as a reference point when considering the deployment of content safety containers in your environment. For the most accurate assessment, we recommend conducting tests within your specific environment.
67+
Even with identical GPUs, performance can fluctuate based on the GPU load and the specific configuration of the environment. The benchmark data we provide should be used as a reference point when considering the deployment of content safety containers in your environment. For the most accurate assessment, we recommend conducting tests within your specific environment.
6868

6969
**[to-do] make below two table inline sections, one for text one for image.**
7070

articles/ai-services/content-safety/how-to/containers/text-container.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: analyze text container - Azure AI content safety
2+
title: Analyze text container - Azure AI content safety
33
titleSuffix: Azure AI services
44
description: Install and run content safety analyze text containers with Docker to detect harmful content in text.
55
author:
@@ -13,7 +13,7 @@ keywords: on-premises, Docker, container
1313

1414
# Analyze text content with Docker container
1515

16-
The analyze text container scans text generate by foundation model or human for sexual content, violence, hate, and self harm with multi-severity levels. In this article, you learn how to download, install, and run a content safety analyze text container.
16+
The Analyze text container scans text generate by foundation model or human for sexual content, violence, hate, and self harm with multi-severity levels. In this article, you learn how to download, install, and run a content safety analyze text container.
1717

1818
For more information about prerequisites, validating that a container is running, running multiple containers on the same host, and running disconnected containers, see [Install and run content safety containers with Docker](container-install-run.md).
1919

@@ -82,7 +82,7 @@ docker run -e CUDA_ENABLED=false
8282
```
8383
#### Run the container with blocklist
8484

85-
The Analyze Text container supports the use of a [blocklist feature](./how-to/use-blocklist.md), which allows you to block custom terms. You, as the customer, have the ability to manage these blocklists by using CSV files. You have the flexibility to use multiple CSV files for multiple blocklists.
85+
The Analyze text container supports the use of a [blocklist feature](./how-to/use-blocklist.md), which allows you to block custom terms. You, as the customer, have the ability to manage these blocklists by using CSV files. You have the flexibility to use multiple CSV files for multiple blocklists.
8686

8787
To run the container with a blocklist, use the following command:
8888

@@ -92,7 +92,7 @@ docker run -e BLOCKLIST_DIR=/tmp/blocklist -v {/path/on/host}:/tmp/blocklist
9292

9393
In the command above, replace `{/path/on/host}` with the path to the blocklist folder on your host machine. This command mounts the blocklist directory from your host machine to the `BLOCKLIST_DIR=/tmp/blocklist` environment variable within the container.
9494

95-
Note, the Analyze Text container uses an exact match method for the blocklist. All items in the blocklist will be converted to lowercase before the matching process. This means, for instance, if you have `Contoso` in your blocklist, both "Contoso" and "contoso" from your input will be considered a match.
95+
Note, the Analyze text container uses an exact match method for the blocklist. All items in the blocklist will be converted to lowercase before the matching process. This means, for instance, if you have `Contoso` in your blocklist, both "Contoso" and "contoso" from your input are considered a match.
9696

9797

9898

@@ -156,7 +156,7 @@ sudo chown -R nonroot:nonroot <YOUR_LOCAL_MACHINE_PATH_1> <YOUR_LOCAL_MACHINE_PA
156156
```
157157
#### Run the container with blocklist
158158

159-
The Analyze Text container supports the use of a [blocklist feature](./how-to/use-blocklist.md), which allows you to block custom terms. You, as the customer, have the ability to manage these blocklists by using CSV files. You have the flexibility to use multiple CSV files for multiple blocklists.
159+
The Analyze text container supports the use of a [blocklist feature](./how-to/use-blocklist.md), which allows you to block custom terms. You, as the customer, have the ability to manage these blocklists by using CSV files. You have the flexibility to use multiple CSV files for multiple blocklists.
160160

161161
To run the container with a blocklist, use the following command:
162162

@@ -166,7 +166,7 @@ docker run -e BLOCKLIST_DIR=/tmp/blocklist -v {/path/on/host}:/tmp/blocklist
166166

167167
In the command above, replace `{/path/on/host}` with the path to the blocklist folder on your host machine. This command mounts the blocklist directory from your host machine to the `BLOCKLIST_DIR=/tmp/blocklist` environment variable within the container.
168168

169-
Note, the Analyze Text container uses an exact match method for the blocklist. All items in the blocklist will be converted to lowercase before the matching process. This means, for instance, if you have `Contoso` in your blocklist, both "Contoso" and "contoso" from your input will be considered a match.
169+
Note, the Analyze text container uses an exact match method for the blocklist. All items in the blocklist are converted to lowercase before the matching process. This means, for instance, if you have `Contoso` in your blocklist, both "Contoso" and "contoso" from your input are considered a match.
170170

171171
---
172172

articles/ai-services/content-safety/how-to/embedded-content-safety.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
title: Embedded content safety - Azure AI Content Safety
33
titleSuffix: Azure AI services
44
description: Embedded content safety is designed for on-device scenarios where cloud connectivity is intermittent or unavailable.
5-
author:
6-
manager:
5+
author: PatrickFarley
6+
manager: nitinme
77
ms.service: azure-ai-content-safety
88
ms.topic: how-to
99
ms.date: 9/24/2024
@@ -82,10 +82,10 @@ Memory load – An embedded content safety text analysis process consumes about
8282

8383
### SDK parameters that can impact performance
8484

85-
Below SDK parameters can impact the infernece time of the embedded content safety model.
85+
Below SDK parameters can impact the inference time of the embedded content safety model.
8686

87-
- `gpuEnabled` Set as **true** to enable GPU, otherwise CPU will be used. Generally inference time will be shorter on GPU.
88-
- `numThreads` This parameter only works for CPU. It defines number of threads to be used in a multi-threaded environment. We support a maximum number of 4 threads.
87+
- `gpuEnabled` Set as **true** to enable GPU, otherwise CPU is used. Generally inference time is shorter on GPU.
88+
- `numThreads` This parameter only works for CPU. It defines number of threads to be used in a multi-threaded environment. We support a maximum number of four threads.
8989

9090
See next section to for the performance benchmark data on popular PC CPUs and GPUs
9191

@@ -96,7 +96,7 @@ See next section to for the performance benchmark data on popular PC CPUs and GP
9696

9797
As stated above, there are multiple factors that impact the performance of embedded content safety model. We highly suggest you test it on your device and tweak the parameters to fit for your application's requirement.
9898

99-
We also conduct performance benchmark tests on various popular PC CPUs and GPUs. Please keep in mind that even with the same CPU, performance can vary depending on the CPU and memory load. The benchmark data provided should serve as a reference when considering if the embedded content safety can operate on your device. For optimal results, we advise testing on your intended device and in your specific application scenario.
99+
We also conduct performance benchmark tests on various popular PC CPUs and GPUs. Keep in mind that even with the same CPU, performance can vary depending on the CPU and memory load. The benchmark data provided should serve as a reference when considering if the embedded content safety can operate on your device. For optimal results, we advise testing on your intended device and in your specific application scenario.
100100

101101

102102
The [sample code](https://github.com/Azure/azure-ai-content-safety-sdk) includes code snippet to monitor performance metrics like memory, inference time.

0 commit comments

Comments
 (0)