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

Function get_model_cache_root

modelscope/utils/file_utils.py:61–67  ·  view source on GitHub ↗

Get model cache root path. Returns: str: the modelscope model cache root.

()

Source from the content-addressed store, hash-verified

59
60
61def get_model_cache_root() -> str:
62 """Get model cache root path.
63
64 Returns:
65 str: the modelscope model cache root.
66 """
67 return os.path.join(get_modelscope_cache_dir(), 'models')
68
69
70def get_dataset_cache_root() -> str:

Callers 3

update_local_modelFunction · 0.90
get_model_cache_dirFunction · 0.85

Calls 1

get_modelscope_cache_dirFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…