From 3fd74189db13c9793325d9a36539d891873d1ae4 Mon Sep 17 00:00:00 2001 From: Driss Guessous <32754868+drisspg@users.noreply.github.com> Date: Thu, 20 Nov 2025 13:21:54 -0800 Subject: [PATCH] Fixes bench (#29058) Signed-off-by: drisspg --- vllm/compilation/caching.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/vllm/compilation/caching.py b/vllm/compilation/caching.py index 16e34c2711e9f..63b7ad7279e37 100644 --- a/vllm/compilation/caching.py +++ b/vllm/compilation/caching.py @@ -12,6 +12,7 @@ from torch.utils import _pytree as pytree import vllm.envs as envs from vllm.config import VllmConfig, get_current_vllm_config +from vllm.config.utils import hash_factors from vllm.logger import init_logger try: @@ -138,7 +139,7 @@ def compilation_config_hash_factors(vllm_config: VllmConfig) -> list[str]: factors = [] # 0. factors come from the env, for example, The values of # VLLM_PP_LAYER_PARTITION will affect the computation graph. - env_hash = envs.compute_hash() + env_hash = hash_factors(envs.compile_factors()) factors.append(env_hash) # 1. factors come from the vllm_config (it mainly summarizes how the