[CI/Build] vLLM cache directory for images (#6444)
This commit is contained in:
11
vllm/assets/base.py
Normal file
11
vllm/assets/base.py
Normal file
@@ -0,0 +1,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
|
||||
Reference in New Issue
Block a user