Revert compile-cache device index regression on CPU (#53304)
This commit is contained in:
@@ -559,8 +559,7 @@ def _support_torch_compile(
|
||||
|
||||
rank = self.vllm_config.parallel_config.rank
|
||||
dp_rank = self.vllm_config.parallel_config.data_parallel_index
|
||||
dev = torch.accelerator.current_device_index()
|
||||
cache_dir = os.path.join(cache_dir, f"rank_{rank}_{dp_rank}_dev{dev}")
|
||||
cache_dir = os.path.join(cache_dir, f"rank_{rank}_{dp_rank}")
|
||||
aot_compilation_path = os.path.join(cache_dir, "model")
|
||||
if not envs.VLLM_DISABLE_COMPILE_CACHE:
|
||||
loaded_fn = _try_load_aot_compiled_fn(self, aot_compilation_path)
|
||||
|
||||
Reference in New Issue
Block a user