MCPcopy
hub / github.com/deepspeedai/DeepSpeed / test

Method test

tests/unit/comm/test_dist.py:25–28  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

23 world_size = 3
24
25 def test(self):
26 assert dist.is_initialized()
27 assert dist.get_world_size() == 3
28 assert dist.get_rank() < 3
29
30
31# Demonstration of pytest's parameterization and fixtures

Callers

nothing calls this directly

Calls 3

get_world_sizeMethod · 0.80
is_initializedMethod · 0.45
get_rankMethod · 0.45

Tested by

no test coverage detected