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
7feb02c6
Commit
7feb02c6
authored
Jul 24, 2020
by
Jared Casper
Browse files
Merge branch 'apex-fix-fix' into 'master'
Fixed APEX test See merge request ADLR/megatron-lm!102
parents
bf97f933
8f0af7cd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
megatron/model/transformer.py
megatron/model/transformer.py
+1
-1
No files found.
megatron/model/transformer.py
View file @
7feb02c6
...
...
@@ -21,7 +21,7 @@ import torch
try
:
from
apex.normalization.fused_layer_norm
import
FusedLayerNorm
as
LayerNorm
# Try to use FusedLayerNorm from Apex - this will trigger an error.
_
=
Fused
LayerNorm
(
8
,
eps
=
1e-5
)
_
=
LayerNorm
(
8
,
eps
=
1e-5
)
except
Exception
as
e
:
print
(
'WARNING: APEX is not available, using torch.nn.LayerNorm instead of apex.normalization.FusedLayerNorm!'
)
...
...
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