@@ -344,6 +344,7 @@ def create(
344344 simpo_gamma : float | None = None ,
345345 from_checkpoint : str | None = None ,
346346 hf_api_token : str | None = None ,
347+ hf_repo_to_upload : str | None = None ,
347348 ) -> FinetuneResponse :
348349 """
349350 Method to initiate a fine-tuning job
@@ -401,6 +402,7 @@ def create(
401402 The format: {$JOB_ID/$OUTPUT_MODEL_NAME}:{$STEP}.
402403 The step value is optional, without it the final checkpoint will be used.
403404 hf_api_token (str, optional): API key for the Hugging Face Hub. Defaults to None.
405+ hf_repo_to_upload (str, optional): HF repo to upload the fine-tuned model to. Defaults to None.
404406
405407 Returns:
406408 FinetuneResponse: Object containing information about fine-tuning job.
@@ -455,6 +457,7 @@ def create(
455457 simpo_gamma = simpo_gamma ,
456458 from_checkpoint = from_checkpoint ,
457459 hf_api_token = hf_api_token ,
460+ hf_repo_to_upload = hf_repo_to_upload ,
458461 )
459462
460463 if verbose :
@@ -768,6 +771,7 @@ async def create(
768771 simpo_gamma : float | None = None ,
769772 from_checkpoint : str | None = None ,
770773 hf_api_token : str | None = None ,
774+ hf_repo_to_upload : str | None = None ,
771775 ) -> FinetuneResponse :
772776 """
773777 Async method to initiate a fine-tuning job
@@ -825,6 +829,7 @@ async def create(
825829 The format: {$JOB_ID/$OUTPUT_MODEL_NAME}:{$STEP}.
826830 The step value is optional, without it the final checkpoint will be used.
827831 hf_api_token (str, optional): API key for the Huggging Face Hub. Defaults to None.
832+ hf_repo_to_upload (str, optional): HF repo to upload the fine-tuned model to. Defaults to None.
828833
829834 Returns:
830835 FinetuneResponse: Object containing information about fine-tuning job.
@@ -878,8 +883,8 @@ async def create(
878883 rpo_alpha = rpo_alpha ,
879884 simpo_gamma = simpo_gamma ,
880885 from_checkpoint = from_checkpoint ,
881- from_hf_model = from_hf_model ,
882886 hf_api_token = hf_api_token ,
887+ hf_repo_to_upload = hf_repo_to_upload ,
883888 )
884889
885890 if verbose :
0 commit comments