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
OpenDAS
Fairseq
Commits
09379ad8
Commit
09379ad8
authored
May 25, 2018
by
alexeib
Committed by
Myle Ott
Jun 15, 2018
Browse files
add big en_fr transformer architecture
parent
e774fda7
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
0 deletions
+5
-0
fairseq/models/transformer.py
fairseq/models/transformer.py
+5
-0
No files found.
fairseq/models/transformer.py
View file @
09379ad8
...
@@ -432,6 +432,11 @@ def transformer_vaswani_wmt_en_de_big(args):
...
@@ -432,6 +432,11 @@ def transformer_vaswani_wmt_en_de_big(args):
args
.
dropout
=
getattr
(
args
,
'dropout'
,
0.3
)
args
.
dropout
=
getattr
(
args
,
'dropout'
,
0.3
)
base_architecture
(
args
)
base_architecture
(
args
)
@
register_model_architecture
(
'transformer'
,
'transformer_vaswani_wmt_en_fr_big'
)
def
transformer_vaswani_wmt_en_fr_big
(
args
):
args
.
dropout
=
getattr
(
args
,
'dropout'
,
0.1
)
transformer_vaswani_wmt_en_de_big
(
args
)
@
register_model_architecture
(
'transformer'
,
'transformer_wmt_en_de_big'
)
@
register_model_architecture
(
'transformer'
,
'transformer_wmt_en_de_big'
)
def
transformer_wmt_en_de_big
(
args
):
def
transformer_wmt_en_de_big
(
args
):
...
...
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