Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/ModelTC/LightX2V
/ init_parallel_env
Method
init_parallel_env
lightx2v_platform/base/ascend_npu.py:31–33 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
29
30
@staticmethod
31
def
init_parallel_env():
32
dist.init_process_group(backend=
"hccl"
)
33
torch.npu.set_device(dist.get_rank())
Callers
nothing calls this directly
Calls
2
init_process_group
Method · 0.80
set_device
Method · 0.80
Tested by
no test coverage detected