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
f257d0ee
"docs/git@developer.sourcefind.cn:OpenDAS/torchaudio.git" did not exist on "ce2ae984a19d6c52c1ee3d799834f42d4d38490c"
Commit
f257d0ee
authored
May 05, 2020
by
Mohammad
Browse files
added parameters sharing
parent
80f90dcd
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
1 deletion
+0
-1
megatron/model/transformer.py
megatron/model/transformer.py
+0
-1
No files found.
megatron/model/transformer.py
View file @
f257d0ee
...
@@ -405,7 +405,6 @@ class ParallelTransformer(MegatronModule):
...
@@ -405,7 +405,6 @@ class ParallelTransformer(MegatronModule):
"""Forward method with activation checkpointing."""
"""Forward method with activation checkpointing."""
def
custom
(
start
,
end
):
def
custom
(
start
,
end
):
def
custom_forward
(
*
inputs
):
def
custom_forward
(
*
inputs
):
layers_
=
self
.
layers
[
start
:
end
]
x_
=
inputs
[
0
]
x_
=
inputs
[
0
]
for
index
in
range
(
start
,
end
):
for
index
in
range
(
start
,
end
):
layer
=
self
.
_get_layer
(
index
)
layer
=
self
.
_get_layer
(
index
)
...
...
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