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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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.")

View File

@ -64,6 +64,8 @@ python generate.py --model {repo_id} --prompt "My name is"
folder_path=path,
repo_id=repo_id,
repo_type="model",
multi_commits=True,
multi_commits_verbose=True,
)