Skip to content

Commit 9252a51

Browse files
committed
Release: v4.8.0
1 parent 468cda2 commit 9252a51

File tree

17 files changed

+27
-17
lines changed

17 files changed

+27
-17
lines changed

examples/pytorch/language-modeling/run_clm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050

5151

5252
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
53-
check_min_version("4.8.0.dev0")
53+
check_min_version("4.8.0")
54+
5455
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt")
5556

5657
logger = logging.getLogger(__name__)

examples/pytorch/language-modeling/run_mlm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,8 @@
4949

5050

5151
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
52-
check_min_version("4.8.0.dev0")
52+
check_min_version("4.8.0")
53+
5354
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt")
5455

5556
logger = logging.getLogger(__name__)

examples/pytorch/language-modeling/run_plm.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@
4545

4646

4747
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
48-
check_min_version("4.8.0.dev0")
48+
check_min_version("4.8.0")
49+
4950
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt")
5051

5152
logger = logging.getLogger(__name__)

examples/pytorch/multiple-choice/run_swag.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747

4848
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
49-
check_min_version("4.8.0.dev0")
49+
check_min_version("4.8.0")
5050

5151
logger = logging.getLogger(__name__)
5252

examples/pytorch/question-answering/run_qa.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747

4848

4949
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
50-
check_min_version("4.8.0.dev0")
50+
check_min_version("4.8.0")
51+
5152
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt")
5253

5354
logger = logging.getLogger(__name__)

examples/pytorch/question-answering/run_qa_beam_search.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646

4747

4848
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
49-
check_min_version("4.8.0.dev0")
49+
check_min_version("4.8.0")
50+
5051
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt")
5152

5253
logger = logging.getLogger(__name__)

examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151

5252

5353
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
54-
check_min_version("4.8.0.dev0")
54+
check_min_version("4.8.0")
55+
5556
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt")
5657

5758
logger = logging.getLogger(__name__)

examples/pytorch/question-answering/run_qa_no_trainer.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@
5353

5454

5555
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
56-
check_min_version("4.8.0.dev0")
56+
check_min_version("4.8.0")
57+
5758
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt")
5859

5960
logger = logging.getLogger(__name__)

examples/pytorch/summarization/run_summarization.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,8 @@
4747

4848

4949
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
50-
check_min_version("4.8.0.dev0")
50+
check_min_version("4.8.0")
51+
5152
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/summarization/requirements.txt")
5253

5354
logger = logging.getLogger(__name__)

examples/pytorch/text-classification/run_glue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747

4848
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
49-
check_min_version("4.8.0.dev0")
49+
check_min_version("4.8.0")
5050

5151
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/text-classification/requirements.txt")
5252

examples/pytorch/text-classification/run_xnli.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646

4747

4848
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
49-
check_min_version("4.8.0.dev0")
49+
check_min_version("4.8.0")
5050

5151
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/text-classification/requirements.txt")
5252

examples/pytorch/token-classification/run_ner.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,8 @@
4646

4747

4848
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
49-
check_min_version("4.8.0.dev0")
49+
check_min_version("4.8.0")
50+
5051
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/token-classification/requirements.txt")
5152

5253
logger = logging.getLogger(__name__)

examples/pytorch/translation/run_translation.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151

5252

5353
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
54-
check_min_version("4.8.0.dev0")
54+
check_min_version("4.8.0")
55+
5556
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/translation/requirements.txt")
5657

5758
logger = logging.getLogger(__name__)

examples/tensorflow/question-answering/run_qa.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545

4646

4747
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
48-
check_min_version("4.7.0.dev0")
48+
check_min_version("4.8.0")
4949

5050
logger = logging.getLogger(__name__)
5151

examples/tensorflow/text-classification/run_glue.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ def on_epoch_end(self, epoch, logs=None):
100100

101101

102102
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
103-
check_min_version("4.8.0.dev0")
103+
check_min_version("4.8.0")
104104

105105
task_to_keys = {
106106
"cola": ("sentence", None),

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -336,7 +336,7 @@ def run(self):
336336

337337
setup(
338338
name="transformers",
339-
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)
339+
version="4.8.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)
340340
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",
341341
author_email="thomas@huggingface.co",
342342
description="State-of-the-art Natural Language Processing for TensorFlow 2.0 and PyTorch",

src/transformers/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
# to defer the actual importing for when the objects are requested. This way `import transformers` provides the names
2323
# in the namespace without actually importing anything (and especially none of the backends).
2424

25-
__version__ = "4.8.0.dev0"
25+
__version__ = "4.8.0"
2626

2727
# Work around to update TensorFlow's absl.logging threshold which alters the
2828
# default Python logging output behavior when present.

0 commit comments

Comments
 (0)