diff --git a/examples/flax/image-captioning/run_image_captioning_flax.py b/examples/flax/image-captioning/run_image_captioning_flax.py index 4552defb8e..348a719857 100644 --- a/examples/flax/image-captioning/run_image_captioning_flax.py +++ b/examples/flax/image-captioning/run_image_captioning_flax.py @@ -186,7 +186,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/flax/language-modeling/run_bart_dlm_flax.py b/examples/flax/language-modeling/run_bart_dlm_flax.py index 5c8bf1bbc4..6396f4ced9 100644 --- a/examples/flax/language-modeling/run_bart_dlm_flax.py +++ b/examples/flax/language-modeling/run_bart_dlm_flax.py @@ -172,7 +172,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/flax/language-modeling/run_clm_flax.py b/examples/flax/language-modeling/run_clm_flax.py index 5fe786da7c..1a0428fdd6 100755 --- a/examples/flax/language-modeling/run_clm_flax.py +++ b/examples/flax/language-modeling/run_clm_flax.py @@ -173,7 +173,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/flax/language-modeling/run_mlm_flax.py b/examples/flax/language-modeling/run_mlm_flax.py index f3f3c324ec..65f6a2285d 100755 --- a/examples/flax/language-modeling/run_mlm_flax.py +++ b/examples/flax/language-modeling/run_mlm_flax.py @@ -172,7 +172,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/flax/language-modeling/run_t5_mlm_flax.py b/examples/flax/language-modeling/run_t5_mlm_flax.py index a2906c4108..0030fc8da6 100755 --- a/examples/flax/language-modeling/run_t5_mlm_flax.py +++ b/examples/flax/language-modeling/run_t5_mlm_flax.py @@ -172,7 +172,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/flax/question-answering/run_qa.py b/examples/flax/question-answering/run_qa.py index 0873b19413..1b951e3583 100644 --- a/examples/flax/question-answering/run_qa.py +++ b/examples/flax/question-answering/run_qa.py @@ -159,7 +159,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/flax/summarization/run_summarization_flax.py b/examples/flax/summarization/run_summarization_flax.py index 856fd6fdb7..c193fe0bc3 100644 --- a/examples/flax/summarization/run_summarization_flax.py +++ b/examples/flax/summarization/run_summarization_flax.py @@ -186,7 +186,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/flax/text-classification/run_flax_glue.py b/examples/flax/text-classification/run_flax_glue.py index 7f5524dbb4..e0dfab2f52 100755 --- a/examples/flax/text-classification/run_flax_glue.py +++ b/examples/flax/text-classification/run_flax_glue.py @@ -105,7 +105,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/flax/token-classification/run_flax_ner.py b/examples/flax/token-classification/run_flax_ner.py index 0a66b5f199..ad68c0997f 100644 --- a/examples/flax/token-classification/run_flax_ner.py +++ b/examples/flax/token-classification/run_flax_ner.py @@ -153,7 +153,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/flax/vision/run_image_classification.py b/examples/flax/vision/run_image_classification.py index 305dd3ac20..3de3c977ab 100644 --- a/examples/flax/vision/run_image_classification.py +++ b/examples/flax/vision/run_image_classification.py @@ -162,7 +162,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/audio-classification/run_audio_classification.py b/examples/pytorch/audio-classification/run_audio_classification.py index 6c2a6cb880..9ebd4fb007 100644 --- a/examples/pytorch/audio-classification/run_audio_classification.py +++ b/examples/pytorch/audio-classification/run_audio_classification.py @@ -156,7 +156,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/contrastive-image-text/run_clip.py b/examples/pytorch/contrastive-image-text/run_clip.py index 22b420d856..d3c5355f9d 100644 --- a/examples/pytorch/contrastive-image-text/run_clip.py +++ b/examples/pytorch/contrastive-image-text/run_clip.py @@ -90,7 +90,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/image-classification/run_image_classification.py b/examples/pytorch/image-classification/run_image_classification.py index f8c2c95f59..2d26e42604 100644 --- a/examples/pytorch/image-classification/run_image_classification.py +++ b/examples/pytorch/image-classification/run_image_classification.py @@ -145,7 +145,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/image-pretraining/run_mae.py b/examples/pytorch/image-pretraining/run_mae.py index aa8de32d8c..3ac4106b11 100644 --- a/examples/pytorch/image-pretraining/run_mae.py +++ b/examples/pytorch/image-pretraining/run_mae.py @@ -137,7 +137,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/image-pretraining/run_mim.py b/examples/pytorch/image-pretraining/run_mim.py index f60b216008..7626e8be36 100644 --- a/examples/pytorch/image-pretraining/run_mim.py +++ b/examples/pytorch/image-pretraining/run_mim.py @@ -157,7 +157,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/language-modeling/run_clm.py b/examples/pytorch/language-modeling/run_clm.py index 53052d7671..ca992c0456 100755 --- a/examples/pytorch/language-modeling/run_clm.py +++ b/examples/pytorch/language-modeling/run_clm.py @@ -114,7 +114,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/language-modeling/run_mlm.py b/examples/pytorch/language-modeling/run_mlm.py index dcc8bcd3cd..b635a7aea6 100755 --- a/examples/pytorch/language-modeling/run_mlm.py +++ b/examples/pytorch/language-modeling/run_mlm.py @@ -111,7 +111,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/language-modeling/run_plm.py b/examples/pytorch/language-modeling/run_plm.py index 15ff8eb45f..4a885ee496 100755 --- a/examples/pytorch/language-modeling/run_plm.py +++ b/examples/pytorch/language-modeling/run_plm.py @@ -99,7 +99,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/multiple-choice/run_swag.py b/examples/pytorch/multiple-choice/run_swag.py index 5771165caf..f9df919e1f 100755 --- a/examples/pytorch/multiple-choice/run_swag.py +++ b/examples/pytorch/multiple-choice/run_swag.py @@ -83,7 +83,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/question-answering/run_qa.py b/examples/pytorch/question-answering/run_qa.py index cddcb4891b..54db2b7bb1 100755 --- a/examples/pytorch/question-answering/run_qa.py +++ b/examples/pytorch/question-answering/run_qa.py @@ -83,7 +83,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/question-answering/run_qa_beam_search.py b/examples/pytorch/question-answering/run_qa_beam_search.py index 1c389e43f3..ce110ae364 100755 --- a/examples/pytorch/question-answering/run_qa_beam_search.py +++ b/examples/pytorch/question-answering/run_qa_beam_search.py @@ -82,7 +82,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/question-answering/run_seq2seq_qa.py b/examples/pytorch/question-answering/run_seq2seq_qa.py index c3c85b31da..8ffe114dbb 100644 --- a/examples/pytorch/question-answering/run_seq2seq_qa.py +++ b/examples/pytorch/question-answering/run_seq2seq_qa.py @@ -83,7 +83,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py b/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py index 92d07f8f91..bc1bfb2c1c 100644 --- a/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py +++ b/examples/pytorch/semantic-segmentation/run_semantic_segmentation.py @@ -246,7 +246,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py b/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py index fdbed2b3ab..36efb44138 100755 --- a/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py +++ b/examples/pytorch/speech-recognition/run_speech_recognition_ctc.py @@ -233,7 +233,7 @@ class DataTrainingArguments: metadata={ "help": ( "If :obj:`True`, will use the token generated when running" - ":obj:`transformers-cli login` as HTTP bearer authorization for remote files." + ":obj:`huggingface-cli login` as HTTP bearer authorization for remote files." ) }, ) diff --git a/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py b/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py index 0ce8ff0550..015c1f0a65 100755 --- a/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py +++ b/examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py @@ -89,7 +89,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/summarization/run_summarization.py b/examples/pytorch/summarization/run_summarization.py index 78d5b79ca4..5d6d5d5c77 100755 --- a/examples/pytorch/summarization/run_summarization.py +++ b/examples/pytorch/summarization/run_summarization.py @@ -103,7 +103,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/text-classification/run_glue.py b/examples/pytorch/text-classification/run_glue.py index 556e1f3bbe..49af0c8556 100755 --- a/examples/pytorch/text-classification/run_glue.py +++ b/examples/pytorch/text-classification/run_glue.py @@ -192,7 +192,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/text-classification/run_xnli.py b/examples/pytorch/text-classification/run_xnli.py index 2450d24e3d..d4cfc3a77d 100755 --- a/examples/pytorch/text-classification/run_xnli.py +++ b/examples/pytorch/text-classification/run_xnli.py @@ -156,7 +156,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/token-classification/run_ner.py b/examples/pytorch/token-classification/run_ner.py index 13993e58a4..9000b5006e 100755 --- a/examples/pytorch/token-classification/run_ner.py +++ b/examples/pytorch/token-classification/run_ner.py @@ -83,7 +83,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/pytorch/translation/run_translation.py b/examples/pytorch/translation/run_translation.py index a519fa1753..af1868b25a 100755 --- a/examples/pytorch/translation/run_translation.py +++ b/examples/pytorch/translation/run_translation.py @@ -93,7 +93,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/research_projects/layoutlmv3/run_funsd_cord.py b/examples/research_projects/layoutlmv3/run_funsd_cord.py index 66be61dffc..866f9a9c1b 100644 --- a/examples/research_projects/layoutlmv3/run_funsd_cord.py +++ b/examples/research_projects/layoutlmv3/run_funsd_cord.py @@ -81,7 +81,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/research_projects/mlm_wwm/run_mlm_wwm.py b/examples/research_projects/mlm_wwm/run_mlm_wwm.py index 0afa413553..f14ad5adfe 100644 --- a/examples/research_projects/mlm_wwm/run_mlm_wwm.py +++ b/examples/research_projects/mlm_wwm/run_mlm_wwm.py @@ -101,7 +101,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/research_projects/quantization-qdqbert/run_quant_qa.py b/examples/research_projects/quantization-qdqbert/run_quant_qa.py index 97eece4c1d..5008197b8b 100755 --- a/examples/research_projects/quantization-qdqbert/run_quant_qa.py +++ b/examples/research_projects/quantization-qdqbert/run_quant_qa.py @@ -84,7 +84,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_bnb.py b/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_bnb.py index afa3397eb4..5294e6a4a9 100755 --- a/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_bnb.py +++ b/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_bnb.py @@ -231,7 +231,7 @@ class DataTrainingArguments: metadata={ "help": ( "If :obj:`True`, will use the token generated when running" - ":obj:`transformers-cli login` as HTTP bearer authorization for remote files." + ":obj:`huggingface-cli login` as HTTP bearer authorization for remote files." ) }, ) diff --git a/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_streaming.py b/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_streaming.py index 57f54048a5..8add8fd20a 100644 --- a/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_streaming.py +++ b/examples/research_projects/robust-speech-event/run_speech_recognition_ctc_streaming.py @@ -234,7 +234,7 @@ class DataTrainingArguments: metadata={ "help": ( "If :obj:`True`, will use the token generated when running" - ":obj:`transformers-cli login` as HTTP bearer authorization for remote files." + ":obj:`huggingface-cli login` as HTTP bearer authorization for remote files." ) }, ) diff --git a/examples/research_projects/tapex/run_tabfact_with_tapex.py b/examples/research_projects/tapex/run_tabfact_with_tapex.py index 19c21c3394..23d094f899 100644 --- a/examples/research_projects/tapex/run_tabfact_with_tapex.py +++ b/examples/research_projects/tapex/run_tabfact_with_tapex.py @@ -175,7 +175,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/research_projects/tapex/run_wikisql_with_tapex.py b/examples/research_projects/tapex/run_wikisql_with_tapex.py index 7573893629..1d402fa7e8 100644 --- a/examples/research_projects/tapex/run_wikisql_with_tapex.py +++ b/examples/research_projects/tapex/run_wikisql_with_tapex.py @@ -104,7 +104,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/research_projects/tapex/run_wikitablequestions_with_tapex.py b/examples/research_projects/tapex/run_wikitablequestions_with_tapex.py index 7ffa8f5f91..6f93f9b516 100644 --- a/examples/research_projects/tapex/run_wikitablequestions_with_tapex.py +++ b/examples/research_projects/tapex/run_wikitablequestions_with_tapex.py @@ -102,7 +102,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/research_projects/xtreme-s/run_xtreme_s.py b/examples/research_projects/xtreme-s/run_xtreme_s.py index d3e4f5cb38..16fc1ac8a3 100644 --- a/examples/research_projects/xtreme-s/run_xtreme_s.py +++ b/examples/research_projects/xtreme-s/run_xtreme_s.py @@ -287,7 +287,7 @@ class DataTrainingArguments: metadata={ "help": ( "If :obj:`True`, will use the token generated when running" - ":obj:`transformers-cli login` as HTTP bearer authorization for remote files." + ":obj:`huggingface-cli login` as HTTP bearer authorization for remote files." ) }, ) diff --git a/examples/tensorflow/language-modeling/run_clm.py b/examples/tensorflow/language-modeling/run_clm.py index 46c8d339d9..3f12683d10 100755 --- a/examples/tensorflow/language-modeling/run_clm.py +++ b/examples/tensorflow/language-modeling/run_clm.py @@ -114,7 +114,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/tensorflow/language-modeling/run_mlm.py b/examples/tensorflow/language-modeling/run_mlm.py index 46b27dab66..b421ed8e66 100755 --- a/examples/tensorflow/language-modeling/run_mlm.py +++ b/examples/tensorflow/language-modeling/run_mlm.py @@ -115,7 +115,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/tensorflow/multiple-choice/run_swag.py b/examples/tensorflow/multiple-choice/run_swag.py index b09b0e5598..6ba35bd0fd 100644 --- a/examples/tensorflow/multiple-choice/run_swag.py +++ b/examples/tensorflow/multiple-choice/run_swag.py @@ -157,7 +157,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/tensorflow/question-answering/run_qa.py b/examples/tensorflow/question-answering/run_qa.py index bd233f378a..91293aefb3 100755 --- a/examples/tensorflow/question-answering/run_qa.py +++ b/examples/tensorflow/question-answering/run_qa.py @@ -80,7 +80,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/tensorflow/summarization/run_summarization.py b/examples/tensorflow/summarization/run_summarization.py index 5d0737fdef..6d4cf99e67 100644 --- a/examples/tensorflow/summarization/run_summarization.py +++ b/examples/tensorflow/summarization/run_summarization.py @@ -101,7 +101,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/tensorflow/text-classification/run_glue.py b/examples/tensorflow/text-classification/run_glue.py index fe7ef66ece..9fb0b3f8e4 100644 --- a/examples/tensorflow/text-classification/run_glue.py +++ b/examples/tensorflow/text-classification/run_glue.py @@ -183,7 +183,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/tensorflow/text-classification/run_text_classification.py b/examples/tensorflow/text-classification/run_text_classification.py index 210a30344d..b5d1903297 100644 --- a/examples/tensorflow/text-classification/run_text_classification.py +++ b/examples/tensorflow/text-classification/run_text_classification.py @@ -173,7 +173,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/tensorflow/token-classification/run_ner.py b/examples/tensorflow/token-classification/run_ner.py index cd4eea6fee..caa47e115a 100644 --- a/examples/tensorflow/token-classification/run_ner.py +++ b/examples/tensorflow/token-classification/run_ner.py @@ -83,7 +83,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/examples/tensorflow/translation/run_translation.py b/examples/tensorflow/translation/run_translation.py index 6e12288fd4..7f5eb9eb9d 100644 --- a/examples/tensorflow/translation/run_translation.py +++ b/examples/tensorflow/translation/run_translation.py @@ -95,7 +95,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) }, diff --git a/scripts/tatoeba/README.md b/scripts/tatoeba/README.md index b86caf51d7..7c492ec4f4 100644 --- a/scripts/tatoeba/README.md +++ b/scripts/tatoeba/README.md @@ -57,7 +57,7 @@ To upload all converted models, 2. Login to `transformers-cli` ```bash -transformers-cli login +huggingface-cli login ``` 3. Run the `upload_models` script diff --git a/scripts/tatoeba/upload_models.sh b/scripts/tatoeba/upload_models.sh index 07c21edcbd..536eb5bc68 100755 --- a/scripts/tatoeba/upload_models.sh +++ b/scripts/tatoeba/upload_models.sh @@ -2,7 +2,7 @@ for FILE in converted/*; do model_name=`basename $FILE` - transformers-cli repo create $model_name -y + huggingface-cli repo create $model_name -y git clone https://huggingface.co/Helsinki-NLP/$model_name mv $FILE/* $model_name/ cd $model_name diff --git a/src/transformers/commands/user.py b/src/transformers/commands/user.py index 2f073235d2..938f4c8ea8 100644 --- a/src/transformers/commands/user.py +++ b/src/transformers/commands/user.py @@ -22,9 +22,6 @@ from requests.exceptions import HTTPError from . import BaseTransformersCLICommand -UPLOAD_MAX_FILES = 15 - - class UserCommands(BaseTransformersCLICommand): @staticmethod def register_subcommand(parser: ArgumentParser): @@ -105,7 +102,7 @@ class LoginCommand(BaseUserCommand): def run(self): print( ANSI.red( - "ERROR! `transformers-cli login` uses an outdated login mechanism " + "ERROR! `huggingface-cli login` uses an outdated login mechanism " "that is not compatible with the Hugging Face Hub backend anymore. " "Please use `huggingface-cli login instead." ) diff --git a/src/transformers/configuration_utils.py b/src/transformers/configuration_utils.py index b10475127b..b924cec9ae 100755 --- a/src/transformers/configuration_utils.py +++ b/src/transformers/configuration_utils.py @@ -463,7 +463,7 @@ class PretrainedConfig(PushToHubMixin): 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any diff --git a/src/transformers/dynamic_module_utils.py b/src/transformers/dynamic_module_utils.py index 7baafd214c..da1434067c 100644 --- a/src/transformers/dynamic_module_utils.py +++ b/src/transformers/dynamic_module_utils.py @@ -195,7 +195,7 @@ def get_cached_module_file( 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any @@ -345,7 +345,7 @@ def get_class_from_dynamic_module( 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or `bool`, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any diff --git a/src/transformers/feature_extraction_utils.py b/src/transformers/feature_extraction_utils.py index ec68f35519..394d67a8c5 100644 --- a/src/transformers/feature_extraction_utils.py +++ b/src/transformers/feature_extraction_utils.py @@ -251,7 +251,7 @@ class FeatureExtractionMixin(PushToHubMixin): 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any diff --git a/src/transformers/modeling_tf_utils.py b/src/transformers/modeling_tf_utils.py index 1a63d32e41..354bd9592f 100644 --- a/src/transformers/modeling_tf_utils.py +++ b/src/transformers/modeling_tf_utils.py @@ -2096,7 +2096,7 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin, TFGenerationMixin, Pu Whether or not to only look at local files (e.g., not try doanloading the model). use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any @@ -2472,8 +2472,8 @@ class TFPreTrainedModel(tf.keras.Model, TFModelUtilsMixin, TFGenerationMixin, Pu Whether or not the repository created should be private (requires a paying subscription). use_auth_token (`bool` or `str`, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). Will default to `True` if - `repo_url` is not specified. + when running `huggingface-cli login` (stored in `~/.huggingface`). Will default to `True` if `repo_url` + is not specified. max_shard_size (`int` or `str`, *optional*, defaults to `"10GB"`): Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size lower than this size. If expressed as a string, needs to be digits followed diff --git a/src/transformers/modeling_utils.py b/src/transformers/modeling_utils.py index 8709ec6636..771f1d2d5d 100644 --- a/src/transformers/modeling_utils.py +++ b/src/transformers/modeling_utils.py @@ -1659,7 +1659,7 @@ class PreTrainedModel(nn.Module, ModuleUtilsMixin, GenerationMixin, PushToHubMix Whether or not to only look at local files (i.e., do not try to download the model). use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any diff --git a/src/transformers/models/auto/feature_extraction_auto.py b/src/transformers/models/auto/feature_extraction_auto.py index ed526369df..db581d03d8 100644 --- a/src/transformers/models/auto/feature_extraction_auto.py +++ b/src/transformers/models/auto/feature_extraction_auto.py @@ -142,7 +142,7 @@ def get_feature_extractor_config( 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any @@ -247,7 +247,7 @@ class AutoFeatureExtractor: 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any diff --git a/src/transformers/models/auto/processing_auto.py b/src/transformers/models/auto/processing_auto.py index d81dd19ea2..aed7b4b976 100644 --- a/src/transformers/models/auto/processing_auto.py +++ b/src/transformers/models/auto/processing_auto.py @@ -135,7 +135,7 @@ class AutoProcessor: 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any diff --git a/src/transformers/models/auto/tokenization_auto.py b/src/transformers/models/auto/tokenization_auto.py index 7a2dc2941f..d8759fd4e7 100644 --- a/src/transformers/models/auto/tokenization_auto.py +++ b/src/transformers/models/auto/tokenization_auto.py @@ -357,7 +357,7 @@ def get_tokenizer_config( 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any diff --git a/src/transformers/pipelines/__init__.py b/src/transformers/pipelines/__init__.py index d2a4b66380..104726bbd8 100755 --- a/src/transformers/pipelines/__init__.py +++ b/src/transformers/pipelines/__init__.py @@ -505,7 +505,7 @@ def pipeline( Whether or not to use a Fast tokenizer if possible (a [`PreTrainedTokenizerFast`]). use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). device_map (`str` or `Dict[str, Union[int, str, torch.device]`, *optional*): Sent directly as `model_kwargs` (just a simpler shortcut). When `accelerate` library is present, set `device_map="auto"` to compute the most optimized `device_map` automatically. [More diff --git a/src/transformers/tokenization_utils_base.py b/src/transformers/tokenization_utils_base.py index fc1c0ff8da..91537ef46c 100644 --- a/src/transformers/tokenization_utils_base.py +++ b/src/transformers/tokenization_utils_base.py @@ -1596,7 +1596,7 @@ class PreTrainedTokenizerBase(SpecialTokensMixin, PushToHubMixin): 'http://hostname': 'foo.bar:4012'}`. The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). local_files_only (`bool`, *optional*, defaults to `False`): Whether or not to only rely on local files and not to attempt to download any files. revision (`str`, *optional*, defaults to `"main"`): diff --git a/src/transformers/utils/hub.py b/src/transformers/utils/hub.py index 2488ab8f69..1aa086da67 100644 --- a/src/transformers/utils/hub.py +++ b/src/transformers/utils/hub.py @@ -716,7 +716,7 @@ def cached_file( 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any @@ -870,7 +870,7 @@ def get_file_from_repo( 'http://hostname': 'foo.bar:4012'}.` The proxies are used on each request. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). revision (`str`, *optional*, defaults to `"main"`): The specific model version to use. It can be a branch name, a tag name, or a commit id, since we use a git-based system for storing models and other artifacts on huggingface.co, so `revision` can be any @@ -983,7 +983,7 @@ def get_list_of_files( identifier allowed by git. use_auth_token (`str` or *bool*, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). + when running `huggingface-cli login` (stored in `~/.huggingface`). local_files_only (`bool`, *optional*, defaults to `False`): Whether or not to only rely on local files and not to attempt to download any files. @@ -1161,8 +1161,8 @@ class PushToHubMixin: Whether or not the repository created should be private (requires a paying subscription). use_auth_token (`bool` or `str`, *optional*): The token to use as HTTP bearer authorization for remote files. If `True`, will use the token generated - when running `transformers-cli login` (stored in `~/.huggingface`). Will default to `True` if - `repo_url` is not specified. + when running `huggingface-cli login` (stored in `~/.huggingface`). Will default to `True` if `repo_url` + is not specified. max_shard_size (`int` or `str`, *optional*, defaults to `"10GB"`): Only applicable for models. The maximum size for a checkpoint before being sharded. Checkpoints shard will then be each of size lower than this size. If expressed as a string, needs to be digits followed diff --git a/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py b/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py index f07029ec24..e7a622edd7 100755 --- a/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py +++ b/templates/adding_a_new_example_script/{{cookiecutter.directory_name}}/run_{{cookiecutter.example_shortcut}}.py @@ -118,7 +118,7 @@ class ModelArguments: use_auth_token: bool = field( default=False, metadata={ - "help": "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "help": "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." }, ) diff --git a/tests/sagemaker/scripts/pytorch/run_glue_model_parallelism.py b/tests/sagemaker/scripts/pytorch/run_glue_model_parallelism.py index 534b1656d1..01185fdaba 100644 --- a/tests/sagemaker/scripts/pytorch/run_glue_model_parallelism.py +++ b/tests/sagemaker/scripts/pytorch/run_glue_model_parallelism.py @@ -181,7 +181,7 @@ class ModelArguments: default=False, metadata={ "help": ( - "Will use the token generated when running `transformers-cli login` (necessary to use this script " + "Will use the token generated when running `huggingface-cli login` (necessary to use this script " "with private models)." ) },