I am attempting to start a fine-tuning job using GPT 3.5-turbo via a Python call, using the format listed in the fine-tuning reference, essentially:
import os
import openai
openai.api_key = os.getenv("OPENAI_API_KEY")
openai.FineTuningJob.create(training_file="file-abc123", model="gpt-3.5-turbo")
However, I am running into the AttributeError “module ‘openai’ has no attribute ‘FineTuneingJob’”.
I am running openai v0.27.4. In addition, I uploaded my training data successfully using
openai.File.create()
However, attempting to query my uploaded files via
openai.File.list()
fails with the same AttributeError.
Any suggestions how to fix this?
_j
2
A new openai module has come down newer than yours and newer than the one that’s been unchanged for a while:
pip install --upgrade openai
...
Installing collected packages: openai
Attempting uninstall: openai
Found existing installation: openai 0.27.6
Uninstalling openai-0.27.6:
Successfully uninstalled openai-0.27.6
Successfully installed openai-0.27.9
Training gpt-3.5-turbo, as only announced yesterday, requires use of a new endpoint besides the new style of examples.
4 Likes
I updated to openai-0.27.9, however the problem still persists.
Just to be sure I checked the attribute list for openai and I still see the old ‘FineTune’ is available, but ‘FineTuningJob’ is not listed
1 Like
Update, looks like there was a kernel error on my machine, reloaded and now the problem is fixed. Thanks for the help!
1 Like