Force multi_commits when uploading to HF (#729)

This commit is contained in:
Javier de la Rosa
2024-04-29 04:07:17 +02:00
committed by GitHub
parent 699de35b03
commit 510d2bde49
2 changed files with 4 additions and 0 deletions

View File

@@ -469,6 +469,8 @@ def upload_to_hub(path: str, upload_repo: str, hf_path: str):
folder_path=path,
repo_id=upload_repo,
repo_type="model",
multi_commits=True,
multi_commits_verbose=True,
)
print(f"Upload successful, go to https://huggingface.co/{upload_repo} for details.")