Skip to content

Commit 19d32fa

Browse files
Merge pull request #4824 from laujan/mohamed-4701-custom-final
Mohamed 4701 custom final
2 parents ec9934b + ac7eb1a commit 19d32fa

File tree

10 files changed

+110
-73
lines changed

10 files changed

+110
-73
lines changed

articles/ai-services/translator/custom-translator/azure-ai-foundry/beginners-guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -139,11 +139,11 @@ To prepare for training, documents undergo a series of processing and filtering
139139

140140
* ### Invalid characters
141141

142-
custom translation removes sentences that contain Unicode character U+FFFD. The character U+FFFD indicates a failed encoding conversion.
142+
Custom translation removes sentences that contain Unicode character U+FFFD. The character U+FFFD indicates a failed encoding conversion.
143143

144144
* ### Invalid HTML tags
145145

146-
custom translation removes valid tags during training. Invalid tags cause unpredictable results and should be manually removed.
146+
Custom translation removes valid tags during training. Invalid tags cause unpredictable results and should be manually removed.
147147

148148
## What steps should I take before uploading data?
149149

articles/ai-services/translator/custom-translator/azure-ai-foundry/how-to/create-language-pair.md

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,9 @@ An Azure AI Foundry custom translation language pair includes models, training,
1616

1717
## Create a language pair
1818

19-
1. Follow [Create a project](create-language-pair.md), then continue here.
19+
1. Follow [Create a project](create-project.md), then continue here.
20+
21+
1. Use the dropdown list to select another **Connected service** or create a new one.
2022

2123
1. Enter the following details about your language pair in the dialog:
2224

@@ -33,13 +35,13 @@ An Azure AI Foundry custom translation language pair includes models, training,
3335
3436
- **Language pair label:** You can add label to create the same language pair multiple times. Example, you want to create English to French model for shopping and another English to French model for automotive. A label distinguishes between the same language pair with the same language pair and domain. As a best practice, here are a few tips:
3537

36-
- Use a label *only* if you're planning to build multiple projects for the same language pair and same domain and want to access these projects with a different Domain ID.
38+
- Use a label *only* if you're planning to build multiple projects for the same language pair and same domain and want to access these projects with a different Domain ID.
3739

38-
- Don't use a label if you're building systems for one domain only.
40+
- Don't use a label if you're building systems for one domain only.
3941

40-
- A label isn't required and not helpful to distinguish between language pairs.
42+
- A label isn't required and not helpful to distinguish between language pairs.
4143

42-
- You can use the same label for multiple language pairs.
44+
- You can use the same label for multiple language pairs.
4345

4446
- **Project description:** A short summary about the project. This description has no influence over the behavior of the Custom Translator or your resulting custom system, but can help you differentiate between different projects.
4547

@@ -55,10 +57,9 @@ To modify the language pair name, description, domain description, and add/remov
5557

5658
1. Select the language pair name from the Fine-tuning > AI Service fine-tuning page.
5759

58-
1. Select the **...** next to the language pair name and select **Edit**.
60+
:::image type="content" source="../media/fine-tune-edit-language-pair-1.png" alt-text="Screenshot illustrating edit language pair fields.":::
5961

60-
1. The **Edit and Delete** buttons should now be visible.
61-
:::image type="content" source="../media/fine-tune-edit-language-pair-1.png" alt-text="Screenshot illustrating edit language pair fields":::
62+
1. Select the **`...`** next to the language pair name. The **Edit and Delete** buttons should now be visible.
6263

6364
1. Select **Edit** and fill in or modify existing text.
6465

articles/ai-services/translator/custom-translator/azure-ai-foundry/how-to/test-model.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ A BLEU score is a number between zero and 100. A score of zero indicates a low-q
3333

3434
:::image type="content" source="../media/fine-tune-test-model-2.png" alt-text="Screenshot illustrating the test-model function.":::
3535

36-
1. If results are satisfactory, deploy the model to production, otherwise, iterate by adding more human curated training data until you find a winner model.
36+
1. If results are satisfactory, deploy the model, otherwise, iterate by adding more human curated training data until you find a winner model.
3737

3838
## Next steps
3939

articles/ai-services/translator/custom-translator/azure-ai-foundry/how-to/train-model.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,13 @@ Here are the steps to create a custom translation model:
3535

3636
:::image type="content" source="../media/fine-tune-train-model-2.png" alt-text="Screenshot illustrating train model blade.":::
3737

38-
1. Select the data you want to use for training, for example, `Customer-sample-English-German-Training` and review the training cost associated with the selected number of sentences.
38+
1. Select the data you want to use for training and review the training cost associated with the selected number of sentences.
3939

4040
:::image type="content" source="../media/fine-tune-train-model-3.png" alt-text="Screenshot depicting a view of the train model blade.":::
4141

42-
1. Select **Train model**.
42+
1. Select **Next**
43+
44+
1. Review and select **Train model**.
4345

4446
:::image type="content" source="../media/fine-tune-train-model-4.png" alt-text="Screenshot illustrating the train model blade.":::
4547

articles/ai-services/translator/custom-translator/azure-ai-foundry/how-to/upload-data.md

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,13 @@ ms.topic: how-to
1414

1515
Document types are associated with the language pair selected when you create a project.
1616

17-
1. Sign-in to [Azure AI Foundry](https://ai.azure.com/).
18-
19-
1. Select **Fine-tuning** from the left pane.
17+
1. Follow [Create a language pair](create-language-pair.md), then continue here.
2018

2119
1. Select the language pair **Name** you want to manage.
2220

23-
1. Select **Manage data** and then select **Add data** and choose the dataset type:
24-
25-
- Training set
26-
- Testing set
27-
- Tuning set
28-
- Phrase Dictionary
29-
- Sentence Dictionary
21+
:::image type="content" source="../media/fine-tune-edit-language-pair-1.png" alt-text="Screenshot illustrating edit language pair fields.":::
3022

31-
:::image type="content" source="../media/fine-tune-create-language-pair.png" alt-text="Screenshot illustrating the document upload link.":::
23+
1. Select **Manage data** and then select **Add data**.
3224

3325
1. Select dataset type and select your data document format.
3426

@@ -46,7 +38,7 @@ You can view history of all document uploads details like document type, upload
4638

4739
1. The upload history tab shows history for the selected language pair.
4840

49-
2. This page shows the status of all of your past uploads. It displays
41+
1. This page shows the status of all of your past uploads. It displays
5042
uploads from most recent to least recent. Each upload shows name, status, type, and created on.
5143

5244
:::image type="content" source="../media/fine-tune-upload-history.png" alt-text="Screenshot showing the upload history page.":::

articles/ai-services/translator/custom-translator/azure-ai-foundry/overview.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Custom translation provides different features to build custom translation syste
3434

3535
## Get better translations
3636

37-
Azure AI Translator released [Neural Machine Translation (NMT)](https://www.microsoft.com/translator/blog/2016/11/15/microsoft-translator-launching-neural-network-based-translations-for-all-its-speech-languages/) in 2016. NMT provided major advances in translation quality over the industry-standard [Statistical Machine Translation (SMT)](https://en.wikipedia.org/wiki/Statistical_machine_translation) technology. Because NMT better captures the context of full sentences before translating them, it provides higher quality, more human-sounding, and more fluent translations. [Custom Translator](https://ai.azure.com) provides NMT for your custom models resulting in better translation quality.
37+
Azure AI Translator released [Neural Machine Translation (NMT)](https://www.microsoft.com/translator/blog/2016/11/15/microsoft-translator-launching-neural-network-based-translations-for-all-its-speech-languages/) in 2016. NMT provided major advances in translation quality over the industry-standard [Statistical Machine Translation (SMT)](https://en.wikipedia.org/wiki/Statistical_machine_translation) technology. Because NMT better captures the context of full sentences before translating them, it provides higher quality, more human-sounding, and more fluent translations. [Custom translation](https://ai.azure.com) provides NMT for your custom models resulting in better translation quality.
3838

3939
Custom translation also accepts data that's parallel at the document level to make data collection and preparation more effective. If users have access to versions of the same content in multiple languages but in separate documents, custom translation is able to automatically match sentences across documents. For a list of supported document format, *see* [Custom translation document formats and naming convention](concepts/document-formats-naming-convention.md).
4040

articles/ai-services/translator/custom-translator/release-notes.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ This page presents the latest feature, improvement, bug fix, and known issue rel
6464
|English (`en`)|Turkish (`tr`)|
6565
|English (`en`)|Ukrainian (`uk`)|
6666
|English (`en`)|Vietnamese (`vi`)|
67-
|English (`en`)|Chinese Simplified (zh-hans)|
67+
|English (`en`)|zh-hans|
6868
|Estonian (`et`)|English (`en`)|
6969
|Finnish (`fi`)|English (`en`)|
7070
|French (`fr`)|English (`en`)|

articles/ai-services/translator/text-translation/how-to/migrate-to-v4.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
title: Migrate to v4.0 - Azure AI Translator
2+
title: Migrate from Translator v3 to the latest Azure AI Translator version
33
titleSuffix: Azure AI services
44
description: This article provides the steps to help you migrate from Azure AI Translator v3 to 2025-05-01-preview Text translation API.
55
author: laujan
@@ -12,7 +12,7 @@ ms.author: lajanuar
1212

1313
# Azure AI Translator 2025-05-01-preview migration
1414

15-
Azure AI Translator text translation 2025-05-01-preview (v4.0) is our latest cloud-based, multilingual neural machine translation service. As Azure AI Translator matures, we're focused on patterns and practices to best support and add value to our users.
15+
Azure AI Translator text translation 2025-05-01-preview is our latest cloud-based, multilingual neural machine translation service. As Azure AI Translator matures, we're focused on patterns and practices to best support and add value to our users.
1616

1717
>[!IMPORTANT]
1818
> * Azure AI Translator REST API `2025-05-01-preview` is new version of the Azure AI Translator REST API **with breaking changes**.
@@ -52,10 +52,10 @@ The following table compares Translator `2025-05-01-preview` and Translator v3 A
5252
|[Translate text](../reference/v4/translate-api.md)|[Translate text](../reference/v3/translate.md)|
5353
|[Transliterate](../reference/v4/transliterate-api.md)|[Transliterate](../reference/v3/transliterate.md)|
5454
|[Languages](../reference/v4/get-languages.md)|[Languages](../reference/v3/languages.md)|
55-
|Feature no longer supported|[Detect language](../reference/v3/detect.md)|
56-
|Feature no longer supported|[BreakSentence](../reference/v3/break-sentence.md)|
57-
|Feature no longer supported|[Dictionary Lookup](../reference/v3/dictionary-lookup.md)|
58-
|Feature no longer supported|[Dictionary Examples](../reference/v3/dictionary-examples.md)|
55+
[BreakSentence](../reference/v3/break-sentence.md)|Feature no longer supported.<br>Use sentence delimiters function or a Natural Language Processing (NLP) library supported for your programming language.|
56+
[Dictionary Lookup](../reference/v3/dictionary-lookup.md)|Feature no longer supported|
57+
|[Dictionary Examples](../reference/v3/dictionary-examples.md)|Feature no longer supported|
58+
5959

6060
## Next Steps
6161

articles/ai-services/translator/text-translation/reference/v4/reference-overview.md

Lines changed: 54 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: laujan
66
manager: nitinme
77
ms.service: azure-ai-translator
88
ms.topic: reference
9-
ms.date: 04/18/2025
9+
ms.date: 05/05/2025
1010
ms.author: lajanuar
1111
---
1212

@@ -16,7 +16,6 @@ Azure AI Translator `2025-05-01-preview` is our latest cloud-based, multilingual
1616

1717
The Translator service is an optimal solution for managing extensive multilingual content. It easily integrates with your applications and workflows through a single REST API call and supports multiple programming languages. Translator supports over 100 languages and dialects, making it ideal for businesses, developers, and organizations seeking to seamlessly integrate multilingual communication.
1818

19-
Azure AI Translator prioritizes data security and privacy, complying with regulations like GDPR, HIPAA, and ISO/SOC, thus ensuring that it's a reliable solution for handling sensitive and confidential information.
2019

2120
>[!IMPORTANT]
2221
> * Azure AI Translator REST API `2025-05-01-preview` is new version of the Azure AI Translator REST API **with breaking changes**.
@@ -28,7 +27,7 @@ Azure AI Translator prioritizes data security and privacy, complying with regula
2827

2928
* **`LLM` choice**. You can choose a large language model for translation based on factors such as quality, cost, and other considerations.
3029

31-
* **Adaptive custom translation**. You can provide reference translations or translation memory datasets to enable an `LLM` model to perform few-shot translations tailored to your needs. Few-shot translation is a machine translation method where the model is trained or fine-tuned with only a limited number of examples to translate between languages.
30+
* **Adaptive custom translation**. You can provide reference translations or translation memory datasets to enable an `LLM` model to perform few-shot translations tailored to your needs.
3231

3332
* The **Translator** resource doesn't support Neural Machine Translation (`NMT`) translations.
3433

@@ -40,21 +39,61 @@ Metrics allow you to view the translator usage and availability information in A
4039

4140
:::image type="content" source="../../../media/azure-portal-metrics-v4.png" alt-text="Screenshot of HTTP request metrics in the Azure portal.":::
4241

43-
This table lists available metrics with description of how they're used to monitor translation API calls.
42+
#### Metrics terminology
43+
44+
* **PTU**: provisioned throughput units
45+
* **TPS**: transactions per second
46+
* **TPM**: tokens per minute
47+
48+
The following tables list available metrics with description of how they're used to monitor **Translator resource** API calls.
49+
50+
#### Translator resource HTTP requests
51+
52+
| Metrics | Description |
53+
|:----|:-----|
54+
| `BlockedCalls`| Number of calls that exceeded rate or quota limit.|
55+
| `ClientErrors`| Number of calls with client-side error(4XX).|
56+
| `Latency`| Duration to complete request in milliseconds.|
57+
| `Ratelimit`| The current rate limit of the rate limit key.|
58+
| `ServerErrors`| Number of calls with server internal error(5XX).|
59+
| `SuccessfulCalls`| Number of successful calls.|
60+
| `TotalCalls`| Total number of API calls.|
61+
| `TotalErrors`| Number of calls with error response.|
62+
| `TotalTokenCalls`| Total number of API calls via token service using authentication token.|
63+
64+
#### Translator resource usage
65+
66+
| Metrics | Description |
67+
|:----|:-----|
68+
| `TextCharactersTranslated`|Number of characters in incoming text translation request.|
69+
| `TextCustomCharactersTranslated`|Number of characters in incoming custom text translation request.|
70+
| `TextTrainedCharacters`|Number of characters trained using text translation.|
71+
| `DocumentCharactersTranslated`|Number of characters in document translation request.|
72+
| `DocumentCustomCharactersTranslated`|Number of characters in custom document translation request.|
73+
74+
The following tables list available metrics with description of how they're used to monitor **Azure OpenAI** API calls.
75+
76+
#### Azure OpenAI HTTP requests
4477

4578
| Metrics | Description |
4679
|:----|:-----|
47-
| BlockCalls| Number of calls that exceed rate or quota.|
48-
| ClientErrors| Number of calls with client-side error (HTTP response code 4xx)|
49-
| DataIn| Size of incoming data in bytes.|
50-
| DataOut| Size of outgoing data in bytes.|
51-
| Latency| Duration to complete request in milliseconds.|
52-
| RateLimit| The current rate limit of the ratelimit key.|
53-
| ServerErrors| Number of calls with server internal error (HTTP response code 5xx).|
54-
| SuccessfulCalls| Number of successful calls (HTTP response code 2xx).|
55-
| TotalCalls| Total number of calls.|
56-
| TotalErrors|Total number of calls with error response (HTTP response code 4xx or 5xx)|
57-
| TotalTokenCalls|Total number of token calls|
80+
| `AzureOpenAIAvailabilityRate`|Availability percentage with the following calculation:<br>`(Total Calls - Server Errors) / Total Calls`. Server Errors include any HTTP response >= 500.|
81+
|`AzureOpenAIRequests`|Number of calls made to the Azure OpenAI API over a period of time. Applies to `PTU`, `PTU`-managed, and Pay-as-you-go deployments. To breakdown API requests, you can add a filter or apply splitting by the following dimensions: <br> `ModelDeploymentName`, `ModelName`, `ModelVersion`, `StatusCode` (successful, client errors, server errors), `StreamType` (streaming vs nonstreaming requests), and `Operation`.|
82+
83+
#### Azure OpenAI usage
84+
85+
| Metrics | Description |
86+
|:----|:-----|
87+
|`ActiveTokens`|Total tokens minus cached tokens over a period of time. Applies to `PTU` and `PTU`-managed deployments. Use this metric to understand your `TPS`- or `TPM`-based utilization for `PTU`s and compare your benchmarks for target `TPS` or `TPM` for your scenarios. <br> To breakdown API requests, you can add a filter or apply splitting by the following dimensions: `ModelDeploymentName`, `ModelName`, `ModelVersion`.|
88+
|`GeneratedTokens`|Number of tokens generated (output) from an OpenAI model. Applies to `PTU`, `PTU`-managed, and Pay-as-you-go deployments. To analyze this metric in detail, you can add a filter or apply splitting by the following dimensions:<br>`ModelDeploymentName`or `ModelName`.|
89+
|`FineTunedTrainingHours`|Number of training hours processed on an OpenAI fine-tuned model.|
90+
|`TokenTransaction`|Number of inference tokens processed on an OpenAI model. Calculated as prompt tokens (input) plus generated tokens (output). Applies to `PTU`, `PTU`-managed, and Pay-as-you-go deployments. To analyze this metric in detail, you can add a filter or apply splitting by the following dimensions:<br>`ModelDeploymentName`or `ModelName`.|
91+
|`ProcessedPromptTokens`|Number of prompt tokens processed (input) on an OpenAI model. Applies to `PTU`, `PTU`-managed, and Pay-as-you-go deployments. To analyze this metric in detail, you can add a filter or apply splitting by the following dimensions:<br>`ModelDeploymentName`or `ModelName`.|
92+
|`AzureOpenAIContextTokensCacheMatchRate`|Percentage of prompt tokens that hit the cache. Applies to `PTU` and `PTU`-managed deployments.
93+
|`AzureOpenAIProvisionedManagedUtilizationV2`|Utilization percentage for a provisioned-managed deployment, calculated as (`PTU`s consumed / `PTU`s deployed) x 100. When utilization is greater than or equal to 100%, calls are throttled and error code 429 is returned. To analyze this metric in detail, you can add a filter or apply splitting by the following dimensions: `ModelDeploymentName`, `ModelName`, `ModelVersion`, and `StreamType` (streaming vs nonstreaming requests).|
94+
95+
96+
5897

5998
## Next steps
6099

0 commit comments

Comments
 (0)