MCPcopy Create free account
hub / github.com/allenai/molmo2 / write_file

Method write_file

olmo/train/checkpointer.py:201–202  ·  view source on GitHub ↗
(self, dir: PathOrStr, fname: str, contents: Union[str, bytes, Callable])

Source from the content-addressed store, hash-verified

199 self.write_file(dir, self.CONFIG_FILENAME, OmegaConf.to_yaml(config, resolve=True))
200
201 def write_file(self, dir: PathOrStr, fname: str, contents: Union[str, bytes, Callable]) -> PathOrStr:
202 return write_file(dir, fname, contents, self.save_overwrite)
203
204 def load(
205 self,

Callers 1

saveMethod · 0.95

Calls 1

write_fileFunction · 0.90

Tested by

no test coverage detected