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
ColossalAI
Commits
274c1a3b
"examples/language/gpt/vscode:/vscode.git/clone" did not exist on "d83c633ca63c4eef49f3473aa998515fa5ca573f"
Unverified
Commit
274c1a3b
authored
Jul 21, 2022
by
Frank Lee
Committed by
GitHub
Jul 21, 2022
Browse files
[fx] fixed apex normalization patch exception (#1352)
parent
ce470ba3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colossalai/fx/tracer/meta_patch/patched_module/normalization.py
...alai/fx/tracer/meta_patch/patched_module/normalization.py
+1
-1
No files found.
colossalai/fx/tracer/meta_patch/patched_module/normalization.py
View file @
274c1a3b
...
...
@@ -26,5 +26,5 @@ try:
meta_patched_module
.
register
(
apex
.
normalization
.
FusedRMSNorm
)(
torch_nn_normalize
)
meta_patched_module
.
register
(
apex
.
normalization
.
MixedFusedLayerNorm
)(
torch_nn_normalize
)
meta_patched_module
.
register
(
apex
.
normalization
.
MixedFusedRMSNorm
)(
torch_nn_normalize
)
except
ImportError
:
except
(
ImportError
,
AttributeError
)
:
pass
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