Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MotrixLab/ViMoGen
/ get_node_rank
Function
get_node_rank
parallel/utils.py:56–57 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
54
55
56
def
get_node_rank():
57
return
int(os.environ[
'GROUP_RANK'
])
58
59
60
def
get_device_mesh(use_hybrid: bool = False, tp_size: int = None):
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected