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
5ee67a44
Commit
5ee67a44
authored
Aug 31, 2021
by
Lysandre
Browse files
Docs for v4.10.0
parent
d12bbe49
Changes
23
Show 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/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/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
examples/pytorch/token-classification/run_ner.py
examples/pytorch/token-classification/run_ner.py
+1
-1
examples/pytorch/translation/run_translation.py
examples/pytorch/translation/run_translation.py
+1
-1
examples/tensorflow/multiple-choice/run_swag.py
examples/tensorflow/multiple-choice/run_swag.py
+1
-1
examples/tensorflow/question-answering/run_qa.py
examples/tensorflow/question-answering/run_qa.py
+1
-1
examples/tensorflow/summarization/run_summarization.py
examples/tensorflow/summarization/run_summarization.py
+1
-1
examples/tensorflow/text-classification/run_glue.py
examples/tensorflow/text-classification/run_glue.py
+1
-1
No files found.
.circleci/deploy.sh
View file @
5ee67a44
...
@@ -70,4 +70,5 @@ deploy_doc "1366172" v4.8.1
...
@@ -70,4 +70,5 @@ deploy_doc "1366172" v4.8.1
deploy_doc
"96d1cfb"
v4.8.2
deploy_doc
"96d1cfb"
v4.8.2
deploy_doc
"72aee83"
v4.9.0
deploy_doc
"72aee83"
v4.9.0
deploy_doc
"bff1c71"
v4.9.1
deploy_doc
"bff1c71"
v4.9.1
deploy_doc
"41981a2"
# v4.9.2 Latest stable release
deploy_doc
"41981a2"
v4.9.2
\ No newline at end of file
deploy_doc
"d12bbe4"
# v4.10.0 Latest stable release
\ No newline at end of file
docs/source/_static/js/custom.js
View file @
5ee67a44
// 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.
9.2
"
const
stableVersion
=
"
v4.
10.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.9.0/v4.9.1/v4.9.2 (stable)
"
,
""
:
"
v4.10.0 (stable)
"
,
"
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
"
,
"
v4.7.0
"
:
"
v4.7.0
"
,
"
v4.7.0
"
:
"
v4.7.0
"
,
"
v4.6.0
"
:
"
v4.6.0
"
,
"
v4.6.0
"
:
"
v4.6.0
"
,
...
...
docs/source/conf.py
View file @
5ee67a44
...
@@ -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.10.0"
release
=
"4.11.0.dev0"
...
...
examples/pytorch/language-modeling/run_clm.py
View file @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.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 @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.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 @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.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 @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.0.dev
0"
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
examples/pytorch/question-answering/run_qa.py
View file @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.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 @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.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 @
5ee67a44
...
@@ -51,7 +51,7 @@ from utils_qa import postprocess_qa_predictions_with_beam_search
...
@@ -51,7 +51,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
0.
0"
)
check_min_version
(
"4.1
1.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 @
5ee67a44
...
@@ -53,7 +53,7 @@ from utils_qa import postprocess_qa_predictions
...
@@ -53,7 +53,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
0.
0"
)
check_min_version
(
"4.1
1.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/summarization/run_summarization.py
View file @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.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 @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.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 @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.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/token-classification/run_ner.py
View file @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.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/translation/run_translation.py
View file @
5ee67a44
...
@@ -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
0.
0"
)
check_min_version
(
"4.1
1.0.dev
0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/translation/requirements.txt"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/translation/requirements.txt"
)
...
...
examples/tensorflow/multiple-choice/run_swag.py
View file @
5ee67a44
...
@@ -46,7 +46,7 @@ from transformers.utils import check_min_version
...
@@ -46,7 +46,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
0.
0"
)
check_min_version
(
"4.1
1.0.dev
0"
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
examples/tensorflow/question-answering/run_qa.py
View file @
5ee67a44
...
@@ -45,7 +45,7 @@ from utils_qa import postprocess_qa_predictions
...
@@ -45,7 +45,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
0.
0"
)
check_min_version
(
"4.1
1.0.dev
0"
)
logger
=
logging
.
getLogger
(
__name__
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
examples/tensorflow/summarization/run_summarization.py
View file @
5ee67a44
...
@@ -51,7 +51,7 @@ from transformers.utils.versions import require_version
...
@@ -51,7 +51,7 @@ from transformers.utils.versions import require_version
# region Checking dependencies
# region Checking dependencies
# 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
0.
0"
)
check_min_version
(
"4.1
1.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/tensorflow/text-classification/run_glue.py
View file @
5ee67a44
...
@@ -100,7 +100,7 @@ class SavePretrainedCallback(tf.keras.callbacks.Callback):
...
@@ -100,7 +100,7 @@ class SavePretrainedCallback(tf.keras.callbacks.Callback):
# 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
0.
0"
)
check_min_version
(
"4.1
1.0.dev
0"
)
task_to_keys
=
{
task_to_keys
=
{
"cola"
:
(
"sentence"
,
None
),
"cola"
:
(
"sentence"
,
None
),
...
...
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