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
Megatron-LM
Commits
05b808ef
Commit
05b808ef
authored
Apr 05, 2023
by
Jared Casper
Browse files
Expand on apply-layernorm-1p description a bit.
parent
93bed794
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
megatron/arguments.py
megatron/arguments.py
+2
-1
No files found.
megatron/arguments.py
View file @
05b808ef
...
...
@@ -515,7 +515,8 @@ def _add_network_size_args(parser):
group
.
add_argument
(
'--layernorm-epsilon'
,
type
=
float
,
default
=
1e-5
,
help
=
'Layer norm epsilon.'
)
group
.
add_argument
(
'--apply-layernorm-1p'
,
action
=
'store_true'
,
help
=
'Weight adjustment centered around zero.'
)
help
=
'Adjust LayerNorm weights such that they are centered '
'around zero. This improves numerical stability.'
)
group
.
add_argument
(
'--apply-residual-connection-post-layernorm'
,
action
=
'store_true'
,
help
=
'If set, use original BERT residula connection '
...
...
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