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
f027ef79
"tests/git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "d5eeeb1416e6c4241026ce96480fb24395c1db4c"
Unverified
Commit
f027ef79
authored
Jan 03, 2023
by
YuliangLiu0306
Committed by
GitHub
Jan 03, 2023
Browse files
[hotfix] fix fp16 optimzier bug (#2273)
parent
fb873227
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
colossalai/amp/naive_amp/_fp16_optimizer.py
colossalai/amp/naive_amp/_fp16_optimizer.py
+2
-2
No files found.
colossalai/amp/naive_amp/_fp16_optimizer.py
View file @
f027ef79
...
@@ -70,8 +70,8 @@ class FP16Optimizer(Optimizer):
...
@@ -70,8 +70,8 @@ class FP16Optimizer(Optimizer):
# get process group
# get process group
def
_get_process_group
(
parallel_mode
):
def
_get_process_group
(
parallel_mode
):
if
gpc
.
is_initialized
(
P
arallel
M
ode
.
DATA
)
and
gpc
.
get_world_size
(
P
arallel
M
ode
.
DATA
):
if
gpc
.
is_initialized
(
p
arallel
_m
ode
)
and
gpc
.
get_world_size
(
p
arallel
_m
ode
):
return
gpc
.
get_group
(
P
arallel
M
ode
.
DATA
)
return
gpc
.
get_group
(
p
arallel
_m
ode
)
else
:
else
:
return
None
return
None
...
...
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