-
Notifications
You must be signed in to change notification settings - Fork 21
Add instruction and conversational data support #211
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
f55bb8c
8c5106c
d90b4a5
8be70ac
a5d666a
ff47c02
8a6b63d
ad9d0a8
487fbae
a400517
c933f16
6423330
85c51c4
6268151
6f3f8e3
567abda
268ca77
f8c6166
b1f3a17
387a23b
34d9177
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -3,7 +3,7 @@ | |
| from enum import Enum | ||
| from typing import List, Literal | ||
|
|
||
| from pydantic import Field, validator, field_validator | ||
| from pydantic import StrictBool, Field, validator, field_validator | ||
|
|
||
| from together.types.abstract import BaseModel | ||
| from together.types.common import ( | ||
|
|
@@ -163,6 +163,7 @@ class FinetuneRequest(BaseModel): | |
| # weights & biases api key | ||
| wandb_key: str | None = None | ||
| training_type: FullTrainingType | LoRATrainingType | None = None | ||
| train_on_inputs: StrictBool | Literal["auto"] = "auto" | ||
|
|
||
|
|
||
| class FinetuneResponse(BaseModel): | ||
|
|
@@ -230,6 +231,7 @@ class FinetuneResponse(BaseModel): | |
| # training file metadata | ||
| training_file_num_lines: int | None = Field(None, alias="TrainingFileNumLines") | ||
| training_file_size: int | None = Field(None, alias="TrainingFileSize") | ||
| train_on_inputs: StrictBool | Literal["auto"] | None = "auto" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Is None still possible as a response, because older jobs don't have that attribute?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Yup, it's for retrieve or any other command that can see an old data |
||
|
|
||
| @field_validator("training_type") | ||
| @classmethod | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.