Skip to content

Commit ebdb185

Browse files
committed
v4.28.0.dev0
1 parent c52c528 commit ebdb185

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

50 files changed

+141
-141
lines changed

README.md

+14-14

README_es.md

+14-14

README_hd.md

+14-14

README_ja.md

+14-14

README_ko.md

+14-14

README_zh-hans.md

+14-14

README_zh-hant.md

+14-14

examples/flax/question-answering/run_qa.py

+1-1
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.27.0.dev0")
64+
check_min_version("4.28.0.dev0")
6565

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

examples/flax/text-classification/run_flax_glue.py

+1-1
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.27.0.dev0")
57+
check_min_version("4.28.0.dev0")
5858

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

examples/flax/token-classification/run_flax_ner.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656
logger = logging.getLogger(__name__)
5757
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
58-
check_min_version("4.27.0.dev0")
58+
check_min_version("4.28.0.dev0")
5959

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

examples/pytorch/audio-classification/run_audio_classification.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
logger = logging.getLogger(__name__)
4646

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

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

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

+1-1
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.27.0.dev0")
57+
check_min_version("4.28.0.dev0")
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555
logger = logging.getLogger(__name__)
5656

5757
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
58-
check_min_version("4.27.0.dev0")
58+
check_min_version("4.28.0.dev0")
5959

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

examples/pytorch/image-classification/run_image_classification_no_trainer.py

+1-1
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.27.0.dev0")
50+
check_min_version("4.28.0.dev0")
5151

5252
logger = get_logger(__name__)
5353

examples/pytorch/image-pretraining/run_mae.py

+1-1
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.27.0.dev0")
46+
check_min_version("4.28.0.dev0")
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

+1-1
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.27.0.dev0")
51+
check_min_version("4.28.0.dev0")
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

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656

5757
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
58-
check_min_version("4.27.0.dev0")
58+
check_min_version("4.28.0.dev0")
5959

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

examples/pytorch/language-modeling/run_clm_no_trainer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858

5959
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
60-
check_min_version("4.27.0.dev0")
60+
check_min_version("4.28.0.dev0")
6161

6262
logger = get_logger(__name__)
6363

examples/pytorch/language-modeling/run_mlm.py

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

5454

5555
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
56-
check_min_version("4.27.0.dev0")
56+
check_min_version("4.28.0.dev0")
5757

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

examples/pytorch/language-modeling/run_mlm_no_trainer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858

5959
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
60-
check_min_version("4.27.0.dev0")
60+
check_min_version("4.28.0.dev0")
6161

6262
logger = get_logger(__name__)
6363
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt")

examples/pytorch/language-modeling/run_plm.py

+1-1
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.27.0.dev0")
50+
check_min_version("4.28.0.dev0")
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

+1-1
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.27.0.dev0")
50+
check_min_version("4.28.0.dev0")
5151

5252
logger = logging.getLogger(__name__)
5353

examples/pytorch/multiple-choice/run_swag_no_trainer.py

+1-1
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.27.0.dev0")
59+
check_min_version("4.28.0.dev0")
6060

6161
logger = get_logger(__name__)
6262
# You should update this to your particular problem to have better documentation of `model_type`

examples/pytorch/question-answering/run_qa.py

+1-1
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.27.0.dev0")
52+
check_min_version("4.28.0.dev0")
5353

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

examples/pytorch/question-answering/run_qa_beam_search.py

+1-1
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.27.0.dev0")
51+
check_min_version("4.28.0.dev0")
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_no_trainer.py

+1-1
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.27.0.dev0")
59+
check_min_version("4.28.0.dev0")
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_qa_no_trainer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858

5959
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
60-
check_min_version("4.27.0.dev0")
60+
check_min_version("4.28.0.dev0")
6161

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

examples/pytorch/question-answering/run_seq2seq_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.27.0.dev0")
48+
check_min_version("4.28.0.dev0")
4949

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

examples/pytorch/semantic-segmentation/run_semantic_segmentation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
logger = logging.getLogger(__name__)
5252

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

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

examples/pytorch/semantic-segmentation/run_semantic_segmentation_no_trainer.py

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

5151

5252
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
53-
check_min_version("4.27.0.dev0")
53+
check_min_version("4.28.0.dev0")
5454

