Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/deepspeedai/DeepSpeedExamples
/ write_mapping_file
Function
write_mapping_file
Megatron-LM/scripts/split_json.py:84–87 ·
view source on GitHub ↗
(m, path)
Source
from the content-addressed store, hash-verified
82
f.write(l+
'\n'
)
83
84
def
write_mapping_file(m, path):
85
path = path+
'.map'
86
m = [get_mapping_header()]+m
87
write_file(m, path)
88
89
def
get_mapping_header():
90
return
'file\tline #'
Callers
1
write_files
Function · 0.85
Calls
2
get_mapping_header
Function · 0.85
write_file
Function · 0.85
Tested by
no test coverage detected