Skip to content

Commit 21ea112

Browse files
committed
add two field set exception
1 parent ca96001 commit 21ea112

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/together/resources/finetune.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,11 @@ def createFinetuneRequest(
7777
from_checkpoint: str | None = None,
7878
) -> FinetuneRequest:
7979

80+
if model is not None and from_checkpoint is not None:
81+
raise ValueError(
82+
"You must specify either a model or a checkpoint to start a job from, not both"
83+
)
84+
8085
if batch_size == "max":
8186
log_warn_once(
8287
"Starting from together>=1.3.0, "

0 commit comments

Comments
 (0)