MCPcopy Create free account
hub / github.com/ROCm/AMDMIGraphX / save_model

Method save_model

examples/diffusion/python_flux/models.py:122–124  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

120 return {p: self.torch_buffers[p] for p in self.output_names}
121
122 def save_model(self, path):
123 os.makedirs(os.path.dirname(path), exist_ok=True)
124 mgx.save(self.model, path, format="msgpack")
125
126 def tensor_to_arg(self, tensor):
127 mgx_shape = mgx.shape(type=self.torch_to_mgx_dtype_dict[tensor.dtype],

Callers 5

get_clip_modelFunction · 0.95
get_t5_modelFunction · 0.95
get_vae_modelFunction · 0.95
run_testFunction · 0.80

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected