File tree Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Expand file tree Collapse file tree 2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -369,8 +369,7 @@ def from_pretrained(
369369 raise EnvironmentError (
370370 f"{ pretrained_model_name_or_path } is not a local folder and is not a valid model identifier "
371371 "listed on 'https://huggingface.co/models'\n If this is a private repository, make sure to pass a "
372- "token having permission to this repo with `token` or log in with `huggingface-cli "
373- "login`."
372+ "token having permission to this repo with `token` or log in with `hf auth login`."
374373 )
375374 except RevisionNotFoundError :
376375 raise EnvironmentError (
Original file line number Diff line number Diff line change @@ -304,8 +304,7 @@ def _get_model_file(
304304 raise EnvironmentError (
305305 f"{ pretrained_model_name_or_path } is not a local folder and is not a valid model identifier "
306306 "listed on 'https://huggingface.co/models'\n If this is a private repository, make sure to pass a "
307- "token having permission to this repo with `token` or log in with `huggingface-cli "
308- "login`."
307+ "token having permission to this repo with `token` or log in with `hf auth login`."
309308 ) from e
310309 except RevisionNotFoundError as e :
311310 raise EnvironmentError (
@@ -516,7 +515,7 @@ def push_to_hub(
516515 organization's default is private. This value is ignored if the repo already exists.
517516 token (`str`, *optional*):
518517 The token to use as HTTP bearer authorization for remote files. The token generated when running
519- `huggingface-cli login` (stored in `~/.huggingface`).
518+ `hf auth login` (stored in `~/.huggingface`).
520519 create_pr (`bool`, *optional*, defaults to `False`):
521520 Whether or not to create a PR with the uploaded files or directly commit.
522521 safe_serialization (`bool`, *optional*, defaults to `True`):
You can’t perform that action at this time.
0 commit comments