Error while doing fine tuning

Aditya 0 Reputation points
2024-10-23T11:08:44.34+00:00

Why do i get the following error when i try to fine tune using the code available in documentation.

BadRequestError: Error code: 400 - {'error': {'code': 'invalidPayload', 'message': 'The specified base model does not support fine-tuning.'}}

This is code i am running (same code that is available in documentation for fine-tuning)

# Submit fine-tuning training job

response = client.fine_tuning.jobs.create(
    training_file = training_file_id,
    validation_file = validation_file_id,
    model = "gpt-4o-mini-2024-07-18", # Enter base model name. Note that in Azure OpenAI the model name contains dashes and cannot contain dot/period characters.
    seed = 103 # seed parameter controls reproducibility of the fine-tuning job. If no seed is specified one will be generated automatically.
)

job_id = response.id

# You can use the job ID to monitor the status of the fine-tuning job.
# The fine-tuning job will take some time to start and complete.

print("Job ID:", response.id)
print("Status:", response.status)
print(response.model_dump_json(indent=2))
Azure OpenAI Service
Azure OpenAI Service
An Azure service that provides access to OpenAI’s GPT-3 models with enterprise capabilities.
3,308 questions
{count} vote

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 35,096 Reputation points
    2024-10-28T16:17:46.7333333+00:00

    Aditya Apologies for the delay in response.I further verified from my end and found that the gpt-4o-mini 2024-07-18 model is not available in East US region for fine-tuning.Only available in below mentioned regions. see region where gpt-4o-mini-2024-07-18 fine-tuning is available?

    User's image

    I would suggest you, please try in any of the available regions and let me know if that solves your issue.


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.