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
11c69b80
Commit
11c69b80
authored
Sep 27, 2021
by
Lysandre
Browse files
Docs for version v4.11.0
parent
dc193c90
Changes
27
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/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/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
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
No files found.
.circleci/deploy.sh
View file @
11c69b80
...
...
@@ -72,4 +72,5 @@ deploy_doc "72aee83" v4.9.0
deploy_doc
"bff1c71"
v4.9.1
deploy_doc
"41981a2"
v4.9.2
deploy_doc
"39cb6f5"
v4.10.0
deploy_doc
"28e2787"
# v4.10.1 Latest stable release
\ No newline at end of file
deploy_doc
"28e2787"
v4.10.1
deploy_doc
"dc193c9"
# v4.11.0 Latest stable release
\ No newline at end of file
docs/source/_static/js/custom.js
View file @
11c69b80
// These two things need to be updated at each release for the version selector.
// Last stable version
const
stableVersion
=
"
v4.1
0.1
"
const
stableVersion
=
"
v4.1
1.0
"
// Dictionary doc folder to label. The last stable version should have an empty key.
const
versionMapping
=
{
"
master
"
:
"
master
"
,
""
:
"
v4.10.0/v4.10.1 (stable)
"
,
""
:
"
v4.11.0 (stable)
"
,
"
v4.10.1
"
:
"
v4.10.0/v4.10.1
"
,
"
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.7.0
"
:
"
v4.7.0
"
,
...
...
docs/source/conf.py
View file @
11c69b80
...
...
@@ -27,7 +27,8 @@ author = "huggingface"
# The short X.Y version
version
=
""
# The full version, including alpha/beta/rc tags
release
=
"4.11.0"
release
=
"4.12.0.dev0"
...
...
examples/flax/question-answering/run_qa.py
View file @
11c69b80
...
...
@@ -57,7 +57,7 @@ from utils_qa import postprocess_qa_predictions
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
Array
=
Any
Dataset
=
datasets
.
arrow_dataset
.
Dataset
...
...
examples/flax/token-classification/run_flax_ner.py
View file @
11c69b80
...
...
@@ -50,7 +50,7 @@ from transformers.utils.versions import require_version
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/token-classification/requirements.txt"
)
...
...
examples/pytorch/image-classification/run_image_classification.py
View file @
11c69b80
...
...
@@ -54,7 +54,7 @@ from transformers.utils.versions import require_version
logger
=
logging
.
getLogger
(
__name__
)
# Will error if the minimal version of Transformers is not installed. Remove at your own risks.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/text-classification/requirements.txt"
)
...
...
examples/pytorch/language-modeling/run_clm.py
View file @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
logger
=
logging
.
getLogger
(
__name__
)
...
...
examples/pytorch/question-answering/run_qa.py
View file @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
# TODO(Patrick) Bump up as soon as audio features are merged
require_version
(
"datasets>=1.12.0"
,
"To fix: pip install -r examples/pytorch/text-classification/requirements.txt"
)
...
...
examples/pytorch/summarization/run_summarization.py
View file @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
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 @
11c69b80
...
...
@@ -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.
check_min_version
(
"4.1
1.
0"
)
check_min_version
(
"4.1
2.0.dev
0"
)
require_version
(
"datasets>=1.8.0"
,
"To fix: pip install -r examples/pytorch/translation/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