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/openai/includes/get-key-endpoint.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
@@ -20,6 +20,6 @@ To successfully make a call against Azure OpenAI, you need an **endpoint** and a
20
20
|`ENDPOINT`| This value can be found in the **Keys & Endpoint** section when examining your resource from the Azure portal. Alternatively, you can find the value in the **Azure OpenAI Studio** > **Playground** > **Code View**. An example endpoint is: `https://docs-test-001.openai.azure.com/`.|
21
21
|`API-KEY`| This value can be found in the **Keys & Endpoint** section when examining your resource from the Azure portal. You can use either `KEY1` or `KEY2`.|
22
22
23
-
Go to your resource in the Azure portal. The **Endpoint and Keys** can be found in the **Resource Management** section. Copy your endpoint and access key as you'll need both for authenticating your API calls. You can use either `KEY1` or `KEY2`. Always having two keys allows you to securely rotate and regenerate keys without causing a service disruption.
23
+
Go to your resource in the Azure portal. The **Keys & Endpoint** section can be found in the **Resource Management** section. Copy your endpoint and access key as you'll need both for authenticating your API calls. You can use either `KEY1` or `KEY2`. Always having two keys allows you to securely rotate and regenerate keys without causing a service disruption.
24
24
25
25
:::image type="content" source="../media/quickstarts/endpoint.png" alt-text="Screenshot of the overview UI for an Azure OpenAI resource in the Azure portal with the endpoint and access keys location circled in red." lightbox="../media/quickstarts/endpoint.png":::
Copy file name to clipboardExpand all lines: articles/ai-services/openai/tutorials/fine-tune.md
+59-43Lines changed: 59 additions & 43 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,7 +7,7 @@ manager: nitinme
7
7
ms.service: azure-ai-openai
8
8
ms.topic: tutorial
9
9
ms.date: 10/16/2023
10
-
author: mrbullwinkle
10
+
author: mrbullwinkle
11
11
ms.author: mbullwin
12
12
recommendations: false
13
13
ms.custom:
@@ -29,15 +29,15 @@ In this tutorial you learn how to:
29
29
30
30
## Prerequisites
31
31
32
-
* An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services?azure-portal=true).
33
-
- Access granted to Azure OpenAI in the desired Azure subscription Currently, access to this service is granted only by application. You can apply for access to Azure OpenAI by completing the form at https://aka.ms/oai/access.
32
+
- An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services?azure-portal=true).
33
+
- Access granted to Azure OpenAI in the desired Azure subscription Currently, access to this service is granted only by application. You can apply for access to Azure OpenAI by completing the form at https://aka.ms/oai/access.
34
34
- Python 3.8 or later version
35
-
- The following Python libraries: `json`, `requests`, `os`, `tiktoken`, `time`, `openai`.
35
+
- The following Python libraries: `json`, `requests`, `os`, `tiktoken`, `time`, `openai`, `numpy`.
36
36
- The OpenAI Python library should be at least version: `0.28.1`.
37
37
-[Jupyter Notebooks](https://jupyter.org/)
38
38
- An Azure OpenAI resource in a [region where `gpt-35-turbo-0613` fine-tuning is available](../concepts/models.md). If you don't have a resource the process of creating one is documented in our resource [deployment guide](../how-to/create-resource.md).
- 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).
40
+
- 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).
41
41
42
42
43
43
> [!IMPORTANT]
@@ -50,7 +50,7 @@ In this tutorial you learn how to:
@@ -159,6 +159,8 @@ Create the files in the same directory that you're running the Jupyter Notebook,
159
159
Now you need to run some preliminary checks on our training and validation files.
160
160
161
161
```python
162
+
# Run preliminary checks
163
+
162
164
import json
163
165
164
166
# Load the training set
@@ -203,6 +205,8 @@ In this case we only have 10 training and 10 validation examples so while this w
203
205
Now you can then run some additional code from OpenAI using the tiktoken library to validate the token counts. Individual examples need to remain under the `gpt-35-turbo-0613` model's input token limit of 4096 tokens.
engine="gpt-35-turbo-ft", # engine = "Custom deployment name you chose for your fine-tuning model"
656
-
messages=[
671
+
engine="gpt-35-turbo-ft", # engine = "Custom deployment name you chose for your fine-tuning model"
672
+
messages=[
657
673
{"role": "system", "content": "You are a helpful assistant."},
658
674
{"role": "user", "content": "Does Azure OpenAI support customer managed keys?"},
659
675
{"role": "assistant", "content": "Yes, customer managed keys are supported by Azure OpenAI."},
@@ -673,14 +689,14 @@ Unlike other types of Azure OpenAI models, fine-tuned/customized models have [an
673
689
674
690
Deleting the deployment won't affect the model itself, so you can re-deploy the fine-tuned model that you trained for this tutorial at any time.
675
691
676
-
You can delete the deployment in [Azure OpenAI Studio](https://oai.azure.com/), via [REST API](/rest/api/aiservices/accountmanagement/deployments/delete?tabs=HTTP), [Azure CLI](/cli/azure/cognitiveservices/account/deployment#az-cognitiveservices-account-deployment-delete()), or other supported deployment methods.
692
+
You can delete the deployment in [Azure OpenAI Studio](https://oai.azure.com/), via [REST API](/rest/api/aiservices/accountmanagement/deployments/delete?tabs=HTTP), [Azure CLI](/cli/azure/cognitiveservices/account/deployment#az-cognitiveservices-account-deployment-delete()), or other supported deployment methods.
677
693
678
694
## Troubleshooting
679
695
680
696
### How do I enable fine-tuning? Create a custom model is greyed out in Azure OpenAI Studio?
681
697
682
698
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).
683
-
699
+
684
700
## Next steps
685
701
686
702
- Learn more about [fine-tuning in Azure OpenAI](../how-to/fine-tuning.md)
0 commit comments