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
b886b7bb
Commit
b886b7bb
authored
Oct 08, 2019
by
Mohammad Shoeybi
Browse files
created megatron package
parent
4947002d
Changes
45
Hide whitespace changes
Inline
Side-by-side
Showing
20 changed files
with
4 additions
and
4 deletions
+4
-4
megatron/model/distributed.py
megatron/model/distributed.py
+1
-1
megatron/model/gpt2_modeling.py
megatron/model/gpt2_modeling.py
+1
-1
megatron/model/model.py
megatron/model/model.py
+0
-0
megatron/model/modeling.py
megatron/model/modeling.py
+2
-2
megatron/mpu/__init__.py
megatron/mpu/__init__.py
+0
-0
megatron/mpu/cross_entropy.py
megatron/mpu/cross_entropy.py
+0
-0
megatron/mpu/data.py
megatron/mpu/data.py
+0
-0
megatron/mpu/grads.py
megatron/mpu/grads.py
+0
-0
megatron/mpu/initialize.py
megatron/mpu/initialize.py
+0
-0
megatron/mpu/layers.py
megatron/mpu/layers.py
+0
-0
megatron/mpu/mappings.py
megatron/mpu/mappings.py
+0
-0
megatron/mpu/random.py
megatron/mpu/random.py
+0
-0
megatron/mpu/tests/__init__.py
megatron/mpu/tests/__init__.py
+0
-0
megatron/mpu/tests/commons.py
megatron/mpu/tests/commons.py
+0
-0
megatron/mpu/tests/test_cross_entropy.py
megatron/mpu/tests/test_cross_entropy.py
+0
-0
megatron/mpu/tests/test_data.py
megatron/mpu/tests/test_data.py
+0
-0
megatron/mpu/tests/test_initialize.py
megatron/mpu/tests/test_initialize.py
+0
-0
megatron/mpu/tests/test_layers.py
megatron/mpu/tests/test_layers.py
+0
-0
megatron/mpu/tests/test_random.py
megatron/mpu/tests/test_random.py
+0
-0
megatron/mpu/transformer.py
megatron/mpu/transformer.py
+0
-0
No files found.
model/distributed.py
→
megatron/
model/distributed.py
View file @
b886b7bb
...
@@ -19,7 +19,7 @@ import torch.distributed as dist
...
@@ -19,7 +19,7 @@ import torch.distributed as dist
from
torch.nn.modules
import
Module
from
torch.nn.modules
import
Module
from
torch.autograd
import
Variable
from
torch.autograd
import
Variable
import
mpu
from
megatron
import
mpu
class
DistributedDataParallel
(
Module
):
class
DistributedDataParallel
(
Module
):
...
...
model/gpt2_modeling.py
→
megatron/
model/gpt2_modeling.py
View file @
b886b7bb
...
@@ -18,7 +18,7 @@
...
@@ -18,7 +18,7 @@
import
torch
import
torch
import
torch.nn.functional
as
F
import
torch.nn.functional
as
F
import
mpu
from
megatron
import
mpu
def
init_method_normal
(
std
=
0.02
):
def
init_method_normal
(
std
=
0.02
):
...
...
model/model.py
→
megatron/
model/model.py
View file @
b886b7bb
File moved
model/modeling.py
→
megatron/
model/modeling.py
View file @
b886b7bb
...
@@ -34,9 +34,9 @@ from torch.nn import CrossEntropyLoss
...
@@ -34,9 +34,9 @@ from torch.nn import CrossEntropyLoss
#from torch.utils.checkpoint import checkpoint
#from torch.utils.checkpoint import checkpoint
from
data_utils.file_utils
import
cached_path
from
megatron.
data_utils.file_utils
import
cached_path
import
mpu
from
megatron
import
mpu
def
normal_init_method
(
mean
,
std
):
def
normal_init_method
(
mean
,
std
):
...
...
mpu/__init__.py
→
megatron/
mpu/__init__.py
View file @
b886b7bb
File moved
mpu/cross_entropy.py
→
megatron/
mpu/cross_entropy.py
View file @
b886b7bb
File moved
mpu/data.py
→
megatron/
mpu/data.py
View file @
b886b7bb
File moved
mpu/grads.py
→
megatron/
mpu/grads.py
View file @
b886b7bb
File moved
mpu/initialize.py
→
megatron/
mpu/initialize.py
View file @
b886b7bb
File moved
mpu/layers.py
→
megatron/
mpu/layers.py
View file @
b886b7bb
File moved
mpu/mappings.py
→
megatron/
mpu/mappings.py
View file @
b886b7bb
File moved
mpu/random.py
→
megatron/
mpu/random.py
View file @
b886b7bb
File moved
mpu/tests/__init__.py
→
megatron/
mpu/tests/__init__.py
View file @
b886b7bb
File moved
mpu/tests/commons.py
→
megatron/
mpu/tests/commons.py
View file @
b886b7bb
File moved
mpu/tests/test_cross_entropy.py
→
megatron/
mpu/tests/test_cross_entropy.py
View file @
b886b7bb
File moved
mpu/tests/test_data.py
→
megatron/
mpu/tests/test_data.py
View file @
b886b7bb
File moved
mpu/tests/test_initialize.py
→
megatron/
mpu/tests/test_initialize.py
View file @
b886b7bb
File moved
mpu/tests/test_layers.py
→
megatron/
mpu/tests/test_layers.py
View file @
b886b7bb
File moved
mpu/tests/test_random.py
→
megatron/
mpu/tests/test_random.py
View file @
b886b7bb
File moved
mpu/transformer.py
→
megatron/
mpu/transformer.py
View file @
b886b7bb
File moved
Prev
1
2
3
Next
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