Skip to content

Commit 7e8ae01

Browse files
committed
Release: v4.17.0
1 parent 3d22428 commit 7e8ae01

File tree

36 files changed

+85
-85
lines changed

36 files changed

+85
-85
lines changed

README.md

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

README_ko.md

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

README_zh-hans.md

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

README_zh-hant.md

Lines changed: 13 additions & 13 deletions
Large diffs are not rendered by default.

examples/flax/question-answering/run_qa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
logger = logging.getLogger(__name__)
6262

6363
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
64-
check_min_version("4.17.0.dev0")
64+
check_min_version("4.17.0")
6565

6666
Array = Any
6767
Dataset = datasets.arrow_dataset.Dataset

examples/flax/text-classification/run_flax_glue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
logger = logging.getLogger(__name__)
5656
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
57-
check_min_version("4.17.0.dev0")
57+
check_min_version("4.17.0")
5858

5959
Array = Any
6060
Dataset = datasets.arrow_dataset.Dataset

examples/flax/token-classification/run_flax_ner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555
logger = logging.getLogger(__name__)
5656
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
57-
check_min_version("4.17.0.dev0")
57+
check_min_version("4.17.0")
5858

5959
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/token-classification/requirements.txt")
6060

examples/pytorch/audio-classification/run_audio_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
logger = logging.getLogger(__name__)
4545

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

4949
require_version("datasets>=1.14.0", "To fix: pip install -r examples/pytorch/audio-classification/requirements.txt")
5050

examples/pytorch/contrastive-image-text/run_clip.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
logger = logging.getLogger(__name__)
5555

5656
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
57-
check_min_version("4.17.0.dev0")
57+
check_min_version("4.17.0")
5858

5959
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/contrastive-image-text/requirements.txt")
6060

examples/pytorch/image-classification/run_image_classification.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
logger = logging.getLogger(__name__)
5555

5656
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
57-
check_min_version("4.17.0.dev0")
57+
check_min_version("4.17.0")
5858

5959
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/image-classification/requirements.txt")
6060

examples/pytorch/image-pretraining/run_mae.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
logger = logging.getLogger(__name__)
4444

4545
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
46-
check_min_version("4.17.0.dev0")
46+
check_min_version("4.17.0")
4747

4848
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/image-pretraining/requirements.txt")
4949

examples/pytorch/image-pretraining/run_mim.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
logger = logging.getLogger(__name__)
4949

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

5353
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/image-pretraining/requirements.txt")
5454

examples/pytorch/language-modeling/run_clm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353

5454
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
55-
check_min_version("4.17.0.dev0")
55+
check_min_version("4.17.0")
5656

5757
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt")
5858

examples/pytorch/language-modeling/run_mlm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252

5353
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
54-
check_min_version("4.17.0.dev0")
54+
check_min_version("4.17.0")
5555

5656
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt")
5757

examples/pytorch/language-modeling/run_plm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
50-
check_min_version("4.17.0.dev0")
50+
check_min_version("4.17.0")
5151

5252
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt")
5353

examples/pytorch/multiple-choice/run_swag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949

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

5353
logger = logging.getLogger(__name__)
5454

examples/pytorch/question-answering/run_qa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949

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

5353
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt")
5454

examples/pytorch/question-answering/run_qa_beam_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
50-
check_min_version("4.17.0.dev0")
50+
check_min_version("4.17.0")
5151

5252
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt")
5353

examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454

5555

5656
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
57-
check_min_version("4.17.0.dev0")
57+
check_min_version("4.17.0")
5858

5959
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt")
6060

examples/pytorch/question-answering/run_qa_no_trainer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757

5858
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
59-
check_min_version("4.17.0.dev0")
59+
check_min_version("4.17.0")
6060

6161
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt")
6262

examples/pytorch/question-answering/run_seq2seq_qa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444

4545

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

4949
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/question-answering/requirements.txt")
5050

examples/pytorch/speech-recognition/run_speech_recognition_ctc.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949

5050

5151
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
52-
check_min_version("4.17.0.dev0")
52+
check_min_version("4.17.0")
5353

5454
require_version("datasets>=1.18.0", "To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt")
5555

examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
50-
check_min_version("4.17.0.dev0")
50+
check_min_version("4.17.0")
5151

5252
require_version("datasets>=1.18.0", "To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt")
5353

examples/pytorch/summarization/run_summarization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353

5454
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
55-
check_min_version("4.17.0.dev0")
55+
check_min_version("4.17.0")
5656

5757
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/summarization/requirements.txt")
5858

examples/pytorch/text-classification/run_glue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
50-
check_min_version("4.17.0.dev0")
50+
check_min_version("4.17.0")
5151

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

examples/pytorch/text-classification/run_xnli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
50-
check_min_version("4.17.0.dev0")
50+
check_min_version("4.17.0")
5151

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

examples/pytorch/token-classification/run_ner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848

4949

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

5353
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/token-classification/requirements.txt")
5454

examples/pytorch/translation/run_translation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252

5353
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
54-
check_min_version("4.17.0.dev0")
54+
check_min_version("4.17.0")
5555

5656
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/translation/requirements.txt")
5757

examples/tensorflow/multiple-choice/run_swag.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
50-
check_min_version("4.17.0.dev0")
50+
check_min_version("4.17.0")
5151

5252
logger = logging.getLogger(__name__)
5353

examples/tensorflow/question-answering/run_qa.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747

4848

4949
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
50-
check_min_version("4.17.0.dev0")
50+
check_min_version("4.17.0")
5151

5252
logger = logging.getLogger(__name__)
5353

examples/tensorflow/summarization/run_summarization.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151

5252
# region Checking dependencies
5353
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
54-
check_min_version("4.17.0.dev0")
54+
check_min_version("4.17.0")
5555

5656
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/summarization/requirements.txt")
5757

examples/tensorflow/text-classification/run_glue.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def on_epoch_end(self, epoch, logs=None):
6161

6262

6363
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
64-
check_min_version("4.17.0.dev0")
64+
check_min_version("4.17.0")
6565

6666
task_to_keys = {
6767
"cola": ("sentence", None),

examples/tensorflow/translation/run_translation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353

5454
# region Dependencies and constants
5555
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
56-
check_min_version("4.17.0.dev0")
56+
check_min_version("4.17.0")
5757

5858
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/summarization/requirements.txt")
5959

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -383,7 +383,7 @@ def run(self):
383383

384384
setup(
385385
name="transformers",
386-
version="4.17.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)
386+
version="4.17.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)
387387
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",
388388
author_email="thomas@huggingface.co",
389389
description="State-of-the-art Natural Language Processing for TensorFlow 2.0 and PyTorch",

src/transformers/__init__.py

Lines changed: 1 addition & 1 deletion
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.17.0.dev0"
25+
__version__ = "4.17.0"
2626

2727
from typing import TYPE_CHECKING
2828

utils/release.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,8 @@ def clean_master_ref_in_model_list():
8888
while not lines[index].startswith(_end_prompt):
8989
if lines[index].startswith("1."):
9090
lines[index] = lines[index].replace(
91-
"https://huggingface.co/transformers/master/model_doc",
92-
"https://huggingface.co/transformers/model_doc",
91+
"https://huggingface.co/docs/transformers/master/model_doc",
92+
"https://huggingface.co/docs/transformers/model_doc",
9393
)
9494
index += 1
9595

0 commit comments

Comments
 (0)