MCPcopy Create free account
hub / github.com/modelscope/modelscope / save_model_meta

Method save_model_meta

modelscope/hub/utils/caching.py:236–240  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

234 return self.model_meta[FileSystemCache.MODEL_META_MODEL_ID]
235
236 def save_model_meta(self):
237 meta_file_path = os.path.join(self.cache_root_location,
238 FileSystemCache.MODEL_META_FILE_NAME)
239 with open(meta_file_path, 'wb') as f:
240 pickle.dump(self.model_meta, f)
241
242 def get_file_by_path(self, file_path):
243 """Retrieve the cache if there is file match the path.

Callers 1

__init__Method · 0.95

Calls 1

dumpMethod · 0.45

Tested by

no test coverage detected