Skip to content

Commit a9a8b1d

Browse files
authored
Update fine-tuning-python.md
1 parent cee3876 commit a9a8b1d

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

articles/cognitive-services/openai/includes/fine-tuning-python.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ status = resp["status"]
204204
print(f'Fine-tuning model with job ID: {job_id}.')
205205
```
206206

207-
You can either use default values for the hyperparameters of the fine-tune job, or you can adjust those hyperparameters for your customization needs. For the previous Python example, we've set the `n_epochs` hyperparameter to 1, indicating that we want just one full cycle through the training data. For more information about these hyperparameters, see the [Create a Fine tune job](/rest/api/cognitiveservices/azureopenaipreview/fine-tunes/create) section of the [REST API](/rest/api/cognitiveservices/azureopenaipreview/fine-tunes) documentation.
207+
You can either use default values for the hyperparameters of the fine-tune job, or you can adjust those hyperparameters for your customization needs. For the previous Python example, we've set the `n_epochs` hyperparameter to 1, indicating that we want just one full cycle through the training data. For more information about these hyperparameters, see the [Create a Fine tune job](/rest/api/cognitiveservices/azureopenaistable/fine-tunes/create) section of the [REST API](/rest/api/cognitiveservices/azureopenaistable/fine-tunes) documentation.
208208

209209
## Check the status of your customized model
210210

@@ -234,7 +234,7 @@ print(f'Found {len(result)} fine-tune jobs.')
234234

235235
## Deploy a customized model
236236

237-
When the fine-tune job has succeeded, the value of `fine_tuned_model` in the response body of the FineTune.retrieve() method is set to the name of your customized model. Your model is now also available for discovery from the [list Models API](/rest/api/cognitiveservices/azureopenaipreview/models/list). However, you can't issue completion calls to your customized model until your customized model is deployed. You must deploy your customized model to make it available for use with completion calls.
237+
When the fine-tune job has succeeded, the value of `fine_tuned_model` in the response body of the FineTune.retrieve() method is set to the name of your customized model. Your model is now also available for discovery from the [list Models API](/rest/api/cognitiveservices/azureopenaistable/models/list). However, you can't issue completion calls to your customized model until your customized model is deployed. You must deploy your customized model to make it available for use with completion calls.
238238

239239
> [!NOTE]
240240
> As with all applications, we require a review process prior to going live.
@@ -347,7 +347,7 @@ You can use various methods to delete the deployment for your customized model:
347347

348348
- [Azure OpenAI Studio](../how-to/fine-tuning.md?pivots=programming-language-studio#delete-your-model-deployment)</a>
349349
- [Azure CLI](/cli/azure/cognitiveservices/account/deployment?preserve-view=true#az-cognitiveservices-account-deployment-delete)
350-
- [REST APIs](/rest/api/cognitiveservices/azureopenaipreview/deployments/delete)
350+
- [REST APIs](/rest/api/cognitiveservices/azureopenaistable/deployments/delete)
351351
- Python SDK
352352

353353
The following Python example uses the Python SDK to delete the deployment for your customized model.
@@ -363,7 +363,7 @@ result = openai.Deployment.delete(sid=deployment_id)
363363
Similarly, you can use various methods to delete your customized model:
364364

365365
- [Azure OpenAI Studio](../how-to/fine-tuning.md?pivots=programming-language-studio#delete-your-customized-model)
366-
- [REST APIs](/rest/api/cognitiveservices/azureopenaipreview/fine-tunes/delete)
366+
- [REST APIs](/rest/api/cognitiveservices/azureopenaistable/fine-tunes/delete)
367367
- Python SDK
368368

369369
> [!NOTE]
@@ -382,7 +382,7 @@ result = openai.FineTune.delete(sid=job_id)
382382
You can optionally delete training and validation files you've uploaded for training, and result files generated during training, from your Azure OpenAI subscription. You can use the following methods to delete your training, validation, and result files:
383383

384384
- [Azure OpenAI Studio](../how-to/fine-tuning.md?pivots=programming-language-studio#delete-your-training-files)
385-
- [REST APIs](/rest/api/cognitiveservices/azureopenaipreview/files/delete)
385+
- [REST APIs](/rest/api/cognitiveservices/azureopenaistable/files/delete)
386386
- Python SDK
387387

388388
The following Python example uses the Python SDK to delete the training, validation, and result files for your customized model.
@@ -411,5 +411,5 @@ for id in results:
411411

412412
## Next steps
413413

414-
- Explore the control plane REST API Reference documentation to learn more about all the fine-tuning capabilities. You can find the [control plane REST documentation here](/rest/api/cognitiveservices/azureopenaipreview/deployments).
414+
- Explore the control plane REST API Reference documentation to learn more about all the fine-tuning capabilities. You can find the [control plane REST documentation here](/rest/api/cognitiveservices/azureopenaistable/deployments).
415415
- Explore more of the [Python SDK operations here](https://github.com/openai/openai-python/blob/main/examples/azure/finetuning.ipynb).

0 commit comments

Comments
 (0)