Skip to content

Commit 30915dd

Browse files
authored
Merge pull request #267 from PavanReddy28/main
Minor fixes for Azure OpenAI Studio Finetuning tutorial
2 parents 6598e49 + 34bcb29 commit 30915dd

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,9 +65,9 @@ Different model types require a different format of training data.
6565

6666
# [chat completion models](#tab/turbo)
6767

68-
The training and validation data you use **must** be formatted as a JSON Lines (JSONL) document. For `gpt-35-turbo-0613` the fine-tuning dataset must be formatted in the conversational format that is used by the [Chat completions](../how-to/chatgpt.md) API.
68+
The training and validation data you use **must** be formatted as a JSON Lines (JSONL) document. For `gpt-35-turbo` (all versions), `gpt-4`, `gpt-4o`, and `gpt-4o-mini`, the fine-tuning dataset must be formatted in the conversational format that is used by the [Chat completions](../how-to/chatgpt.md) API.
6969

70-
If you would like a step-by-step walk-through of fine-tuning a `gpt-35-turbo-0613` model please refer to the [Azure OpenAI fine-tuning tutorial.](../tutorials/fine-tune.md)
70+
If you would like a step-by-step walk-through of fine-tuning a `gpt-4o-mini` (2024-07-18) model please refer to the [Azure OpenAI fine-tuning tutorial.](../tutorials/fine-tune.md)
7171

7272
### Example file format
7373

200 KB
Loading

articles/ai-services/openai/tutorials/fine-tune.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -755,7 +755,7 @@ This command isn't available in the 0.28.1 OpenAI Python library. Upgrade to the
755755
{
756756
"id": "ftchkpt-148ab69f0a404cf9ab55a73d51b152de",
757757
"created_at": 1715743077,
758-
"fine_tuned_model_checkpoint": "gpt-4o-mini-2024-07-18.ft-372c72db22c34e6f9ccb62c26ee0fbd9",
758+
"fine_tuned_model_checkpoint": "gpt-4o-mini-2024-07-18.ft-0e208cf33a6a466994aff31a08aba678",
759759
"fine_tuning_job_id": "ftjob-372c72db22c34e6f9ccb62c26ee0fbd9",
760760
"metrics": {
761761
"full_valid_loss": 1.8258173013035255,
@@ -772,7 +772,7 @@ This command isn't available in the 0.28.1 OpenAI Python library. Upgrade to the
772772
{
773773
"id": "ftchkpt-e559c011ecc04fc68eaa339d8227d02d",
774774
"created_at": 1715743013,
775-
"fine_tuned_model_checkpoint": "gpt-4o-mini-2024-07-18.ft-372c72db22c34e6f9ccb62c26ee0fbd9:ckpt-step-90",
775+
"fine_tuned_model_checkpoint": "gpt-4o-mini-2024-07-18.ft-0e208cf33a6a466994aff31a08aba678:ckpt-step-90",
776776
"fine_tuning_job_id": "ftjob-372c72db22c34e6f9ccb62c26ee0fbd9",
777777
"metrics": {
778778
"full_valid_loss": 1.7958603267428241,
@@ -789,7 +789,7 @@ This command isn't available in the 0.28.1 OpenAI Python library. Upgrade to the
789789
{
790790
"id": "ftchkpt-8ae8beef3dcd4dfbbe9212e79bb53265",
791791
"created_at": 1715742984,
792-
"fine_tuned_model_checkpoint": "gpt-4o-mini-2024-07-18.ft-372c72db22c34e6f9ccb62c26ee0fbd9:ckpt-step-80",
792+
"fine_tuned_model_checkpoint": "gpt-4o-mini-2024-07-18.ft-0e208cf33a6a466994aff31a08aba678:ckpt-step-80",
793793
"fine_tuning_job_id": "ftjob-372c72db22c34e6f9ccb62c26ee0fbd9",
794794
"metrics": {
795795
"full_valid_loss": 1.6909511662736725,
@@ -850,7 +850,7 @@ Alternatively, you can deploy your fine-tuned model using any of the other commo
850850
| resource_group | The resource group name for your Azure OpenAI resource |
851851
| resource_name | The Azure OpenAI resource name |
852852
| model_deployment_name | The custom name for your new fine-tuned model deployment. This is the name that will be referenced in your code when making chat completion calls. |
853-
| fine_tuned_model | Retrieve this value from your fine-tuning job results in the previous step. It will look like `gpt-4o-mini-2024-07-18.ft-b044a9d3cf9c4228b5d393567f693b83`. You'll need to add that value to the deploy_data json. |
853+
| fine_tuned_model | Retrieve this value from your fine-tuning job results in the previous step. It will look like `gpt-4o-mini-2024-07-18.ft-0e208cf33a6a466994aff31a08aba678`. You'll need to add that value to the deploy_data json. |
854854

855855
[!INCLUDE [Fine-tuning deletion](../includes/fine-tune.md)]
856856

@@ -874,7 +874,7 @@ deploy_data = {
874874
"properties": {
875875
"model": {
876876
"format": "OpenAI",
877-
"name": "<YOUR_FINE_TUNED_MODEL>", #retrieve this value from the previous call, it will look like gpt-4o-mini-2024-07-18.ft-b044a9d3cf9c4228b5d393567f693b83
877+
"name": "<YOUR_FINE_TUNED_MODEL>", #retrieve this value from the previous call, it will look like gpt-4o-mini-2024-07-18.ft-0e208cf33a6a466994aff31a08aba678
878878
"version": "1"
879879
}
880880
}
@@ -894,7 +894,7 @@ print(r.json())
894894

895895
You can check on your deployment progress in the Azure OpenAI Studio:
896896

897-
:::image type="content" source="../media/tutorials/fine-tuning/status.png" alt-text="Screenshot of the initial DataFrame table results from the CSV file." lightbox="../media/tutorials/fine-tuning/status.png":::
897+
:::image type="content" source="../media/tutorials/fine-tuning/studio-deployment-status.png" alt-text="Screenshot of Deployment progress on Azure OpenAI Studio." lightbox="../media/tutorials/fine-tuning/studio-deployment-status.png":::
898898

899899
It isn't uncommon for this process to take some time to complete when dealing with deploying fine-tuned models.
900900

@@ -968,7 +968,7 @@ You can delete the deployment in [Azure OpenAI Studio](https://oai.azure.com/),
968968

969969
## Troubleshooting
970970

971-
### How do I enable fine-tuning? Create a custom model is greyed out in Azure OpenAI Studio?
971+
### How do I enable fine-tuning? Create a custom model is grayed out in Azure OpenAI Studio
972972

973973
In order to successfully access fine-tuning you need **Cognitive Services OpenAI Contributor assigned**. Even someone with high-level Service Administrator permissions would still need this account explicitly set in order to access fine-tuning. For more information please review the [role-based access control guidance](/azure/ai-services/openai/how-to/role-based-access-control#cognitive-services-openai-contributor).
974974

0 commit comments

Comments
 (0)