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/cognitive-services/openai/concepts/models.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,7 @@ The service provides access to many different models. Models describe a family o
25
25
26
26
## Naming convention
27
27
28
-
Azure OpenAI's models follow a standard naming convention: `{task}-{model name}-{version #}`. For example, our most powerful natural language model is called `text-davinci-001` and a codex series model would look like `code-cushman-001`.
28
+
Azure OpenAI's models follow a standard naming convention: `{task}-{model name}-{version #}`. For example, our most powerful natural language model is called `text-davinci-001` and a Codex series model would look like `code-cushman-001`.
29
29
30
30
> Older versions of the GPT-3 models are available as `ada`, `babbage`, `curie`, `davinci` and do not follow these conventions. These models are primarily intended to be used for fine-tuning and search.
31
31
@@ -80,7 +80,7 @@ The Codex models are descendants of our base GPT-3 models that can understand an
80
80
81
81
They’re most capable in Python and proficient in over a dozen languages including JavaScript, Go, Perl, PHP, Ruby, Swift, TypeScript, SQL, and even Shell.
82
82
83
-
Currently we only offer one codex model: `code-cushman-001`.
83
+
Currently we only offer one Codex model: `code-cushman-001`.
Copy file name to clipboardExpand all lines: articles/cognitive-services/openai/how-to/fine-tuning.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
@@ -24,7 +24,7 @@ The Azure OpenAI Service lets you tailor our models to your personal datasets us
24
24
25
25
- An Azure subscription - [Create one for free](https://azure.microsoft.com/free/cognitive-services)
26
26
- Access granted to service in the desired Azure subscription. This service is currently invite only. You can fill out a new use case request here: <https://aka.ms/oai/access>. Please open an issue on this repo to contact us if you have an issue
27
-
- The following python libraries: os, requests, json
27
+
- The following Python libraries: os, requests, json
28
28
- An Azure OpenAI Service resource with a model deployed. If you don't have a resource/model the process is documented in our [resource deployment guide](../how-to/create-resource.md)
29
29
30
30
## Fine-tuning workflow
@@ -40,7 +40,7 @@ The fine-tuning workflow requires the following steps:
40
40
41
41
Your training data set consists of input & output examples for how you would like the model perform.
42
42
43
-
The training dataset you use **must** be a JSON lines (JSONL) document where each line is a prompt-completion pair and a single example. The OpenAI python CLI provides a useful data preparation tool to easily convert your data into this file format.
43
+
The training dataset you use **must** be a JSON lines (JSONL) document where each line is a prompt-completion pair and a single example. The OpenAI Python CLI provides a useful data preparation tool to easily convert your data into this file format.
44
44
45
45
Here's an example of the format:
46
46
@@ -89,7 +89,7 @@ Once you've prepared your dataset, you can upload your files to the service. We
89
89
90
90
For large data files, we recommend you import from Azure Blob. Large files can become unstable when uploaded through multipart forms because the requests are atomic and can't be retried or resumed.
91
91
92
-
The following python code will create a sample dataset and show how to upload a file and print the returned ID. Make sure to save the IDs returned as you'll need them for the fine-tuning training job creation.
92
+
The following Python code will create a sample dataset and show how to upload a file and print the returned ID. Make sure to save the IDs returned as you'll need them for the fine-tuning training job creation.
93
93
94
94
> [!IMPORTANT]
95
95
> Remember to remove the key from your code when you're done, and never post it publicly. For production, use a secure way of storing and accessing your credentials like [Azure Key Vault](../../../key-vault/general/overview.md). See the Cognitive Services [security](../../cognitive-services-security.md) article for more information.
@@ -146,7 +146,7 @@ while train_status not in ["succeeded", "failed"] or valid_status not in ["succe
146
146
147
147
After you've uploaded the training and (optional) validation file, you wish to use for your training job you're ready to start the process. You can use the [Models API](../reference.md#models) to identify which models are fine-tunable.
148
148
149
-
Once you have the model, you want to fine-tune you need to create a job. The following python code shows an example of how to create a new job:
149
+
Once you have the model, you want to fine-tune you need to create a job. The following Python code shows an example of how to create a new job:
150
150
151
151
```python
152
152
create_args = {
@@ -220,7 +220,7 @@ az cognitiveservices account deployment create
220
220
221
221
## Use a fine-tuned model
222
222
223
-
Once your model has been deployed, you can use it like any other model. Reference the deployment name you specified in the previous step. You can use either the REST API or python SDK and can continue to use all the other Completions parameters like temperature, frequency_penalty, presence_penalty, etc., on these requests to fine-tuned models.
223
+
Once your model has been deployed, you can use it like any other model. Reference the deployment name you specified in the previous step. You can use either the REST API or Python SDK and can continue to use all the other Completions parameters like temperature, frequency_penalty, presence_penalty, etc., on these requests to fine-tuned models.
224
224
225
225
```python
226
226
print('Sending a test completion job')
@@ -316,4 +316,4 @@ That said, tweaking the hyperparameters used for fine-tuning can often lead to a
316
316
## Next Steps
317
317
318
318
- Explore the full RESTAPI Reference documentation to learn more about all the fine-tuning capabilities. You can find the [full REST documentation here](../reference.md).
319
-
- Explore more of the [pythonSDK operations here](https://github.com/openai/openai-python/blob/main/examples/azure/finetuning.ipynb).
319
+
- Explore more of the [PythonSDK operations here](https://github.com/openai/openai-python/blob/main/examples/azure/finetuning.ipynb).
Copy file name to clipboardExpand all lines: articles/cognitive-services/openai/how-to/work-with-code.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
@@ -101,7 +101,7 @@ When you show Codex the database schema, it's able to make an informed guess abo
101
101
102
102
### Specify the programming language
103
103
104
-
Codex understands dozens of different programming languages. Many share similar conventions for comments, functions and other programming syntax. By specifying the language and what version in a comment, Codex is better able to provide a completion for what you want. That said, Codex is fairly flexible with style and syntax. Here's an example for R and python.
104
+
Codex understands dozens of different programming languages. Many share similar conventions for comments, functions and other programming syntax. By specifying the language and what version in a comment, Codex is better able to provide a completion for what you want. That said, Codex is fairly flexible with style and syntax. Here's an example for R and Python.
Copy file name to clipboardExpand all lines: articles/cognitive-services/openai/includes/python.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,8 +17,8 @@ keywords:
17
17
18
18
- An Azure subscription - <ahref="https://azure.microsoft.com/free/cognitive-services"target="_blank">Create one for free</a>
19
19
- Access granted to service in the desired Azure subscription. This service is currently invite only. You can fill out a new use case request here:<ahref="https://aka.ms/oai/access"target="_blank">https://aka.ms/oai/access</a>
- The following python libraries: os, requests, json
20
+
- <ahref="https://www.python.org/"target="_blank">Python 3.7.1 or later version</a>
21
+
- The following Python libraries: os, requests, json
22
22
- An Azure OpenAI Service resource with a model deployed. If you don't have a resource/model the process is documented in our [resource deployment guide](../how-to/create-resource.md)
23
23
24
24
## Set up
@@ -45,7 +45,7 @@ Go to your resource in the Azure portal. The **Endpoint and Keys** can be found
45
45
46
46
## Create a new Python application
47
47
48
-
1. Create a new python file called quickstart.py. Then open it up in your preferred editor or IDE.
48
+
1. Create a new Python file called quickstart.py. Then open it up in your preferred editor or IDE.
49
49
50
50
2. Replace the contents of quickstart.py with the following code. Modify the code to add your key, endpoint, and deployment name:
Copy file name to clipboardExpand all lines: articles/cognitive-services/openai/includes/rest.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,8 +15,8 @@ keywords:
15
15
16
16
- An Azure subscription - <ahref="https://azure.microsoft.com/free/cognitive-services"target="_blank">Create one for free</a>
17
17
- Access granted to service in the desired Azure subscription. This service is currently invite only. You can fill out a new use case request here:<ahref="https://aka.ms/oai/access"target="_blank">https://aka.ms/oai/access</a>
- The following python libraries: os, requests, json
18
+
- <ahref="https://www.python.org/"target="_blank">Python 3.7.1 or later version</a>
19
+
- The following Python libraries: os, requests, json
20
20
- An Azure OpenAI Service resource with a model deployed. If you don't have a resource/model the process is documented in our [resource deployment guide](../how-to/create-resource.md)
21
21
22
22
## Retrieve key and endpoint
@@ -35,7 +35,7 @@ Go to your resource in the Azure portal. The **Endpoint and Keys** can be found
35
35
36
36
## Create a new Python application
37
37
38
-
Create a new python file called quickstart.py. Then open it up in your preferred editor or IDE.
38
+
Create a new Python file called quickstart.py. Then open it up in your preferred editor or IDE.
39
39
40
40
1. Replace the contents of quickstart.py with the following code.
Copy file name to clipboardExpand all lines: articles/cognitive-services/openai/includes/studio.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,7 +36,7 @@ From here, select the **create new deployment** button in the banner at the top.
36
36
37
37
## Deployments
38
38
39
-
Before you can generate text or inference, you need to deploy a model. This is done by clicking the **create new deployment** on the deployments page. From here you can select from one of our many available models. For getting started we recommend `text-davinci-002` for users in South Central and `text-davinci-001` for users in West Europe (text-davinci-002 isn't available in this region).
39
+
Before you can generate text or inference, you need to deploy a model. This is done by clicking the **create new deployment** on the deployments page. From here you can select from one of our many available models. For getting started we recommend `text-davinci-002` for users in South Central and `text-davinci-001` for users in West Europe (`text-davinci-002` isn't available in this region).
40
40
41
41
Once this is complete, select the 'Playground' button on the left nav to start experimenting.
42
42
@@ -52,7 +52,7 @@ The best way to start exploring completions is through our Playground. It's simp
52
52
- Selecting the Generate button will send the entered text to the completions API and stream the results back to the text box.
53
53
- Select the 'undo' button to undo the prior generation call
54
54
- Select the 'regenerate' button to do an undo & generation call together.
55
-
- View the code you could use to make the same call with our python SDK, curl or other REST API client
55
+
- View the code you could use to make the same call with our Python SDK, curl or other REST API client
56
56
- Configure the parameters of the completions call to improve the performance of your task. You can read more about each parameter in our [REST API](../reference.md).
57
57
58
58
1. Now that you've familiarized yourself with the playground, get started generating text by loading the **Summarize Text** example.
Copy file name to clipboardExpand all lines: articles/cognitive-services/openai/reference.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,10 +40,10 @@ The Azure OpenAI service provides two methods for authentication. you can use e
40
40
The service APIs are versioned using the ```api-version``` query parameter. All versions follow the YYYY-MM-DD date structure, with a -preview suffix for a preview service. For example:
41
41
42
42
```
43
-
POST https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2021-11-01-preview
43
+
POST https://YOUR_RESOURCE_NAME.openai.azure.com/openai/deployments/YOUR_DEPLOYMENT_NAME/completions?api-version=2022-06-01-preview
44
44
```
45
45
46
-
We currently have the following versions available: ```2022-03-01-preview``` and ```2021-11-01-preview```
46
+
We currently have the following versions available: ```2022-06-01-preview```
47
47
48
48
## Completions
49
49
With the Completions operation, the model will generate one or more predicted completions based on a provided prompt. The service can also return the probabilities of alternative tokens at each position.
@@ -514,7 +514,7 @@ GET https://{your-resource-name}.openai.azure.com/openai/fine-tunes/{fine_tune_i
0 commit comments