From dd9342e6bc92a52a4674a3e472318c241cb18fe1 Mon Sep 17 00:00:00 2001 From: Rohan Potdar <66227218+Rohan138@users.noreply.github.com> Date: Tue, 7 Apr 2026 04:29:23 -0500 Subject: [PATCH] only patch runtime_env for torch >= 2.10 (#38763) Signed-off-by: Rohan138 --- vllm/env_override.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/env_override.py b/vllm/env_override.py index 432300f4c..aa09c4a9d 100644 --- a/vllm/env_override.py +++ b/vllm/env_override.py @@ -500,7 +500,7 @@ if is_torch_equal("2.9.0"): # This mirrors the fix in https://github.com/pytorch/pytorch/pull/177558 # and can be removed once torch >=2.12 is the minimum supported version. -if not is_torch_equal_or_newer("2.12.0"): +if is_torch_equal_or_newer("2.10.0") and not is_torch_equal_or_newer("2.12.0"): import builtins as _builtins import pickle