issue faced when trying to finetune openai gpt3.5-turbo model with api_base

Maswadkar 20 Reputation points
2023-08-30T06:43:02.8266667+00:00

I am trying to finetune gpt3.5-turbo model

when using

import openai
import os

openai.api_key = os.getenv("OPENAI_API_KEY")
tester = openai.File.create(file=open("testdata.jsonl",'rb'), purpose="fine-tune")

it works perfectly. I can proceed and get a finetuned model

But when working with "Azure OpenAI"

import openai
import os

openai.api_base = "https://tester.openai.azure.com"
openai.api_version = "2023-05-15"
openai.api_key = os.getenv("OPENAI_TESTER_API_KEY")

tester = openai.File.create(file=open("testdata.jsonl",'rb'), purpose="fine-tune")

I get an error






Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
4,092 questions
0 comments No comments
{count} votes

Accepted answer
  1. romungi-MSFT 48,911 Reputation points Microsoft Employee Moderator
    2023-08-30T12:17:44.19+00:00

    @Maswadkar Currently, fine tuning is turned off for new customers due to capacity constraints while using an Azure OpenAI resource. You can look up the models page of Azure OpenAI documentation where the models have listed fine tuning as not available(NA).

    As more regions are added to Azure OpenAI, this restriction might be removed and fine tuning will be available to new users. I hope this helps!! Thanks!!

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.