Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/modelscope/modelscope
/ is_megatron_initialized
Function
is_megatron_initialized
modelscope/utils/megatron_utils.py:69–70 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
67
68
69
def
is_megatron_initialized() -> bool:
70
return
_IS_MEGATRON_INITIALIZED
71
72
73
def
convert_megatron_checkpoint(
Callers
4
get_dist_info
Function · 0.90
to_parallel
Method · 0.90
after_init
Method · 0.90
test_init_megatron_util
Method · 0.90
Calls
no outgoing calls
Tested by
1
test_init_megatron_util
Method · 0.72
Used in the wild
real call sites across dependent graphs
searching dependent graphs…