MCPcopy 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
84def write_mapping_file(m, path):
85 path = path+'.map'
86 m = [get_mapping_header()]+m
87 write_file(m, path)
88
89def get_mapping_header():
90 return 'file\tline #'

Callers 1

write_filesFunction · 0.85

Calls 2

get_mapping_headerFunction · 0.85
write_fileFunction · 0.85

Tested by

no test coverage detected