MCPcopy Index your code
hub / github.com/modelscope/modelscope / exists

Method exists

modelscope/hub/utils/caching.py:142–147  ·  view source on GitHub ↗
(self, key)

Source from the content-addressed store, hash-verified

140 self.save_cached_files()
141
142 def exists(self, key):
143 for cache_file in self.cached_files:
144 if cache_file == key:
145 return True
146
147 return False
148
149 def clear_cache(self):
150 """Remove all files and metadata from the cache

Callers 15

weight_diffFunction · 0.45
run_auto_labelFunction · 0.45
_file2dictMethod · 0.45
can_load_by_msFunction · 0.45
get_hf_automodel_classFunction · 0.45
load_checkpointFunction · 0.45
ensure_writeFunction · 0.45
load_indexFunction · 0.45
load_from_prebuiltFunction · 0.45
generate_ast_templateFunction · 0.45

Calls

no outgoing calls

Tested by 15

loadMethod · 0.36
download_and_untarFunction · 0.36
clean_tmpMethod · 0.36
test_singleMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
setUpMethod · 0.36
test_local_py_scriptMethod · 0.36
setUpMethod · 0.36