MCPcopy
hub / github.com/deepspeedai/DeepSpeedExamples / write_file

Function write_file

Megatron-LM/scripts/split_json.py:78–82  ·  view source on GitHub ↗
(lines, path)

Source from the content-addressed store, hash-verified

76 write_mapping_file(m, path)
77
78def write_file(lines, path):
79 print('Writing:', path)
80 with open(path, 'w') as f:
81 for l in lines:
82 f.write(l+'\n')
83
84def write_mapping_file(m, path):
85 path = path+'.map'

Callers 2

write_filesFunction · 0.85
write_mapping_fileFunction · 0.85

Calls 1

writeMethod · 0.45

Tested by

no test coverage detected