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
d0925652
Commit
d0925652
authored
Mar 25, 2022
by
Lawrence McAfee
Browse files
debugging fp32 training.
parent
9f64f5f4
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
4 deletions
+1
-4
megatron/optimizer/distrib_optimizer.py
megatron/optimizer/distrib_optimizer.py
+1
-0
megatron/training.py
megatron/training.py
+0
-4
No files found.
megatron/optimizer/distrib_optimizer.py
View file @
d0925652
...
@@ -31,6 +31,7 @@ from .optimizer import MixedPrecisionOptimizer, _zero_grad_group_helper
...
@@ -31,6 +31,7 @@ from .optimizer import MixedPrecisionOptimizer, _zero_grad_group_helper
from
lutil
import
pax
,
tp
,
print_seq
from
lutil
import
pax
,
tp
,
print_seq
# <<<
# <<<
class
Range
:
class
Range
:
def
__init__
(
self
,
start
,
end
):
def
__init__
(
self
,
start
,
end
):
...
...
megatron/training.py
View file @
d0925652
...
@@ -52,10 +52,6 @@ from megatron.schedules import get_forward_backward_func
...
@@ -52,10 +52,6 @@ from megatron.schedules import get_forward_backward_func
from
megatron.utils
import
report_memory
from
megatron.utils
import
report_memory
from
megatron.model.vision.knn_monitor
import
compute_feature_bank
from
megatron.model.vision.knn_monitor
import
compute_feature_bank
# >>>
from
lutil
import
pax
,
tp
,
print_seq
# <<<
def
print_datetime
(
string
):
def
print_datetime
(
string
):
"""Note that this call will sync across all ranks."""
"""Note that this call will sync across all ranks."""
...
...
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