You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/ai-services/content-safety/how-to/containers/container-overview.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -30,7 +30,7 @@ The content safety container is available in public preview. Containers in previ
30
30
31
31
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.
32
32
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:
34
34
35
35
* On the form, you must use the email address associated with your Azure subscription ID.
36
36
* The Azure resource you use to run the container must be created with the approved Azure subscription ID.
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.
17
17
18
18
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).
Copy file name to clipboardExpand all lines: articles/ai-services/content-safety/how-to/containers/install-run-container.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ The minimum GPU requirement for these containers is NVIDIA's T4, however, we rec
64
64
65
65
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.
66
66
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.
68
68
69
69
**[to-do] make below two table inline sections, one for text one for image.**
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.
17
17
18
18
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).
19
19
@@ -82,7 +82,7 @@ docker run -e CUDA_ENABLED=false
82
82
```
83
83
#### Run the container with blocklist
84
84
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.
86
86
87
87
To run the container with a blocklist, use the following command:
88
88
@@ -92,7 +92,7 @@ docker run -e BLOCKLIST_DIR=/tmp/blocklist -v {/path/on/host}:/tmp/blocklist
92
92
93
93
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.
94
94
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.
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.
160
160
161
161
To run the container with a blocklist, use the following command:
162
162
@@ -166,7 +166,7 @@ docker run -e BLOCKLIST_DIR=/tmp/blocklist -v {/path/on/host}:/tmp/blocklist
166
166
167
167
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.
168
168
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.
Copy file name to clipboardExpand all lines: articles/ai-services/content-safety/how-to/embedded-content-safety.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,8 +2,8 @@
2
2
title: Embedded content safety - Azure AI Content Safety
3
3
titleSuffix: Azure AI services
4
4
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
7
7
ms.service: azure-ai-content-safety
8
8
ms.topic: how-to
9
9
ms.date: 9/24/2024
@@ -82,10 +82,10 @@ Memory load – An embedded content safety text analysis process consumes about
82
82
83
83
### SDK parameters that can impact performance
84
84
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.
86
86
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.
89
89
90
90
See next section to for the performance benchmark data on popular PC CPUs and GPUs
91
91
@@ -96,7 +96,7 @@ See next section to for the performance benchmark data on popular PC CPUs and GP
96
96
97
97
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.
98
98
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.
100
100
101
101
102
102
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