ok Merge branch 'main' of github.com:ml-explore/mlx-examples into add_modelscope

This commit is contained in:
xingjun.wang
2025-01-08 02:46:56 +08:00
2 changed files with 2 additions and 4 deletions

View File

@@ -697,12 +697,10 @@ def upload_to_hub(path: str, upload_repo: str, hf_path: str):
api = HfApi()
api.create_repo(repo_id=upload_repo, exist_ok=True)
api.upload_folder(
api.upload_large_folder(
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.")