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
commit 6bb7163013
2 changed files with 2 additions and 4 deletions

View File

@ -45,7 +45,7 @@ def setup_arg_parser():
parser.add_argument( parser.add_argument(
"--extra-eos-token", "--extra-eos-token",
type=str, type=str,
default=None, default=(),
nargs="+", nargs="+",
help="Add tokens in the list of eos tokens that stop generation.", help="Add tokens in the list of eos tokens that stop generation.",
) )

View File

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