mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-06-26 02:33:23 +08:00
Force multi_commits when uploading to HF (#729)
This commit is contained in:
parent
699de35b03
commit
510d2bde49
@ -469,6 +469,8 @@ def upload_to_hub(path: str, upload_repo: str, hf_path: str):
|
|||||||
folder_path=path,
|
folder_path=path,
|
||||||
repo_id=upload_repo,
|
repo_id=upload_repo,
|
||||||
repo_type="model",
|
repo_type="model",
|
||||||
|
multi_commits=True,
|
||||||
|
multi_commits_verbose=True,
|
||||||
)
|
)
|
||||||
print(f"Upload successful, go to https://huggingface.co/{upload_repo} for details.")
|
print(f"Upload successful, go to https://huggingface.co/{upload_repo} for details.")
|
||||||
|
|
||||||
|
@ -64,6 +64,8 @@ python generate.py --model {repo_id} --prompt "My name is"
|
|||||||
folder_path=path,
|
folder_path=path,
|
||||||
repo_id=repo_id,
|
repo_id=repo_id,
|
||||||
repo_type="model",
|
repo_type="model",
|
||||||
|
multi_commits=True,
|
||||||
|
multi_commits_verbose=True,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user