From 0daadc191944970eca81293993c254954c209b5d Mon Sep 17 00:00:00 2001 From: Lysandre Date: Thu, 17 Jun 2021 18:17:42 +0200 Subject: [PATCH] Docs for v4.8.0 --- .circleci/deploy.sh | 3 ++- docs/source/_static/js/custom.js | 5 +++-- examples/pytorch/language-modeling/run_clm.py | 2 +- examples/pytorch/language-modeling/run_mlm.py | 2 +- examples/pytorch/language-modeling/run_plm.py | 2 +- examples/pytorch/multiple-choice/run_swag.py | 2 +- examples/pytorch/question-answering/run_qa.py | 2 +- examples/pytorch/question-answering/run_qa_beam_search.py | 2 +- .../question-answering/run_qa_beam_search_no_trainer.py | 2 +- examples/pytorch/question-answering/run_qa_no_trainer.py | 2 +- examples/pytorch/summarization/run_summarization.py | 2 +- examples/pytorch/text-classification/run_glue.py | 2 +- examples/pytorch/text-classification/run_xnli.py | 2 +- examples/pytorch/token-classification/run_ner.py | 2 +- examples/pytorch/translation/run_translation.py | 2 +- examples/tensorflow/text-classification/run_glue.py | 2 +- setup.py | 2 +- src/transformers/__init__.py | 2 +- 18 files changed, 21 insertions(+), 19 deletions(-) diff --git a/.circleci/deploy.sh b/.circleci/deploy.sh index d800781e52..820a645865 100755 --- a/.circleci/deploy.sh +++ b/.circleci/deploy.sh @@ -63,4 +63,5 @@ deploy_doc "c5d6a28" v4.4.1 deploy_doc "6bc89ed" v4.4.2 deploy_doc "4906a29" v4.5.0 deploy_doc "4bae96e" v4.5.1 -deploy_doc "25dee4a" # v4.6.0 Latest stable release \ No newline at end of file +deploy_doc "25dee4a" v4.6.0 +deploy_doc "7a6c9fa" # v4.7.0 Latest stable release \ No newline at end of file diff --git a/docs/source/_static/js/custom.js b/docs/source/_static/js/custom.js index 21e97714a8..35117af98d 100644 --- a/docs/source/_static/js/custom.js +++ b/docs/source/_static/js/custom.js @@ -1,10 +1,11 @@ // These two things need to be updated at each release for the version selector. // Last stable version -const stableVersion = "v4.6.0" +const stableVersion = "v4.7.0" // Dictionary doc folder to label. The last stable version should have an empty key. const versionMapping = { "master": "master", - "": "v4.6.0 (stable)", + "": "v4.7.0 (stable)", + "v4.6.0": "v4.6.0", "v4.5.1": "v4.5.0/v4.5.1", "v4.4.2": "v4.4.0/v4.4.1/v4.4.2", "v4.3.3": "v4.3.0/v4.3.1/v4.3.2/v4.3.3", diff --git a/examples/pytorch/language-modeling/run_clm.py b/examples/pytorch/language-modeling/run_clm.py index 50904cae20..92ea20bd88 100755 --- a/examples/pytorch/language-modeling/run_clm.py +++ b/examples/pytorch/language-modeling/run_clm.py @@ -49,7 +49,7 @@ from transformers.utils import check_min_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) diff --git a/examples/pytorch/language-modeling/run_mlm.py b/examples/pytorch/language-modeling/run_mlm.py index 09343bbd42..0e94cb290e 100755 --- a/examples/pytorch/language-modeling/run_mlm.py +++ b/examples/pytorch/language-modeling/run_mlm.py @@ -48,7 +48,7 @@ from transformers.utils import check_min_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) MODEL_CONFIG_CLASSES = list(MODEL_FOR_MASKED_LM_MAPPING.keys()) diff --git a/examples/pytorch/language-modeling/run_plm.py b/examples/pytorch/language-modeling/run_plm.py index 53768f9f29..b0439e7f2d 100755 --- a/examples/pytorch/language-modeling/run_plm.py +++ b/examples/pytorch/language-modeling/run_plm.py @@ -44,7 +44,7 @@ from transformers.utils import check_min_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) diff --git a/examples/pytorch/multiple-choice/run_swag.py b/examples/pytorch/multiple-choice/run_swag.py index 9d31a1c329..2a5611675d 100755 --- a/examples/pytorch/multiple-choice/run_swag.py +++ b/examples/pytorch/multiple-choice/run_swag.py @@ -46,7 +46,7 @@ from transformers.utils import check_min_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) diff --git a/examples/pytorch/question-answering/run_qa.py b/examples/pytorch/question-answering/run_qa.py index 089bee5aec..0f3b4eedd8 100755 --- a/examples/pytorch/question-answering/run_qa.py +++ b/examples/pytorch/question-answering/run_qa.py @@ -46,7 +46,7 @@ from utils_qa import postprocess_qa_predictions # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) diff --git a/examples/pytorch/question-answering/run_qa_beam_search.py b/examples/pytorch/question-answering/run_qa_beam_search.py index f2635c3899..10f1bce8b3 100755 --- a/examples/pytorch/question-answering/run_qa_beam_search.py +++ b/examples/pytorch/question-answering/run_qa_beam_search.py @@ -45,7 +45,7 @@ from utils_qa import postprocess_qa_predictions_with_beam_search # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) diff --git a/examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py b/examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py index 26e0687152..6b9c6b156b 100644 --- a/examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py +++ b/examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py @@ -50,7 +50,7 @@ from utils_qa import postprocess_qa_predictions_with_beam_search # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) diff --git a/examples/pytorch/question-answering/run_qa_no_trainer.py b/examples/pytorch/question-answering/run_qa_no_trainer.py index 81f79952f0..93af00d39a 100755 --- a/examples/pytorch/question-answering/run_qa_no_trainer.py +++ b/examples/pytorch/question-answering/run_qa_no_trainer.py @@ -52,7 +52,7 @@ from utils_qa import postprocess_qa_predictions # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) # You should update this to your particular problem to have better documentation of `model_type` diff --git a/examples/pytorch/summarization/run_summarization.py b/examples/pytorch/summarization/run_summarization.py index acd664de9e..a8335f6646 100755 --- a/examples/pytorch/summarization/run_summarization.py +++ b/examples/pytorch/summarization/run_summarization.py @@ -46,7 +46,7 @@ from transformers.utils import check_min_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) diff --git a/examples/pytorch/text-classification/run_glue.py b/examples/pytorch/text-classification/run_glue.py index 76a18ad524..92090ffdd8 100755 --- a/examples/pytorch/text-classification/run_glue.py +++ b/examples/pytorch/text-classification/run_glue.py @@ -46,7 +46,7 @@ from transformers.utils.versions import require_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/text-classification/requirements.txt") diff --git a/examples/pytorch/text-classification/run_xnli.py b/examples/pytorch/text-classification/run_xnli.py index 09528c89da..b7ed30cf96 100755 --- a/examples/pytorch/text-classification/run_xnli.py +++ b/examples/pytorch/text-classification/run_xnli.py @@ -46,7 +46,7 @@ from transformers.utils.versions import require_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/text-classification/requirements.txt") diff --git a/examples/pytorch/token-classification/run_ner.py b/examples/pytorch/token-classification/run_ner.py index a17f9d8a32..065cd7528a 100755 --- a/examples/pytorch/token-classification/run_ner.py +++ b/examples/pytorch/token-classification/run_ner.py @@ -45,7 +45,7 @@ from transformers.utils import check_min_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) diff --git a/examples/pytorch/translation/run_translation.py b/examples/pytorch/translation/run_translation.py index 9dd0ad1f74..cfacc95867 100755 --- a/examples/pytorch/translation/run_translation.py +++ b/examples/pytorch/translation/run_translation.py @@ -49,7 +49,7 @@ from transformers.utils import check_min_version # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") logger = logging.getLogger(__name__) diff --git a/examples/tensorflow/text-classification/run_glue.py b/examples/tensorflow/text-classification/run_glue.py index c706187d07..b13a6b8971 100644 --- a/examples/tensorflow/text-classification/run_glue.py +++ b/examples/tensorflow/text-classification/run_glue.py @@ -100,7 +100,7 @@ class SavePretrainedCallback(tf.keras.callbacks.Callback): # Will error if the minimal version of Transformers is not installed. Remove at your own risks. -check_min_version("4.7.0") +check_min_version("4.8.0.dev0") task_to_keys = { "cola": ("sentence", None), diff --git a/setup.py b/setup.py index 2193a19c29..5c4f075fc7 100644 --- a/setup.py +++ b/setup.py @@ -332,7 +332,7 @@ install_requires = [ setup( name="transformers", - version="4.7.0", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots) + version="4.8.0.dev0", # expected format is one of x.y.z.dev0, or x.y.z.rc1 or x.y.z (no to dashes, yes to dots) author="Thomas Wolf, Lysandre Debut, Victor Sanh, Julien Chaumond, Sam Shleifer, Patrick von Platen, Sylvain Gugger, Suraj Patil, Stas Bekman, Google AI Language Team Authors, Open AI team Authors, Facebook AI Authors, Carnegie Mellon University Authors", author_email="thomas@huggingface.co", description="State-of-the-art Natural Language Processing for TensorFlow 2.0 and PyTorch", diff --git a/src/transformers/__init__.py b/src/transformers/__init__.py index 966eb0b958..d8a7fc003f 100755 --- a/src/transformers/__init__.py +++ b/src/transformers/__init__.py @@ -22,7 +22,7 @@ # to defer the actual importing for when the objects are requested. This way `import transformers` provides the names # in the namespace without actually importing anything (and especially none of the backends). -__version__ = "4.7.0" +__version__ = "4.8.0.dev0" # Work around to update TensorFlow's absl.logging threshold which alters the # default Python logging output behavior when present.