Skip to content

Commit 3c11c5f

Browse files
fix from_checkpoint and hf_model
1 parent ca42382 commit 3c11c5f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/together/resources/finetune.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ def create(
481481
hf_api_token=hf_api_token,
482482
hf_output_repo_name=hf_output_repo_name,
483483
)
484-
if from_checkpoint is None:
484+
if from_checkpoint is None and from_hf_model is None:
485485
price_estimation_result = self.estimate_price(
486486
training_file=training_file,
487487
validation_file=validation_file,
@@ -1045,7 +1045,7 @@ async def create(
10451045
hf_output_repo_name=hf_output_repo_name,
10461046
)
10471047

1048-
if from_checkpoint is not None:
1048+
if from_checkpoint is None and from_hf_model is None:
10491049
price_estimation_result = await self.estimate_price(
10501050
training_file=training_file,
10511051
validation_file=validation_file,

0 commit comments

Comments
 (0)