MCPcopy Index your code
hub / github.com/modelscope/modelscope / log_master

Function log_master

modelscope/utils/megatron_utils.py:84–86  ·  view source on GitHub ↗
(information: str)

Source from the content-addressed store, hash-verified

82 """
83
84 def log_master(information: str):
85 if is_master():
86 logger.info(information)
87
88 if os.path.exists(os.path.join(checkpoint_dir, 'model')):
89 checkpoint_dir = os.path.join(checkpoint_dir, 'model')

Callers 1

Calls 2

is_masterFunction · 0.90
infoMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…