From 54852345065612bebfe26ad3d02cff1794abcafc Mon Sep 17 00:00:00 2001 From: Tomer Kaftan Date: Wed, 23 Feb 2022 15:39:12 -0800 Subject: [PATCH] (Version 0.15.0) Add fine tune creation suffix arg to openai cli (#75) * Add fine tune creation suffix arg to openai cli (#120) * Update the minor version from 0.14 to 0.15 due to adding a new `suffix` CLI arg when creating finetune models --- openai/cli.py | 12 ++++++++++++ openai/version.py | 2 +- 2 files changed, 13 insertions(+), 1 deletion(-) 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", 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"