MCPcopy Create free account
hub / github.com/modelscope/modelscope / test_init_megatron_util

Method test_init_megatron_util

tests/utils/test_megatron.py:29–38  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

27
28 @unittest.skip
29 def test_init_megatron_util(self):
30 dummy_megatron_cfg = {
31 'tensor_model_parallel_size': 1,
32 'world_size': 1,
33 'distributed_backend': 'nccl',
34 'seed': 42,
35 }
36 os.environ['MASTER_PORT'] = '39500'
37 init_megatron_util(dummy_megatron_cfg)
38 self.assertTrue(is_megatron_initialized())
39
40 @unittest.skip
41 def test_convert_megatron_checkpoint(self):

Callers

nothing calls this directly

Calls 2

init_megatron_utilFunction · 0.90
is_megatron_initializedFunction · 0.90

Tested by

no test coverage detected