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
FastMoE
Commits
a8c5a3cb
Commit
a8c5a3cb
authored
Oct 25, 2021
by
Rick Ho
Browse files
bug fix for megatron patch
parent
ae10e942
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
fmoe/megatron/patch.py
fmoe/megatron/patch.py
+3
-0
No files found.
fmoe/megatron/patch.py
View file @
a8c5a3cb
r
"""
Patching some of Megatron-LM's functions to create an MoE model
"""
import
torch
def
patch_forward_step
(
forward_step_func
):
r
"""
Patch model's forward_step_func to support balance loss
...
...
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