Skip to content

Commit 58fee49

Browse files
authored
Merge pull request openai#89 from openai/dev/stevenh/update-finetune-spec
Updates to fine-tuning spec
2 parents b060f6d + 78196bb commit 58fee49

File tree

1 file changed

+14
-8
lines changed

1 file changed

+14
-8
lines changed

openapi.yaml

Lines changed: 14 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ paths:
323323
"finish_reason": null
324324
}
325325
],
326-
"model": "text-davinci-003"
326+
"model": "gpt-3.5-turbo-instruct"
327327
}
328328
/edits:
329329
post:
@@ -1136,7 +1136,7 @@ paths:
11361136
"fine_tuned_model": null,
11371137
"organization_id": "org-123",
11381138
"result_files": [],
1139-
"status": "pending",
1139+
"status": "queued",
11401140
"validation_file": null,
11411141
"training_file": "file-abc123",
11421142
}
@@ -1183,7 +1183,7 @@ paths:
11831183
"fine_tuned_model": null,
11841184
"organization_id": "org-123",
11851185
"result_files": [],
1186-
"status": "pending",
1186+
"status": "queued",
11871187
"validation_file": null,
11881188
"training_file": "file-abc123",
11891189
"hyperparameters":{"n_epochs":2},
@@ -2270,6 +2270,7 @@ components:
22702270
[
22712271
"babbage-002",
22722272
"davinci-002",
2273+
"gpt-3.5-turbo-instruct",
22732274
"text-davinci-003",
22742275
"text-davinci-002",
22752276
"text-davinci-001",
@@ -3870,7 +3871,7 @@ components:
38703871
description: The organization that owns the fine-tuning job.
38713872
status:
38723873
type: string
3873-
description: The current status of the fine-tuning job, which can be either `created`, `pending`, `running`, `succeeded`, `failed`, or `cancelled`.
3874+
description: The current status of the fine-tuning job, which can be either `validating_files`, `queued`, `running`, `succeeded`, `failed`, or `cancelled`.
38743875
hyperparameters:
38753876
type: object
38763877
description: The hyperparameters used for the fine-tuning job. See the [fine-tuning guide](/docs/guides/fine-tuning) for more details.
@@ -3884,10 +3885,11 @@ components:
38843885
maximum: 50
38853886
default: auto
38863887
description:
3887-
The number of epochs to train the model for. An epoch refers to one
3888-
full cycle through the training dataset.
3888+
The number of epochs to train the model for. An epoch refers to one full cycle through the training dataset.
38893889

3890-
"Auto" decides the optimal number of epochs based on the size of the dataset. If setting the number manually, we support any number between 1 and 50 epochs.
3890+
"auto" decides the optimal number of epochs based on the size of the dataset. If setting the number manually, we support any number between 1 and 50 epochs.
3891+
required:
3892+
- n_epochs
38913893
training_file:
38923894
type: string
38933895
description: The file ID used for training. You can retrieve the training data with the [Files API](/docs/api-reference/files/retrieve-contents).
@@ -3920,11 +3922,15 @@ components:
39203922
type: string
39213923
description: The parameter that was invalid, usually `training_file` or `validation_file`. This field will be null if the failure was not parameter-specific.
39223924
nullable: true
3925+
required:
3926+
- message
3927+
- code
3928+
- param
39233929
required:
39243930
- id
39253931
- object
39263932
- created_at
3927-
- updated_at
3933+
- finished_at
39283934
- model
39293935
- fine_tuned_model
39303936
- organization_id

0 commit comments

Comments
 (0)