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
19730725
Commit
19730725
authored
Mar 18, 2022
by
Lawrence McAfee
Browse files
using smaller chunk_numel_min.
parent
ed90a1b2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
megatron/optimizer/distrib_optimizer.py
megatron/optimizer/distrib_optimizer.py
+4
-1
No files found.
megatron/optimizer/distrib_optimizer.py
View file @
19730725
...
@@ -358,7 +358,10 @@ class DistributedOptimizer(MixedPrecisionOptimizer):
...
@@ -358,7 +358,10 @@ class DistributedOptimizer(MixedPrecisionOptimizer):
for
view
in
gbuf_views
:
for
view
in
gbuf_views
:
assert
view
.
nelement
()
==
view_numel
assert
view
.
nelement
()
==
view_numel
chunk_numel_min
=
1024
**
2
# chunk_numel_min = 1024
# chunk_numel_min = 16384
chunk_numel_min
=
131072
# chunk_numel_min = 1048576
chunk_numel_max
=
view_numel
chunk_numel_max
=
view_numel
# chunk_numel_min_log = math.log(chunk_numel_min)
# chunk_numel_min_log = math.log(chunk_numel_min)
# chunk_numel_max_log = math.log(chunk_numel_max)
# chunk_numel_max_log = math.log(chunk_numel_max)
...
...
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