Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/MoonshotAI/checkpoint-engine
/ get_world_size
Function
get_world_size
tests/test_update.py:26–27 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
24
25
26
def
get_world_size() -> int:
27
return
device_manager.device_module.device_count()
28
29
30
def
gen_test_tensors(rank: int) -> list[tuple[str, torch.Tensor]]:
Callers
2
get_files
Function · 0.90
run_with_files
Function · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected