mirror of
https://github.com/ml-explore/mlx-examples.git
synced 2025-08-28 15:08:37 +08:00
ok Merge branch 'main' of github.com:ml-explore/mlx-examples into add_modelscope
This commit is contained in:
commit
6bb7163013
@ -45,7 +45,7 @@ def setup_arg_parser():
|
||||
parser.add_argument(
|
||||
"--extra-eos-token",
|
||||
type=str,
|
||||
default=None,
|
||||
default=(),
|
||||
nargs="+",
|
||||
help="Add tokens in the list of eos tokens that stop generation.",
|
||||
)
|
||||
|
@ -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.")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user