I am attempting to finetune a davinci-002 through the fine-tuning API but am getting an error:
BadRequestError: Error code: 400 - {'error': {'message': 'Model davinci-002 is not available for fine-tuning or does not exist.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_available'}}
My code is as follows:
from openai import OpenAI
OPENAI_API_KEY = os.getenv("OPENAI_API_KEY")
client = OpenAI(api_key=OPENAI_API_KEY)
job_truth = client.fine_tuning.jobs.create(
training_file='file-...',
model="davinci-002",
suffix="truthful",
hyperparameters={
"n_epochs":5,
"batch_size":21,
"learning_rate_multiplier":0.1
}
)
I am using openai version 1.65.2 in python. davinci-002 shows up as a fine-tunable model in the docs, any suggestions?