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
eed46f38
Commit
eed46f38
authored
Dec 21, 2019
by
Aymeric Augustin
Browse files
Fix E302 flake8 warning (x3).
parent
b1de7ae0
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
0 deletions
+3
-0
templates/adding_a_new_model/modeling_tf_xxx.py
templates/adding_a_new_model/modeling_tf_xxx.py
+1
-0
templates/adding_a_new_model/modeling_xxx.py
templates/adding_a_new_model/modeling_xxx.py
+1
-0
transformers/modeling_t5.py
transformers/modeling_t5.py
+1
-0
No files found.
templates/adding_a_new_model/modeling_tf_xxx.py
View file @
eed46f38
...
@@ -49,6 +49,7 @@ TF_XXX_PRETRAINED_MODEL_ARCHIVE_MAP = {
...
@@ -49,6 +49,7 @@ TF_XXX_PRETRAINED_MODEL_ARCHIVE_MAP = {
"xxx-large-uncased"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xxx-large-uncased-tf_model.h5"
,
"xxx-large-uncased"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xxx-large-uncased-tf_model.h5"
,
}
}
####################################################
####################################################
# TF 2.0 Models are constructed using Keras imperative API by sub-classing
# TF 2.0 Models are constructed using Keras imperative API by sub-classing
# - tf.keras.layers.Layer for the layers and
# - tf.keras.layers.Layer for the layers and
...
...
templates/adding_a_new_model/modeling_xxx.py
View file @
eed46f38
...
@@ -49,6 +49,7 @@ XXX_PRETRAINED_MODEL_ARCHIVE_MAP = {
...
@@ -49,6 +49,7 @@ XXX_PRETRAINED_MODEL_ARCHIVE_MAP = {
"xxx-large-uncased"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xxx-large-uncased-pytorch_model.bin"
,
"xxx-large-uncased"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/xxx-large-uncased-pytorch_model.bin"
,
}
}
####################################################
####################################################
# This is a conversion method from TF 1.0 to PyTorch
# This is a conversion method from TF 1.0 to PyTorch
# More details: https://medium.com/huggingface/from-tensorflow-to-pytorch-265f40ef2a28
# More details: https://medium.com/huggingface/from-tensorflow-to-pytorch-265f40ef2a28
...
...
transformers/modeling_t5.py
View file @
eed46f38
...
@@ -49,6 +49,7 @@ T5_PRETRAINED_MODEL_ARCHIVE_MAP = {
...
@@ -49,6 +49,7 @@ T5_PRETRAINED_MODEL_ARCHIVE_MAP = {
"t5-11b"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/t5-11b-pytorch_model.bin"
,
"t5-11b"
:
"https://s3.amazonaws.com/models.huggingface.co/bert/t5-11b-pytorch_model.bin"
,
}
}
####################################################
####################################################
# This is a conversion method from TF 1.0 to PyTorch
# This is a conversion method from TF 1.0 to PyTorch
# More details: https://medium.com/huggingface/from-tensorflow-to-pytorch-265f40ef2a28
# More details: https://medium.com/huggingface/from-tensorflow-to-pytorch-265f40ef2a28
...
...
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