From da1a4306bf1fa28421e26217ffab4ca5075696fe Mon Sep 17 00:00:00 2001 From: Tomer Kaftan Date: Fri, 18 Feb 2022 14:40:05 -0800 Subject: [PATCH 1/2] Add fine tune creation suffix arg to openai cli (#120) * Add fine tune creation suffix arg to openai cli --- openai/cli.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/openai/cli.py b/openai/cli.py index c57d4c973e..c46632eb2f 100644 --- a/openai/cli.py +++ b/openai/cli.py @@ -394,6 +394,7 @@ def create(cls, args): for hparam in ( "model", + "suffix", "n_epochs", "batch_size", "learning_rate_multiplier", @@ -880,6 +881,17 @@ def help(args): "--model", help="The model to start fine-tuning from", ) + sub.add_argument( + "--suffix", + help="If set, this argument can be used to customize the generated fine-tuned model name." + "All punctuation and whitespace in `suffix` will be replaced with a " + "single dash, and the string will be lower cased. The max " + "length of `suffix` is 40 chars. " + "The generated name will match the form `{base_model}:ft-{org-title}:{suffix}-{timestamp}`. " + 'For example, `openai api fine_tunes.create -t test.jsonl -m ada --suffix "custom model name" ' + "could generate a model with the name " + "ada:ft-your-org:custom-model-name-2022-02-15-04-21-04", + ) sub.add_argument( "--no_follow", action="store_true", From 4477caaf778c2ad4d37155c9af00bc279f7892e0 Mon Sep 17 00:00:00 2001 From: Tomer Kaftan Date: Wed, 23 Feb 2022 14:11:36 -0800 Subject: [PATCH 2/2] Update the minor version from 0.14 to 0.15 due to adding a new `suffix` CLI arg when creating finetune models --- openai/version.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openai/version.py b/openai/version.py index ecea435b31..7376d84f5a 100644 --- a/openai/version.py +++ b/openai/version.py @@ -1 +1 @@ -VERSION = "0.14.0" +VERSION = "0.15.0"