Commit 54852345

Tomer Kaftan <tomer.kaftan@gmail.com>
2022-02-24 07:39:12
(Version 0.15.0) Add fine tune creation suffix arg to openai cli (#75) tag: v0.15.0
* 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
Changed files (2)
openai/cli.py
@@ -394,6 +394,7 @@ class FineTune:
 
         for hparam in (
             "model",
+            "suffix",
             "n_epochs",
             "batch_size",
             "learning_rate_multiplier",
@@ -880,6 +881,17 @@ Mutually exclusive with `top_p`.""",
         "--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",
openai/version.py
@@ -1,1 +1,1 @@
-VERSION = "0.14.0"
+VERSION = "0.15.0"