Skip to content

Commit 8ac2b91

Browse files
committed
Release: v4.57.0
1 parent 2ccc6ca commit 8ac2b91

File tree

345 files changed

+79
-82897
lines changed

Some content is hidden

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

345 files changed

+79
-82897
lines changed

examples/pytorch/audio-classification/run_audio_classification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# /// script
1717
# dependencies = [
18-
# "transformers @ git+https://github.com/huggingface/transformers.git",
18+
# "transformers==4.57.0",
1919
# "datasets[audio]>=1.14.0",
2020
# "evaluate",
2121
# "librosa",
@@ -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.57.0.dev0")
58+
check_min_version("4.57.0")
5959

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

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# /// script
1717
# dependencies = [
18-
# "transformers @ git+https://github.com/huggingface/transformers.git",
18+
# "transformers==4.57.0",
1919
# "torch>=1.5.0",
2020
# "torchvision>=0.6.0",
2121
# "datasets>=1.8.0",
@@ -63,7 +63,7 @@
6363
logger = logging.getLogger(__name__)
6464

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

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

examples/pytorch/image-classification/run_image_classification.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# /// script
1616
# dependencies = [
17-
# "transformers @ git+https://github.com/huggingface/transformers.git",
17+
# "transformers==4.57.0",
1818
# "accelerate>=0.12.0",
1919
# "torch>=1.5.0",
2020
# "torchvision>=0.6.0",
@@ -68,7 +68,7 @@
6868
logger = logging.getLogger(__name__)
6969

7070
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
71-
check_min_version("4.57.0.dev0")
71+
check_min_version("4.57.0")
7272

7373
require_version("datasets>=2.14.0", "To fix: pip install -r examples/pytorch/image-classification/requirements.txt")
7474

examples/pytorch/image-classification/run_image_classification_no_trainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# /// script
1616
# dependencies = [
17-
# "transformers @ git+https://github.com/huggingface/transformers.git",
17+
# "transformers==4.57.0",
1818
# "accelerate>=0.12.0",
1919
# "torch>=1.5.0",
2020
# "torchvision>=0.6.0",
@@ -61,7 +61,7 @@
6161

6262

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

6666
logger = get_logger(__name__)
6767

examples/pytorch/image-pretraining/run_mae.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# /// script
1616
# dependencies = [
17-
# "transformers @ git+https://github.com/huggingface/transformers.git",
17+
# "transformers==4.57.0",
1818
# "torch>=1.5.0",
1919
# "torchvision>=0.6.0",
2020
# "datasets>=1.8.0",
@@ -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.57.0.dev0")
54+
check_min_version("4.57.0")
5555

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

examples/pytorch/image-pretraining/run_mim.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# /// script
1616
# dependencies = [
17-
# "transformers @ git+https://github.com/huggingface/transformers.git",
17+
# "transformers==4.57.0",
1818
# "torch>=1.5.0",
1919
# "torchvision>=0.6.0",
2020
# "datasets>=1.8.0",
@@ -56,7 +56,7 @@
5656
logger = logging.getLogger(__name__)
5757

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

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

examples/pytorch/image-pretraining/run_mim_no_trainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# /// script
1616
# dependencies = [
17-
# "transformers @ git+https://github.com/huggingface/transformers.git",
17+
# "transformers==4.57.0",
1818
# "torch>=1.5.0",
1919
# "torchvision>=0.6.0",
2020
# "datasets>=1.8.0",
@@ -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.57.0.dev0")
64+
check_min_version("4.57.0")
6565

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

examples/pytorch/instance-segmentation/run_instance_segmentation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# /// script
1616
# dependencies = [
17-
# "transformers @ git+https://github.com/huggingface/transformers.git",
17+
# "transformers==4.57.0",
1818
# "albumentations >= 1.4.16",
1919
# "timm",
2020
# "datasets",
@@ -57,7 +57,7 @@
5757
logger = logging.getLogger(__name__)
5858

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

6262
require_version("datasets>=2.0.0", "To fix: pip install -r examples/pytorch/instance-segmentation/requirements.txt")
6363

examples/pytorch/instance-segmentation/run_instance_segmentation_no_trainer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414

1515
# /// script
1616
# dependencies = [
17-
# "transformers @ git+https://github.com/huggingface/transformers.git",
17+
# "transformers==4.57.0",
1818
# "albumentations >= 1.4.16",
1919
# "timm",
2020
# "datasets",
@@ -63,7 +63,7 @@
6363
logger = logging.getLogger(__name__)
6464

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

6868
require_version("datasets>=2.0.0", "To fix: pip install -r examples/pytorch/instance-segmentation/requirements.txt")
6969

examples/pytorch/language-modeling/run_clm.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515

1616
# /// script
1717
# dependencies = [
18-
# "transformers @ git+https://github.com/huggingface/transformers.git",
18+
# "transformers==4.57.0",
1919
# "albumentations >= 1.4.16",
2020
# "accelerate >= 0.12.0",
2121
# "torch >= 1.3",
@@ -69,7 +69,7 @@
6969

7070

7171
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
72-
check_min_version("4.57.0.dev0")
72+
check_min_version("4.57.0")
7373

7474
require_version("datasets>=2.14.0", "To fix: pip install -r examples/pytorch/language-modeling/requirements.txt")
7575

0 commit comments

Comments
 (0)