base.py 242 Bytes
Newer Older
1
2
3
4
5
6
7
8
9
10
11
from pathlib import Path

import vllm.envs as envs


def get_cache_dir():
    """Get the path to the cache for storing downloaded assets."""
    path = Path(envs.VLLM_ASSETS_CACHE)
    path.mkdir(parents=True, exist_ok=True)

    return path