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

Method get_model_id

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

Source from the content-addressed store, hash-verified

231 f.write(revision_info)
232
233 def get_model_id(self):
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,

Callers 2

_scan_cached_repoFunction · 0.95
get_model_id_from_cacheFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected