Skip to content

Commit 2dd7047

Browse files
Merge pull request #1497 from mrbullwinkle/mrb_11_11_2024_index
[Azure OpenAI] Studio consolidation
2 parents a6b4f00 + 15ddd29 commit 2dd7047

File tree

6 files changed

+64
-36
lines changed

6 files changed

+64
-36
lines changed

articles/ai-services/openai/how-to/fine-tuning.md

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,10 @@ manager: nitinme
77
ms.service: azure-ai-openai
88
ms.custom: build-2023, build-2023-dataai, devx-track-python
99
ms.topic: how-to
10-
ms.date: 10/03/2024
10+
ms.date: 11/11/2024
1111
author: mrbullwinkle
1212
ms.author: mbullwin
13-
zone_pivot_groups: openai-fine-tuning-new
13+
zone_pivot_groups: openai-fine-tuning-newest
1414
---
1515

1616
# Customize a model with fine-tuning
@@ -31,13 +31,7 @@ We use LoRA, or low rank approximation, to fine-tune models in a way that reduce
3131
3232
::: zone pivot="programming-language-studio"
3333

34-
[!INCLUDE [Azure OpenAI Studio fine-tuning](../includes/fine-tuning-studio.md)]
35-
36-
::: zone-end
37-
38-
::: zone pivot="programming-language-ai-studio"
39-
40-
[!INCLUDE [AI Studio fine-tuning](../includes/fine-tuning-openai-in-ai-studio.md)]
34+
[!INCLUDE [Azure OpenAI Studio fine-tuning](../includes/fine-tuning-unified.md)]
4135

4236
::: zone-end
4337

articles/ai-services/openai/includes/fine-tuning-studio.md

Lines changed: 26 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: 'Customize a model with Azure OpenAI Service and Azure OpenAI Studio'
2+
title: 'Customize a model with Azure OpenAI Service and Azure AI Studio'
33
titleSuffix: Azure OpenAI
4-
description: Learn how to create your own custom model with Azure OpenAI Service by using the Azure OpenAI Studio.
4+
description: Learn how to create your own custom model with Azure OpenAI Service by using the Azure AI Studio.
55
#services: cognitive-services
66
manager: nitinme
77
ms.service: azure-ai-openai
@@ -17,8 +17,7 @@ ms.author: mbullwin
1717
- An Azure subscription. <a href="https://azure.microsoft.com/free/cognitive-services" target="_blank">Create one for free</a>.
1818
- An Azure OpenAI resource that's located in a region that supports fine-tuning of the Azure OpenAI model. Check the [Model summary table and region availability](../concepts/models.md#fine-tuning-models) for the list of available models by region and supported functionality. For more information, see [Create a resource and deploy a model with Azure OpenAI](../how-to/create-resource.md).
1919
- Fine-tuning access requires **Cognitive Services OpenAI Contributor**.
20-
- If you do not already have access to view quota, and deploy models in Azure OpenAI Studio you will require [additional permissions](../how-to/role-based-access-control.md).
21-
20+
- If you do not already have access to view quota, and deploy models in Azure AI Studio you will require [additional permissions](../how-to/role-based-access-control.md).
2221

2322
## Models
2423

@@ -41,12 +40,12 @@ Or you can fine tune a previously fine-tuned model, formatted as base-model.ft-{
4140
Consult the [models page](../concepts/models.md#fine-tuning-models) to check which regions currently support fine-tuning.
4241

4342

44-
## Review the workflow for Azure OpenAI Studio
43+
## Review the workflow for Azure AI Studio
4544

46-
Take a moment to review the fine-tuning workflow for using Azure OpenAI Studio:
45+
Take a moment to review the fine-tuning workflow for using Azure AI Studio:
4746

4847
1. Prepare your training and validation data.
49-
1. Use the **Create custom model** wizard in Azure OpenAI Studio to train your custom model.
48+
1. Use the **Create custom model** wizard in Azure AI Studio to train your custom model.
5049
1. [Select a base model](#select-the-base-model).
5150
1. [Choose your training data](#choose-your-training-data).
5251
1. Optionally, [choose your validation data](#choose-your-validation-data).
@@ -77,7 +76,7 @@ If you would like a step-by-step walk-through of fine-tuning a `gpt-4o-mini` (20
7776
{"messages": [{"role": "system", "content": "You are an Xbox customer support agent whose primary goal is to help users with issues they are experiencing with their Xbox devices. You are friendly and concise. You only provide factual answers to queries, and do not provide answers that are not related to Xbox."}, {"role": "user", "content": "I'm having trouble connecting my Xbox to the Wi-Fi."}, {"role": "assistant", "content": "No worries, let's go through the network settings on your Xbox. Can you please tell me what happens when you try to connect it to the Wi-Fi?"}]}
7877
```
7978

80-
## Multi-turn chat file format
79+
## Multi-turn chat file format Azure OpenAI
8180

8281
Multiple turns of a conversation in a single line of your jsonl training file is also supported. To skip fine-tuning on specific assistant messages add the optional `weight` key value pair. Currently `weight` can be set to 0 or 1.
8382

@@ -145,13 +144,13 @@ After it guides you through the process of implementing suggested changes, the t
145144

146145
## Use the Create custom model wizard
147146

148-
Azure OpenAI Studio provides the **Create custom model** wizard, so you can interactively create and train a fine-tuned model for your Azure resource.
147+
Azure AI Studio provides the **Create custom model** wizard, so you can interactively create and train a fine-tuned model for your Azure resource.
149148

150-
1. Open Azure OpenAI Studio at <a href="https://oai.azure.com/" target="_blank">https://oai.azure.com/</a> and sign in with credentials that have access to your Azure OpenAI resource. During the sign-in workflow, select the appropriate directory, Azure subscription, and Azure OpenAI resource.
149+
1. Open Azure AI Studio at <a href="https://oai.azure.com/" target="_blank">https://oai.azure.com/</a> and sign in with credentials that have access to your Azure OpenAI resource. During the sign-in workflow, select the appropriate directory, Azure subscription, and Azure OpenAI resource.
151150

152-
1. In Azure OpenAI Studio, browse to the **Tools > Fine-tuning** pane, and select **Fine-tune model**.
151+
1. In Azure AI Studio, browse to the **Tools > Fine-tuning** pane, and select **Fine-tune model**.
153152

154-
:::image type="content" source="../media/fine-tuning/studio-create-custom-model.png" alt-text="Screenshot that shows how to access the Create custom model wizard in Azure OpenAI Studio." lightbox="../media/fine-tuning/studio-create-custom-model.png":::
153+
:::image type="content" source="../media/fine-tuning/studio-create-custom-model.png" alt-text="Screenshot that shows how to access the Create custom model wizard in Azure AI Studio." lightbox="../media/fine-tuning/studio-create-custom-model.png":::
155154

156155
The **Create custom model** wizard opens.
157156

@@ -180,7 +179,7 @@ For more information about our base models that can be fine-tuned, see [Models](
180179

181180
The next step is to either choose existing prepared training data or upload new prepared training data to use when customizing your model. The **Training data** pane displays any existing, previously uploaded datasets and also provides options to upload new training data.
182181

183-
:::image type="content" source="../media/fine-tuning/studio-training-data.png" alt-text="Screenshot of the Training data pane for the Create custom model wizard in Azure OpenAI Studio." lightbox="../media/fine-tuning/studio-training-data.png":::
182+
:::image type="content" source="../media/fine-tuning/studio-training-data.png" alt-text="Screenshot of the Training data pane for the Create custom model wizard in Azure AI Studio." lightbox="../media/fine-tuning/studio-training-data.png":::
184183

185184
- If your training data is already uploaded to the service, select **Files from Azure OpenAI Connection**.
186185

@@ -229,7 +228,7 @@ The next step provides options to configure the model to use validation data in
229228

230229
The **Validation data** pane displays any existing, previously uploaded training and validation datasets and provides options by which you can upload new validation data.
231230

232-
:::image type="content" source="../media/fine-tuning/studio-validation-data.png" alt-text="Screenshot of the Validation data pane for the Create custom model wizard in Azure OpenAI Studio." lightbox="../media/fine-tuning/studio-validation-data.png":::
231+
:::image type="content" source="../media/fine-tuning/studio-validation-data.png" alt-text="Screenshot of the Validation data pane for the Create custom model wizard in Azure AI Studio." lightbox="../media/fine-tuning/studio-validation-data.png":::
233232

234233
- If your validation data is already uploaded to the service, select **Choose dataset**.
235234

@@ -294,15 +293,15 @@ After you configure the advanced options, select **Next** to [review your choice
294293

295294
The **Review** pane of the wizard displays information about your configuration choices.
296295

297-
:::image type="content" source="../media/fine-tuning/studio-review.png" alt-text="Screenshot of the Review pane for the Create custom model wizard in Azure OpenAI Studio." lightbox="../media/fine-tuning/studio-review.png":::
296+
:::image type="content" source="../media/fine-tuning/studio-review.png" alt-text="Screenshot of the Review pane for the Create custom model wizard in Azure AI Studio." lightbox="../media/fine-tuning/studio-review.png":::
298297

299298
If you're ready to train your model, select **Start Training job** to start the fine-tuning job and return to the **Models** pane.
300299

301300
## Check the status of your custom model
302301

303302
The **Models** pane displays information about your custom model in the **Customized models** tab. The tab includes information about the status and job ID of the fine-tune job for your custom model. When the job completes, the tab displays the file ID of the result file. You might need to select **Refresh** in order to see an updated status for the model training job.
304303

305-
:::image type="content" source="../media/fine-tuning/studio-models-job-running.png" alt-text="Screenshot of the Models pane from Azure OpenAI Studio, with a custom model displayed." lightbox="../media/fine-tuning/studio-models-job-running.png":::
304+
:::image type="content" source="../media/fine-tuning/studio-models-job-running.png" alt-text="Screenshot of the Models pane from Azure AI Studio, with a custom model displayed." lightbox="../media/fine-tuning/studio-models-job-running.png":::
306305

307306
After you start a fine-tuning job, it can take some time to complete. Your job might be queued behind other jobs on the system. Training your model can take minutes or hours depending on the model and dataset size.
308307

@@ -318,7 +317,7 @@ Here are some of the tasks you can do on the **Models** pane:
318317

319318
- Select **Refresh** to update the information on the page.
320319

321-
:::image type="content" source="../media/fine-tuning/studio-model-details.png" alt-text="Screenshot of the Models pane in Azure OpenAI Studio, with a custom model displayed." lightbox="../media/fine-tuning/studio-models-job-running.png":::
320+
:::image type="content" source="../media/fine-tuning/studio-model-details.png" alt-text="Screenshot of the Models pane in Azure AI Studio, with a custom model displayed." lightbox="../media/fine-tuning/studio-models-job-running.png":::
322321

323322
## Checkpoints
324323

@@ -340,13 +339,13 @@ When the fine-tuning job succeeds, you can deploy the custom model from the **Mo
340339
341340
To deploy your custom model, select the custom model to deploy, and then select **Deploy model**.
342341

343-
:::image type="content" source="../media/fine-tuning/studio-models-deploy-model.png" alt-text="Screenshot that shows how to deploy a custom model in Azure OpenAI Studio." lightbox="../media/fine-tuning/studio-models-deploy-model.png":::
342+
:::image type="content" source="../media/fine-tuning/studio-models-deploy-model.png" alt-text="Screenshot that shows how to deploy a custom model in Azure AI Studio." lightbox="../media/fine-tuning/studio-models-deploy-model.png":::
344343

345344
The **Deploy model** dialog box opens. In the dialog box, enter your **Deployment name** and then select **Create** to start the deployment of your custom model.
346345

347-
:::image type="content" source="../media/fine-tuning/studio-models-deploy.png" alt-text="Screenshot of the Deploy Model dialog in Azure OpenAI Studio." lightbox="../media/fine-tuning/studio-models-deploy.png":::
346+
:::image type="content" source="../media/fine-tuning/studio-models-deploy.png" alt-text="Screenshot of the Deploy Model dialog in Azure AI Studio." lightbox="../media/fine-tuning/studio-models-deploy.png":::
348347

349-
You can monitor the progress of your deployment on the **Deployments** pane in Azure OpenAI Studio.
348+
You can monitor the progress of your deployment on the **Deployments** pane in Azure AI Studio.
350349

351350
### Cross region deployment
352351

@@ -358,13 +357,13 @@ Cross subscription/region deployment can be accomplished via [Python](/azure/ai-
358357

359358
## Use a deployed custom model
360359

361-
After your custom model deploys, you can use it like any other deployed model. You can use the **Playgrounds** in [Azure OpenAI Studio](https://oai.azure.com) to experiment with your new deployment. You can continue to use the same parameters with your custom model, such as `temperature` and `max_tokens`, as you can with other deployed models. For fine-tuned `babbage-002` and `davinci-002` models you will use the Completions playground and the Completions API. For fine-tuned `gpt-35-turbo-0613` models you will use the Chat playground and the Chat completion API.
360+
After your custom model deploys, you can use it like any other deployed model. You can use the **Playgrounds** in [Azure AI Studio](https://oai.azure.com) to experiment with your new deployment. You can continue to use the same parameters with your custom model, such as `temperature` and `max_tokens`, as you can with other deployed models. For fine-tuned `babbage-002` and `davinci-002` models you will use the Completions playground and the Completions API. For fine-tuned `gpt-35-turbo-0613` models you will use the Chat playground and the Chat completion API.
362361

363-
:::image type="content" source="../media/quickstarts/playground-load-new.png" alt-text="Screenshot of the Playground pane in Azure OpenAI Studio, with sections highlighted." lightbox="../media/quickstarts/playground-load-new.png":::
362+
:::image type="content" source="../media/quickstarts/playground-load-new.png" alt-text="Screenshot of the Playground pane in Azure AI Studio, with sections highlighted." lightbox="../media/quickstarts/playground-load-new.png":::
364363

365364
## Analyze your custom model
366365

367-
Azure OpenAI attaches a result file named _results.csv_ to each fine-tuning job after it completes. You can use the result file to analyze the training and validation performance of your custom model. The file ID for the result file is listed for each custom model in the **Result file Id** column on the **Models** pane for Azure OpenAI Studio. You can use the file ID to identify and download the result file from the **Data files** pane of Azure OpenAI Studio.
366+
Azure OpenAI attaches a result file named _results.csv_ to each fine-tuning job after it completes. You can use the result file to analyze the training and validation performance of your custom model. The file ID for the result file is listed for each custom model in the **Result file Id** column on the **Models** pane for Azure AI Studio. You can use the file ID to identify and download the result file from the **Data files** pane of Azure AI Studio.
368367

369368
The result file is a CSV file that contains a header row and a row for each training step performed by the fine-tuning job. The result file contains the following columns:
370369

@@ -378,7 +377,7 @@ The result file is a CSV file that contains a header row and a row for each trai
378377
| `full_valid_loss` | The validation loss calculated at the end of each epoch. When training goes well, loss should decrease. |
379378
|`full_valid_mean_token_accuracy` | The valid mean token accuracy calculated at the end of each epoch. When training is going well, token accuracy should increase. |
380379

381-
You can also view the data in your results.csv file as plots in Azure OpenAI Studio. Select the link for your trained model, and you will see three charts: loss, mean token accuracy, and token accuracy. If you provided validation data, both datasets will appear on the same plot.
380+
You can also view the data in your results.csv file as plots in Azure AI Studio. Select the link for your trained model, and you will see three charts: loss, mean token accuracy, and token accuracy. If you provided validation data, both datasets will appear on the same plot.
382381

383382
Look for your loss to decrease over time, and your accuracy to increase. If you see a divergence between your training and validation data, that may indicate that you are overfitting. Try training with fewer epochs, or a smaller learning rate multiplier.
384383

@@ -390,18 +389,18 @@ When you're done with your custom model, you can delete the deployment and model
390389

391390
[!INCLUDE [Fine-tuning deletion](fine-tune.md)]
392391

393-
You can delete the deployment for your custom model on the **Deployments** pane in Azure OpenAI Studio. Select the deployment to delete, and then select **Delete** to delete the deployment.
392+
You can delete the deployment for your custom model on the **Deployments** pane in Azure AI Studio. Select the deployment to delete, and then select **Delete** to delete the deployment.
394393

395394
### Delete your custom model
396395

397-
You can delete a custom model on the **Models** pane in Azure OpenAI Studio. Select the custom model to delete from the **Customized models** tab, and then select **Delete** to delete the custom model.
396+
You can delete a custom model on the **Models** pane in Azure AI Studio. Select the custom model to delete from the **Customized models** tab, and then select **Delete** to delete the custom model.
398397

399398
> [!NOTE]
400399
> You can't delete a custom model if it has an existing deployment. You must first [delete your model deployment](#delete-your-model-deployment) before you can delete your custom model.
401400
402401
### Delete your training files
403402

404-
You can optionally delete training and validation files that you uploaded for training, and result files generated during training, on the **Management** > **Data files** pane in Azure OpenAI Studio. Select the file to delete, and then select **Delete** to delete the file.
403+
You can optionally delete training and validation files that you uploaded for training, and result files generated during training, on the **Management** > **Data files** pane in Azure AI Studio. Select the file to delete, and then select **Delete** to delete the file.
405404

406405
## Continuous fine-tuning
407406

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
---
2+
title: 'Customize a model with Azure OpenAI Service and Azure AI Studio'
3+
titleSuffix: Azure OpenAI
4+
description: Learn how to create your own custom model with Azure OpenAI Service by using the Azure AI Studio.
5+
#services: cognitive-services
6+
manager: nitinme
7+
ms.service: azure-ai-openai
8+
ms.topic: include
9+
ms.date: 11/11/2024
10+
author: mrbullwinkle
11+
ms.author: mbullwin
12+
---
13+
14+
There are two unique fine-tuning experiences in Azure AI Studio. Both allow you to fine-tune Azure OpenAI models, but only the Hub/Project view supports fine-tuning non Azure OpenAI models. If you are only using the Azure OpenAI fine-tuning experience which is available anytime you select a resource in a region where fine-tuning is supported.
15+
16+
# [Azure OpenAI](#tab/azure-openai)
17+
18+
[!INCLUDE [Azure AI Studio resource view fine-tuning](../includes/fine-tuning-studio.md)]
19+
20+
# [Hub/Project](#tab/hub)
21+
22+
[!INCLUDE [Azure AI Studio Hub/Project fine-tuning](../includes/fine-tuning-openai-in-ai-studio.md)]
23+
24+
---
-12 KB
Loading
708 KB
Loading

zone-pivots/zone-pivot-groups.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -808,6 +808,17 @@ groups:
808808
- id: rest-api
809809
title: REST
810810
# Owner: mbullwin
811+
- id: openai-fine-tuning-newest
812+
title: Programming languages
813+
prompt: Choose your preferred fine-tuning method
814+
pivots:
815+
- id: programming-language-studio
816+
title: AI Studio
817+
- id: programming-language-python
818+
title: Python
819+
- id: rest-api
820+
title: REST
821+
# Owner: mbullwin
811822
- id: URL-test-interface
812823
title: URL Test tool
813824
prompt: Choose one of the following

0 commit comments

Comments
 (0)