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
b04eb0a2
Commit
b04eb0a2
authored
Jul 23, 2020
by
Boris Fomitchev
Browse files
Warning added
parent
9026b86d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
megatron/model/transformer.py
megatron/model/transformer.py
+1
-0
No files found.
megatron/model/transformer.py
View file @
b04eb0a2
...
@@ -24,6 +24,7 @@ try:
...
@@ -24,6 +24,7 @@ try:
_
=
FusedLayerNorm
(
8
,
eps
=
1e-5
)
_
=
FusedLayerNorm
(
8
,
eps
=
1e-5
)
except
Exception
as
e
:
except
Exception
as
e
:
print
(
'WARNING: APEX is not available, using torch.nn.LayerNorm instead of apex.normalization.FusedLayerNorm!'
)
from
torch.nn
import
LayerNorm
from
torch.nn
import
LayerNorm
from
megatron
import
get_args
from
megatron
import
get_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