Skip to content

Commit 5485234

Browse files
authored
(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
1 parent a7e259c commit 5485234

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

openai/cli.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -394,6 +394,7 @@ def create(cls, args):
394394

395395
for hparam in (
396396
"model",
397+
"suffix",
397398
"n_epochs",
398399
"batch_size",
399400
"learning_rate_multiplier",
@@ -880,6 +881,17 @@ def help(args):
880881
"--model",
881882
help="The model to start fine-tuning from",
882883
)
884+
sub.add_argument(
885+
"--suffix",
886+
help="If set, this argument can be used to customize the generated fine-tuned model name."
887+
"All punctuation and whitespace in `suffix` will be replaced with a "
888+
"single dash, and the string will be lower cased. The max "
889+
"length of `suffix` is 40 chars. "
890+
"The generated name will match the form `{base_model}:ft-{org-title}:{suffix}-{timestamp}`. "
891+
'For example, `openai api fine_tunes.create -t test.jsonl -m ada --suffix "custom model name" '
892+
"could generate a model with the name "
893+
"ada:ft-your-org:custom-model-name-2022-02-15-04-21-04",
894+
)
883895
sub.add_argument(
884896
"--no_follow",
885897
action="store_true",

openai/version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
VERSION = "0.14.0"
1+
VERSION = "0.15.0"

0 commit comments

Comments
 (0)