MCPcopy Index your code
hub / github.com/deepspeedai/DeepSpeedExamples / write_files

Function write_files

Megatron-LM/scripts/split_json.py:73–76  ·  view source on GitHub ↗
(lines, mappings, filepaths)

Source from the content-addressed store, hash-verified

71 return paths
72
73def write_files(lines, mappings, filepaths):
74 for l, m, path in zip(lines, mappings, filepaths):
75 write_file(l, path)
76 write_mapping_file(m, path)
77
78def write_file(lines, path):
79 print('Writing:', path)

Callers 1

split_json.pyFile · 0.85

Calls 2

write_fileFunction · 0.85
write_mapping_fileFunction · 0.85

Tested by

no test coverage detected