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
b8fad022
"git@developer.sourcefind.cn:chenpangpang/transformers.git" did not exist on "852e4b3c000c99433dc94bdaf1e0612dabaaa5d8"
Commit
b8fad022
authored
Oct 28, 2021
by
Lysandre
Browse files
v4.13.0.dev0
parent
62bf5366
Changes
29
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
24 additions
and
21 deletions
+24
-21
.circleci/deploy.sh
.circleci/deploy.sh
+2
-1
docs/source/_static/js/custom.js
docs/source/_static/js/custom.js
+3
-2
docs/source/conf.py
docs/source/conf.py
+2
-1
examples/flax/question-answering/run_qa.py
examples/flax/question-answering/run_qa.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/image-classification/run_image_classification.py
.../pytorch/image-classification/run_image_classification.py
+1
-1
examples/pytorch/language-modeling/run_clm.py
examples/pytorch/language-modeling/run_clm.py
+1
-1
examples/pytorch/language-modeling/run_mlm.py
examples/pytorch/language-modeling/run_mlm.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/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/speech-recognition/run_speech_recognition_ctc.py
.../pytorch/speech-recognition/run_speech_recognition_ctc.py
+1
-1
examples/pytorch/summarization/run_summarization.py
examples/pytorch/summarization/run_summarization.py
+1
-1
examples/pytorch/text-classification/run_glue.py
examples/pytorch/text-classification/run_glue.py
+1
-1
examples/pytorch/text-classification/run_xnli.py
examples/pytorch/text-classification/run_xnli.py
+1
-1
No files found.
.circleci/deploy.sh
View file @
b8fad022
...
@@ -76,4 +76,5 @@ deploy_doc "28e2787" v4.10.1
...
@@ -76,4 +76,5 @@ deploy_doc "28e2787" v4.10.1
deploy_doc
"dc193c9"
v4.11.0
deploy_doc
"dc193c9"
v4.11.0
deploy_doc
"54f9d62"
v4.11.1
deploy_doc
"54f9d62"
v4.11.1
deploy_doc
"7655f11"
v4.11.2
deploy_doc
"7655f11"
v4.11.2
deploy_doc
"65659a2"
# v4.11.3 Latest stable release
deploy_doc
"65659a2"
v4.11.3
\ No newline at end of file
deploy_doc
"62bf536"
# v4.12.0 Latest stable release
\ No newline at end of file
docs/source/_static/js/custom.js
View file @
b8fad022
// These two things need to be updated at each release for the version selector.
// These two things need to be updated at each release for the version selector.
// Last stable version
// Last stable version
const
stableVersion
=
"
v4.1
1.3
"
const
stableVersion
=
"
v4.1
2.0
"
// Dictionary doc folder to label. The last stable version should have an empty key.
// Dictionary doc folder to label. The last stable version should have an empty key.
const
versionMapping
=
{
const
versionMapping
=
{
"
master
"
:
"
master
"
,
"
master
"
:
"
master
"
,
""
:
"
v4.11.0/v4.11.1/v4.11.2/v4.11.3 (stable)
"
,
""
:
"
v4.12.0 (stable)
"
,
"
v4.11.3
"
:
"
v4.11.0/v4.11.1/v4.11.2/v4.11.3
"
,
"
v4.10.1
"
:
"
v4.10.0/v4.10.1
"
,
"
v4.10.1
"
:
"
v4.10.0/v4.10.1
"
,
"
v4.9.2
"
:
"
v4.9.0/v4.9.1/v4.9.2
"
,
"
v4.9.2
"
:
"
v4.9.0/v4.9.1/v4.9.2
"
,
"
v4.8.2
"
:
"
v4.8.0/v4.8.1/v4.8.2
"
,
"
v4.8.2
"
:
"
v4.8.0/v4.8.1/v4.8.2
"
,
...
...
docs/source/conf.py
View file @
b8fad022
...
@@ -27,7 +27,8 @@ author = "huggingface"
...
@@ -27,7 +27,8 @@ author = "huggingface"
# The short X.Y version
# The short X.Y version
version
=
""
version
=
""
# The full version, including alpha/beta/rc tags
# The full version, including alpha/beta/rc tags
release
=
"4.12.0"
release
=
"4.13.0.dev0"
...
...
examples/flax/question-answering/run_qa.py
View file @
b8fad022
...
@@ -60,7 +60,7 @@ from utils_qa import postprocess_qa_predictions
...
@@ -60,7 +60,7 @@ from utils_qa import postprocess_qa_predictions
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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
Array
=
Any
Array
=
Any
Dataset
=
datasets
.
arrow_dataset
.
Dataset
Dataset
=
datasets
.
arrow_dataset
.
Dataset
...
...
examples/flax/token-classification/run_flax_ner.py
View file @
b8fad022
...
@@ -53,7 +53,7 @@ from transformers.utils.versions import require_version
...
@@ -53,7 +53,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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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 @
b8fad022
...
@@ -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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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/image-classification/run_image_classification.py
View file @
b8fad022
...
@@ -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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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/language-modeling/run_clm.py
View file @
b8fad022
...
@@ -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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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.py
View file @
b8fad022
...
@@ -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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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 @
b8fad022
...
@@ -46,7 +46,7 @@ from transformers.utils.versions import require_version
...
@@ -46,7 +46,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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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 @
b8fad022
...
@@ -47,7 +47,7 @@ from transformers.utils import check_min_version
...
@@ -47,7 +47,7 @@ from transformers.utils import check_min_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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
examples/pytorch/question-answering/run_qa.py
View file @
b8fad022
...
@@ -48,7 +48,7 @@ from utils_qa import postprocess_qa_predictions
...
@@ -48,7 +48,7 @@ from utils_qa import postprocess_qa_predictions
# 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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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 @
b8fad022
...
@@ -47,7 +47,7 @@ from utils_qa import postprocess_qa_predictions_with_beam_search
...
@@ -47,7 +47,7 @@ from utils_qa import postprocess_qa_predictions_with_beam_search
# 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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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 @
b8fad022
...
@@ -54,7 +54,7 @@ from utils_qa import postprocess_qa_predictions_with_beam_search
...
@@ -54,7 +54,7 @@ from utils_qa import postprocess_qa_predictions_with_beam_search
# 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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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 @
b8fad022
...
@@ -56,7 +56,7 @@ from utils_qa import postprocess_qa_predictions
...
@@ -56,7 +56,7 @@ from utils_qa import postprocess_qa_predictions
# 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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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 @
b8fad022
...
@@ -46,7 +46,7 @@ from transformers.utils.versions import require_version
...
@@ -46,7 +46,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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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/speech-recognition/run_speech_recognition_ctc.py
View file @
b8fad022
...
@@ -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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
require_version
(
"datasets>=1.13.3"
,
"To fix: pip install -r examples/pytorch/text-classification/requirements.txt"
)
require_version
(
"datasets>=1.13.3"
,
"To fix: pip install -r examples/pytorch/text-classification/requirements.txt"
)
...
...
examples/pytorch/summarization/run_summarization.py
View file @
b8fad022
...
@@ -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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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_glue.py
View file @
b8fad022
...
@@ -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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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_xnli.py
View file @
b8fad022
...
@@ -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.1
2.
0"
)
check_min_version
(
"4.1
3.0.dev
0"
)
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"
)
...
...
Prev
1
2
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