"tests/git@developer.sourcefind.cn:OpenDAS/colossalai.git" did not exist on "d5eeeb1416e6c4241026ce96480fb24395c1db4c"
Unverified Commit f027ef79 authored by YuliangLiu0306's avatar YuliangLiu0306 Committed by GitHub
Browse files

[hotfix] fix fp16 optimzier bug (#2273)

parent fb873227
...@@ -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(ParallelMode.DATA) and gpc.get_world_size(ParallelMode.DATA): if gpc.is_initialized(parallel_mode) and gpc.get_world_size(parallel_mode):
return gpc.get_group(ParallelMode.DATA) return gpc.get_group(parallel_mode)
else: else:
return None return None
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment