Skip to content

Commit 557f866

Browse files
jeejeeleeMu Huai
authored andcommitted
[Bugfix] Fix torch.compile raise FileNotFoundError (vllm-project#15278)
Signed-off-by: Jee Jee Li <[email protected]> Signed-off-by: Mu Huai <[email protected]>
1 parent 57d7d05 commit 557f866

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

vllm/compilation/backends.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,7 @@ def __call__(self, graph: fx.GraphModule, example_inputs) -> Callable:
399399
rank = vllm_config.parallel_config.rank
400400
dp_rank = vllm_config.parallel_config.data_parallel_rank
401401
local_cache_dir = os.path.join(cache_dir, f"rank_{rank}_{dp_rank}")
402+
os.makedirs(local_cache_dir, exist_ok=True)
402403
self.compilation_config.local_cache_dir = local_cache_dir
403404

404405
disable_cache = envs.VLLM_DISABLE_COMPILE_CACHE

0 commit comments

Comments
 (0)