Custom Fine-tune names

Hi everyone! Quick update, we’ve added the ability to customize your fine-tune model names with a suffix parameter.

openai api fine_tunes.create -t test.jsonl -m ada --suffix "custom model name"

Would create a model named:

ada:ft-your-org:custom-model-name-2022-02-15-04-21-04

Have a great weekend!

(PS remember to upgrade first: pip install --upgrade openai)

19 Likes

Whooo, I remember asking for this feature, thank you!

6 Likes

Thanks so much. I almost had the long-names memorized! haha

Keep up the great work!

5 Likes

Phew! Thank you for the update!

4 Likes

Does this only work in the CLI? Would it work using the REST API? Or does the CLI use the REST API? I was only able to find the suffix mentioned in this context in one location in the github repo:

I see the suffix mentioned here: OpenAI API

In short, would the following snippet work?

payload = {'training_file': fileid, 'model': model, 'suffix': suffix}
resp = requests.request(method='POST', url='https://api.openai.com/v1/fine-tunes', json=payload, headers=header, timeout=45)

UPDATE: I answered my own question. Yes, the above code worked! :smiley:

4 Likes

Hi, is there a way to rename an existing fine-tuned model ?

Thank you! Seems very interesting.