diff --git a/modelscope/hub/snapshot_download.py b/modelscope/hub/snapshot_download.py index f4ea5f58..128a251d 100644 --- a/modelscope/hub/snapshot_download.py +++ b/modelscope/hub/snapshot_download.py @@ -70,6 +70,7 @@ def snapshot_download(model_id: str, if isinstance(cache_dir, Path): cache_dir = str(cache_dir) temporary_cache_dir = os.path.join(cache_dir, 'temp') + os.makedirs(temporary_cache_dir, exist_ok=True) group_or_owner, name = model_id_to_group_owner_name(model_id) name = name.replace('.', '___')