MCPcopy Create free account
hub / github.com/THUDM/GLM / check

Function check

mpu/tests/test_initialize.py:38–40  ·  view source on GitHub ↗
(group, world_size, rank)

Source from the content-addressed store, hash-verified

36
37 # Checks.
38 def check(group, world_size, rank):
39 assert world_size == torch.distributed.get_world_size(group=group)
40 assert rank == torch.distributed.get_rank(group=group)
41
42 # Model parallel.
43 world_size = model_parallel_size_

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected