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

Function get_modelscope_cache_dir

modelscope/utils/file_utils.py:50–58  ·  view source on GitHub ↗

Get modelscope cache dir, default location or setting with MODELSCOPE_CACHE Returns: str: the modelscope cache root.

()

Source from the content-addressed store, hash-verified

48
49
50def get_modelscope_cache_dir() -> str:
51 """Get modelscope cache dir, default location or
52 setting with MODELSCOPE_CACHE
53
54 Returns:
55 str: the modelscope cache root.
56 """
57 return os.path.expanduser(
58 os.getenv('MODELSCOPE_CACHE', get_default_modelscope_cache_dir()))
59
60
61def get_model_cache_root() -> str:

Callers 9

config_ds.pyFile · 0.90
ast_utils.pyFile · 0.90
plugins.pyFile · 0.90
__init__Method · 0.90
scan_cache_dirFunction · 0.90
test_scan_given_dirMethod · 0.90
test_scan_given_dirMethod · 0.90
get_model_cache_rootFunction · 0.85
get_dataset_cache_rootFunction · 0.85

Calls 1

Tested by 2

test_scan_given_dirMethod · 0.72
test_scan_given_dirMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…