Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
chenpangpang
transformers
Commits
888c4a2a
Unverified
Commit
888c4a2a
authored
Apr 12, 2023
by
Sylvain Gugger
Browse files
v4.29.0.dev0
parent
50f82e12
Changes
44
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
27 additions
and
27 deletions
+27
-27
README.md
README.md
+8
-8
examples/flax/question-answering/run_qa.py
examples/flax/question-answering/run_qa.py
+1
-1
examples/flax/text-classification/run_flax_glue.py
examples/flax/text-classification/run_flax_glue.py
+1
-1
examples/flax/token-classification/run_flax_ner.py
examples/flax/token-classification/run_flax_ner.py
+1
-1
examples/pytorch/audio-classification/run_audio_classification.py
.../pytorch/audio-classification/run_audio_classification.py
+1
-1
examples/pytorch/contrastive-image-text/run_clip.py
examples/pytorch/contrastive-image-text/run_clip.py
+1
-1
examples/pytorch/image-classification/run_image_classification.py
.../pytorch/image-classification/run_image_classification.py
+1
-1
examples/pytorch/image-classification/run_image_classification_no_trainer.py
...age-classification/run_image_classification_no_trainer.py
+1
-1
examples/pytorch/image-pretraining/run_mae.py
examples/pytorch/image-pretraining/run_mae.py
+1
-1
examples/pytorch/image-pretraining/run_mim.py
examples/pytorch/image-pretraining/run_mim.py
+1
-1
examples/pytorch/language-modeling/run_clm.py
examples/pytorch/language-modeling/run_clm.py
+1
-1
examples/pytorch/language-modeling/run_clm_no_trainer.py
examples/pytorch/language-modeling/run_clm_no_trainer.py
+1
-1
examples/pytorch/language-modeling/run_mlm.py
examples/pytorch/language-modeling/run_mlm.py
+1
-1
examples/pytorch/language-modeling/run_mlm_no_trainer.py
examples/pytorch/language-modeling/run_mlm_no_trainer.py
+1
-1
examples/pytorch/language-modeling/run_plm.py
examples/pytorch/language-modeling/run_plm.py
+1
-1
examples/pytorch/multiple-choice/run_swag.py
examples/pytorch/multiple-choice/run_swag.py
+1
-1
examples/pytorch/multiple-choice/run_swag_no_trainer.py
examples/pytorch/multiple-choice/run_swag_no_trainer.py
+1
-1
examples/pytorch/question-answering/run_qa.py
examples/pytorch/question-answering/run_qa.py
+1
-1
examples/pytorch/question-answering/run_qa_beam_search.py
examples/pytorch/question-answering/run_qa_beam_search.py
+1
-1
examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py
...torch/question-answering/run_qa_beam_search_no_trainer.py
+1
-1
No files found.
README.md
View file @
888c4a2a
This diff is collapsed.
Click to expand it.
examples/flax/question-answering/run_qa.py
View file @
888c4a2a
...
@@ -61,7 +61,7 @@ from transformers.utils import check_min_version, get_full_repo_name, send_examp
...
@@ -61,7 +61,7 @@ from transformers.utils import check_min_version, get_full_repo_name, send_examp
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
Array
=
Any
Array
=
Any
Dataset
=
datasets
.
arrow_dataset
.
Dataset
Dataset
=
datasets
.
arrow_dataset
.
Dataset
...
...
examples/flax/text-classification/run_flax_glue.py
View file @
888c4a2a
...
@@ -54,7 +54,7 @@ from transformers.utils import check_min_version, get_full_repo_name, send_examp
...
@@ -54,7 +54,7 @@ from transformers.utils import check_min_version, get_full_repo_name, send_examp
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
Array
=
Any
Array
=
Any
Dataset
=
datasets
.
arrow_dataset
.
Dataset
Dataset
=
datasets
.
arrow_dataset
.
Dataset
...
...
examples/flax/token-classification/run_flax_ner.py
View file @
888c4a2a
...
@@ -55,7 +55,7 @@ from transformers.utils.versions import require_version
...
@@ -55,7 +55,7 @@ from transformers.utils.versions import require_version
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/token-classification/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/token-classification/requirements.txt"
)
...
...
examples/pytorch/audio-classification/run_audio_classification.py
View file @
888c4a2a
...
@@ -45,7 +45,7 @@ from transformers.utils.versions import require_version
...
@@ -45,7 +45,7 @@ from transformers.utils.versions import require_version
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.14.0"
,
"To fix: pip install -r examples/pytorch/audio-classification/requirements.txt"
)
require_version
(
"datasets>=1.14.0"
,
"To fix: pip install -r examples/pytorch/audio-classification/requirements.txt"
)
...
...
examples/pytorch/contrastive-image-text/run_clip.py
View file @
888c4a2a
...
@@ -54,7 +54,7 @@ from transformers.utils.versions import require_version
...
@@ -54,7 +54,7 @@ from transformers.utils.versions import require_version
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/contrastive-image-text/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/contrastive-image-text/requirements.txt"
)
...
...
examples/pytorch/image-classification/run_image_classification.py
View file @
888c4a2a
...
@@ -55,7 +55,7 @@ from transformers.utils.versions import require_version
...
@@ -55,7 +55,7 @@ from transformers.utils.versions import require_version
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/image-classification/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/image-classification/requirements.txt"
)
...
...
examples/pytorch/image-classification/run_image_classification_no_trainer.py
View file @
888c4a2a
...
@@ -47,7 +47,7 @@ from transformers.utils.versions import require_version
...
@@ -47,7 +47,7 @@ from transformers.utils.versions import require_version
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
...
...
examples/pytorch/image-pretraining/run_mae.py
View file @
888c4a2a
...
@@ -43,7 +43,7 @@ from transformers.utils.versions import require_version
...
@@ -43,7 +43,7 @@ from transformers.utils.versions import require_version
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/image-pretraining/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/image-pretraining/requirements.txt"
)
...
...
examples/pytorch/image-pretraining/run_mim.py
View file @
888c4a2a
...
@@ -48,7 +48,7 @@ Any model supported by the AutoModelForMaskedImageModeling API can be used.
...
@@ -48,7 +48,7 @@ Any model supported by the AutoModelForMaskedImageModeling API can be used.
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/image-pretraining/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/image-pretraining/requirements.txt"
)
...
...
examples/pytorch/language-modeling/run_clm.py
View file @
888c4a2a
...
@@ -55,7 +55,7 @@ from transformers.utils.versions import require_version
...
@@ -55,7 +55,7 @@ from transformers.utils.versions import require_version
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/language-modeling/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/language-modeling/requirements.txt"
)
...
...
examples/pytorch/language-modeling/run_clm_no_trainer.py
View file @
888c4a2a
...
@@ -57,7 +57,7 @@ from transformers.utils.versions import require_version
...
@@ -57,7 +57,7 @@ from transformers.utils.versions import require_version
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
...
...
examples/pytorch/language-modeling/run_mlm.py
View file @
888c4a2a
...
@@ -53,7 +53,7 @@ from transformers.utils.versions import require_version
...
@@ -53,7 +53,7 @@ from transformers.utils.versions import require_version
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/language-modeling/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/language-modeling/requirements.txt"
)
...
...
examples/pytorch/language-modeling/run_mlm_no_trainer.py
View file @
888c4a2a
...
@@ -57,7 +57,7 @@ from transformers.utils.versions import require_version
...
@@ -57,7 +57,7 @@ from transformers.utils.versions import require_version
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/language-modeling/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/language-modeling/requirements.txt"
)
...
...
examples/pytorch/language-modeling/run_plm.py
View file @
888c4a2a
...
@@ -47,7 +47,7 @@ from transformers.utils.versions import require_version
...
@@ -47,7 +47,7 @@ from transformers.utils.versions import require_version
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/language-modeling/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/language-modeling/requirements.txt"
)
...
...
examples/pytorch/multiple-choice/run_swag.py
View file @
888c4a2a
...
@@ -47,7 +47,7 @@ from transformers.utils import PaddingStrategy, check_min_version, send_example_
...
@@ -47,7 +47,7 @@ from transformers.utils import PaddingStrategy, check_min_version, send_example_
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
examples/pytorch/multiple-choice/run_swag_no_trainer.py
View file @
888c4a2a
...
@@ -56,7 +56,7 @@ from transformers.utils import PaddingStrategy, check_min_version, get_full_repo
...
@@ -56,7 +56,7 @@ from transformers.utils import PaddingStrategy, check_min_version, get_full_repo
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
# You should update this to your particular problem to have better documentation of `model_type`
# You should update this to your particular problem to have better documentation of `model_type`
...
...
examples/pytorch/question-answering/run_qa.py
View file @
888c4a2a
...
@@ -49,7 +49,7 @@ from transformers.utils.versions import require_version
...
@@ -49,7 +49,7 @@ from transformers.utils.versions import require_version
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/question-answering/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/question-answering/requirements.txt"
)
...
...
examples/pytorch/question-answering/run_qa_beam_search.py
View file @
888c4a2a
...
@@ -48,7 +48,7 @@ from transformers.utils.versions import require_version
...
@@ -48,7 +48,7 @@ from transformers.utils.versions import require_version
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/question-answering/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/question-answering/requirements.txt"
)
...
...
examples/pytorch/question-answering/run_qa_beam_search_no_trainer.py
View file @
888c4a2a
...
@@ -56,7 +56,7 @@ from transformers.utils.versions import require_version
...
@@ -56,7 +56,7 @@ from transformers.utils.versions import require_version
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.2
8
.0.dev0"
)
check_min_version
(
"4.2
9
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/question-answering/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/question-answering/requirements.txt"
)
...
...
Prev
1
2
3
Next
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment