Skip to content
8 changes: 4 additions & 4 deletions src/together/resources/finetune.py
Original file line number Diff line number Diff line change
Expand Up @@ -614,12 +614,12 @@ def download(
)
url += "&checkpoint=model_output_path"
elif isinstance(ft_job.training_type, LoRATrainingType):
if checkpoint_type == DownloadCheckpointType.DEFAULT:
checkpoint_type = DownloadCheckpointType.MERGED
if checkpoint_type == DownloadCheckpointType.DEFAULT.value:
checkpoint_type = DownloadCheckpointType.MERGED.value

if checkpoint_type == DownloadCheckpointType.MERGED:
if checkpoint_type == DownloadCheckpointType.MERGED.value:
url += f"&checkpoint={DownloadCheckpointType.MERGED.value}"
elif checkpoint_type == DownloadCheckpointType.ADAPTER:
elif checkpoint_type == DownloadCheckpointType.ADAPTER.value:
url += f"&checkpoint={DownloadCheckpointType.ADAPTER.value}"
else:
raise ValueError(
Expand Down
Loading