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
e7b494f8
Commit
e7b494f8
authored
Jul 19, 2018
by
alexeib
Committed by
Myle Ott
Jul 25, 2018
Browse files
default decoder_learned_pos for lm
parent
67ee6d1f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
fairseq/models/transformer.py
fairseq/models/transformer.py
+1
-0
No files found.
fairseq/models/transformer.py
View file @
e7b494f8
...
...
@@ -533,6 +533,7 @@ def base_lm_architecture(args):
args
.
decoder_layers
=
getattr
(
args
,
'decoder_layers'
,
6
)
args
.
decoder_attention_heads
=
getattr
(
args
,
'decoder_attention_heads'
,
8
)
args
.
adaptive_softmax_cutoff
=
getattr
(
args
,
'adaptive_softmax_cutoff'
,
None
)
args
.
decoder_learned_pos
=
getattr
(
args
,
'decoder_learned_pos'
,
False
)
# The model training is not stable without this
args
.
decoder_normalize_before
=
True
...
...
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