5555
logger = get_logger(__name__)
5656

examples/pytorch/speech-recognition/run_speech_recognition_ctc.py

+1-1
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.27.0.dev0")
54+
check_min_version("4.28.0.dev0")
5555

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

examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py

+1-1
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.27.0.dev0")
51+
check_min_version("4.28.0.dev0")
5252

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

examples/pytorch/summarization/run_summarization.py

+1-1
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.27.0.dev0")
55+
check_min_version("4.28.0.dev0")
5656

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

examples/pytorch/summarization/run_summarization_no_trainer.py

+1-1
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.27.0.dev0")
59+
check_min_version("4.28.0.dev0")
6060

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

examples/pytorch/text-classification/run_glue.py

+1-1
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.27.0.dev0")
51+
check_min_version("4.28.0.dev0")
5252

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

examples/pytorch/text-classification/run_glue_no_trainer.py

+1-1
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.27.0.dev0")
51+
check_min_version("4.28.0.dev0")
5252

5353
logger = get_logger(__name__)
5454

examples/pytorch/text-classification/run_xnli.py

+1-1
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.27.0.dev0")
51+
check_min_version("4.28.0.dev0")
5252

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

examples/pytorch/token-classification/run_ner.py

+1-1
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.27.0.dev0")
52+
check_min_version("4.28.0.dev0")
5353

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

examples/pytorch/token-classification/run_ner_no_trainer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@
5555

5656

5757
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
58-
check_min_version("4.27.0.dev0")
58+
check_min_version("4.28.0.dev0")
5959

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

examples/pytorch/translation/run_translation.py

+1-1
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.27.0.dev0")
55+
check_min_version("4.28.0.dev0")
5656

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

examples/pytorch/translation/run_translation_no_trainer.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757

5858

5959
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
60-
check_min_version("4.27.0.dev0")
60+
check_min_version("4.28.0.dev0")
6161

6262
logger = get_logger(__name__)
6363
require_version("datasets>=1.8.0", "To fix: pip install -r examples/pytorch/translation/requirements.txt")

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@
5151
logger = logging.getLogger(__name__)
5252

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

5656
require_version(
5757
"datasets>=1.8.0", "To fix: pip install -r examples/tensorflow/contrastive-image-text/requirements.txt"

examples/tensorflow/image-classification/run_image_classification.py

+1-1
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.24.0.dev0")
57+
check_min_version("4.28.0.dev0")
5858

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

examples/tensorflow/multiple-choice/run_swag.py

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

5151

5252
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
53-
check_min_version("4.27.0.dev0")
53+
check_min_version("4.28.0.dev0")
5454

5555
logger = logging.getLogger(__name__)
5656

examples/tensorflow/question-answering/run_qa.py

+1-1
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.27.0.dev0")
51+
check_min_version("4.28.0.dev0")
5252

5353
logger = logging.getLogger(__name__)
5454

examples/tensorflow/summarization/run_summarization.py

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

5454
# region Checking dependencies
5555
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
56-
check_min_version("4.27.0.dev0")
56+
check_min_version("4.28.0.dev0")
5757

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

examples/tensorflow/text-classification/run_glue.py

+1-1
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.27.0.dev0")
50+
check_min_version("4.28.0.dev0")
5151

5252
task_to_keys = {
5353
"cola": ("sentence", None),

examples/tensorflow/translation/run_translation.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656

5757
# region Dependencies and constants
5858
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
59-
check_min_version("4.27.0.dev0")
59+
check_min_version("4.28.0.dev0")
6060

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

setup.py

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

419419
setup(
420420
name="transformers",
421-
version="4.27.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)
421+
version="4.28.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)
422422
author="The Hugging Face team (past and future) with the help of all our contributors (https://github.com/huggingface/transformers/graphs/contributors)",
423423
author_email="transformers@huggingface.co",
424424
description="State-of-the-art Machine Learning for JAX, PyTorch and TensorFlow",

src/transformers/__init__.py

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

21-
__version__ = "4.27.0.dev0"
21+
__version__ = "4.28.0.dev0"
2222

2323
from typing import TYPE_CHECKING
2424

0 commit comments

Comments
 (0)