@tduncan / Nvidia-Optimization-Stack-VLLM Mirror · read-only / commits / e4c3182c68
Fork 0

A high-throughput and memory-efficient inference and serving engine for LLMs

Mirrored from https://github.com/tduncan-lum/Nvidia-Optimization-Stack---VLLM.git

Synced Nov 12, 18:30 UTC

[Small] Capture AttributeError when checking ray dependency. (#29024)

Signed-off-by: Chenheli Hua <huachenheli@outlook.com>

Chenheli Hua committed Nov 20, 2025 at 22:54 UTC e4c3182c6851af08c366eff725dbee876fa9fdeb
1 file changed +4
vllm/ray/lazy_utils.py
+4
@@ -10,6 +10,8 @@ def is_ray_initialized():
10 return ray.is_initialized()
11 except ImportError:
12 return False
13 + except AttributeError:
14 + return False
15
16
17 def is_in_ray_actor():
@@ -24,3 +26,5 @@ def is_in_ray_actor():
26 )
27 except ImportError:
28 return False
29 + except AttributeError:
30 + return False