Help Needed ! . Service unavailable error on finetuning

Iam getting an error like this

openai.InternalServerError: Error code: 503 - {'error': {'code': 503, 'message': 'Service Unavailable.', 'param': None, 'type': 'cf_service_unavailable'}}

import openai

openai.api_key = 'My api key'
# client =  openai.api_key

# Replace 'file_path_to_your_jsonl_file' with the path to your .jsonl file
response = openai.files.create(
  file=open('train.jsonl',  "rb"),


@rohancalum any updates on this

I’m facing this issue too :smiling_face_with_tear:

what to do now???. will they solve the issue after some time

Instability on this was officially reported yesterday … work must be ongoing

But it was working in the morning.How much time does it usually take to address the issue

It was supposedly resolved a few hours ago but maybe issues have since resurfaced.

Nothing new on as of now but you might want to keep an eye on that.

1 Like

while file tune model using
from openai import OpenAI

import json

import openai

import os

import pandas as pd

from pprint import pprint

client = openai.OpenAI(api_key=os.environ.get(“OPENAI_API_KEY”))

Upload Training and Validation Files

training_file = client.files.create(

file=open(training_file_name, “rb”), purpose=“fine-tune”


validation_file = client.files.create(

file=open(validation_file_name, “rb”), purpose=“fine-tune”


print(“Training file ID:”,

print(“Validation file ID:”,

error gets like