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
3ed3e319
Commit
3ed3e319
authored
Dec 13, 2023
by
Lysandre
Browse files
Dev version
parent
815ea8e8
Changes
54
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
20 additions
and
20 deletions
+20
-20
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
examples/pytorch/question-answering/run_qa_no_trainer.py
examples/pytorch/question-answering/run_qa_no_trainer.py
+1
-1
examples/pytorch/question-answering/run_seq2seq_qa.py
examples/pytorch/question-answering/run_seq2seq_qa.py
+1
-1
examples/pytorch/semantic-segmentation/run_semantic_segmentation.py
...ytorch/semantic-segmentation/run_semantic_segmentation.py
+1
-1
examples/pytorch/semantic-segmentation/run_semantic_segmentation_no_trainer.py
...ntic-segmentation/run_semantic_segmentation_no_trainer.py
+1
-1
examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
.../pytorch/speech-recognition/run_speech_recognition_ctc.py
+1
-1
examples/pytorch/speech-recognition/run_speech_recognition_ctc_adapter.py
.../speech-recognition/run_speech_recognition_ctc_adapter.py
+1
-1
examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
...orch/speech-recognition/run_speech_recognition_seq2seq.py
+1
-1
examples/pytorch/summarization/run_summarization.py
examples/pytorch/summarization/run_summarization.py
+1
-1
examples/pytorch/summarization/run_summarization_no_trainer.py
...les/pytorch/summarization/run_summarization_no_trainer.py
+1
-1
examples/pytorch/text-classification/run_classification.py
examples/pytorch/text-classification/run_classification.py
+1
-1
examples/pytorch/text-classification/run_glue.py
examples/pytorch/text-classification/run_glue.py
+1
-1
examples/pytorch/text-classification/run_glue_no_trainer.py
examples/pytorch/text-classification/run_glue_no_trainer.py
+1
-1
No files found.
examples/pytorch/language-modeling/run_mlm.py
View file @
3ed3e319
...
@@ -54,7 +54,7 @@ from transformers.utils.versions import require_version
...
@@ -54,7 +54,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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.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 @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.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 @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.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 @
3ed3e319
...
@@ -48,7 +48,7 @@ from transformers.utils import PaddingStrategy, check_min_version, send_example_
...
@@ -48,7 +48,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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
examples/pytorch/multiple-choice/run_swag_no_trainer.py
View file @
3ed3e319
...
@@ -56,7 +56,7 @@ from transformers.utils import PaddingStrategy, check_min_version, send_example_
...
@@ -56,7 +56,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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.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 @
3ed3e319
...
@@ -50,7 +50,7 @@ from transformers.utils.versions import require_version
...
@@ -50,7 +50,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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.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 @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.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 @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.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_no_trainer.py
View file @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.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_seq2seq_qa.py
View file @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.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/semantic-segmentation/run_semantic_segmentation.py
View file @
3ed3e319
...
@@ -52,7 +52,7 @@ from transformers.utils.versions import require_version
...
@@ -52,7 +52,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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
require_version
(
"datasets>=2.0.0"
,
"To fix: pip install -r examples/pytorch/semantic-segmentation/requirements.txt"
)
require_version
(
"datasets>=2.0.0"
,
"To fix: pip install -r examples/pytorch/semantic-segmentation/requirements.txt"
)
...
...
examples/pytorch/semantic-segmentation/run_semantic_segmentation_no_trainer.py
View file @
3ed3e319
...
@@ -50,7 +50,7 @@ from transformers.utils.versions import require_version
...
@@ -50,7 +50,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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
...
...
examples/pytorch/speech-recognition/run_speech_recognition_ctc.py
View file @
3ed3e319
...
@@ -51,7 +51,7 @@ from transformers.utils.versions import require_version
...
@@ -51,7 +51,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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
require_version
(
"datasets>=1.18.0"
,
"To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt"
)
require_version
(
"datasets>=1.18.0"
,
"To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt"
)
...
...
examples/pytorch/speech-recognition/run_speech_recognition_ctc_adapter.py
View file @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
require_version
(
"datasets>=1.18.0"
,
"To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt"
)
require_version
(
"datasets>=1.18.0"
,
"To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt"
)
...
...
examples/pytorch/speech-recognition/run_speech_recognition_seq2seq.py
View file @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
require_version
(
"datasets>=1.18.0"
,
"To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt"
)
require_version
(
"datasets>=1.18.0"
,
"To fix: pip install -r examples/pytorch/speech-recognition/requirements.txt"
)
...
...
examples/pytorch/summarization/run_summarization.py
View file @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/summarization/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/summarization/requirements.txt"
)
...
...
examples/pytorch/summarization/run_summarization_no_trainer.py
View file @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/summarization/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/summarization/requirements.txt"
)
...
...
examples/pytorch/text-classification/run_classification.py
View file @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/text-classification/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/text-classification/requirements.txt"
)
...
...
examples/pytorch/text-classification/run_glue.py
View file @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/text-classification/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/text-classification/requirements.txt"
)
...
...
examples/pytorch/text-classification/run_glue_no_trainer.py
View file @
3ed3e319
...
@@ -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.3
6
.0.dev0"
)
check_min_version
(
"4.3
7
.0.dev0"
)
logger
=
get_logger
(
__name__
)
logger
=
get_logger
(
__name__
)
...
...
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