MCPcopy
hub / github.com/InternLM/InternLM / get_cpu_group

Method get_cpu_group

internlm/core/context/parallel_context.py:359–361  ·  view source on GitHub ↗
(self, parallel_mode: ParallelMode)

Source from the content-addressed store, hash-verified

357 return self._ranks_in_group[parallel_mode]
358
359 def get_cpu_group(self, parallel_mode: ParallelMode):
360 self._check_parallel_mode(parallel_mode)
361 return self._cpu_groups[parallel_mode]
362
363 def init_global_dist(self, rank: int, world_size: int, backend: str, host: str, port: int, use_cpu: bool = False):
364 """Initializes the global distributed environment

Callers 1

_gatherFunction · 0.80

Calls 1

_check_parallel_modeMethod · 0.95

Tested by

no test coverage detected