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

Function get_dataset_cache_dir

modelscope/utils/file_utils.py:81–93  ·  view source on GitHub ↗

Get the dataset_id's path. dataset_cache_root/dataset_id. Args: dataset_id (str): The dataset id. Returns: str: The dataset_id's cache root path.

(dataset_id: str)

Source from the content-addressed store, hash-verified

79
80
81def get_dataset_cache_dir(dataset_id: str) -> str:
82 """Get the dataset_id's path.
83 dataset_cache_root/dataset_id.
84
85 Args:
86 dataset_id (str): The dataset id.
87
88 Returns:
89 str: The dataset_id's cache root path.
90 """
91 dataset_root = get_dataset_cache_root()
92 return dataset_root if dataset_id is None else os.path.join(
93 dataset_root, dataset_id + '/')
94
95
96def get_model_cache_dir(model_id: str) -> str:

Callers

nothing calls this directly

Calls 1

get_dataset_cache_rootFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…