MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / init_distributed

Function init_distributed

lightx2v_train/lightx2v_train/runtime/distributed.py:11–26  ·  view source on GitHub ↗
(config=None)

Source from the content-addressed store, hash-verified

9
10_DEVICE_MESH = None
11_FSDP_DEVICE_MESH = None
12_DP_GROUP = None
13_SP_GROUP = None
14_DP_RANK = 0
15_DP_WORLD_SIZE = 1
16_SP_RANK = 0
17_SP_WORLD_SIZE = 1
18
19
20def _positive_int(value, name):
21 value = int(value)
22 if value < 1:
23 raise ValueError(f"{name} must be positive, got {value}.")
24 return value
25
26
27def _get_int_config(config, paths):
28 for path in paths:
29 current = config or {}

Callers 2

mainFunction · 0.90
mainFunction · 0.90

Calls 4

set_deviceMethod · 0.80
is_initializedMethod · 0.80
init_process_groupMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected