Skip to content

Commit b7ef947

Browse files
Support VLM finetuning
1 parent cb3f97f commit b7ef947

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/together/cli/api/finetune.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,12 @@ def fine_tuning(ctx: click.Context) -> None:
195195
help="Whether to mask the user messages in conversational data or prompts in instruction data. "
196196
"`auto` will automatically determine whether to mask the inputs based on the data format.",
197197
)
198+
@click.option(
199+
"--train-vision",
200+
type=bool,
201+
default=False,
202+
help="Whether to train the vision encoder. Only supported for multimodal models.",
203+
)
198204
@click.option(
199205
"--from-checkpoint",
200206
type=str,

src/together/types/finetune.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -321,6 +321,8 @@ class FinetuneResponse(BaseModel):
321321
training_file_size: int | None = Field(None, alias="TrainingFileSize")
322322
train_on_inputs: StrictBool | Literal["auto"] | None = "auto"
323323
from_checkpoint: str | None = None
324+
# multimodal parameters
325+
multimodal_params: FinetuneMultimodalParams | None = None
324326

325327
progress: FinetuneProgress | None = None
326328

0 commit comments

Comments
 (0)