diff --git a/vllm/ray/lazy_utils.py b/vllm/ray/lazy_utils.py index 64b5f51571a35..06c91cc3943ae 100644 --- a/vllm/ray/lazy_utils.py +++ b/vllm/ray/lazy_utils.py @@ -10,6 +10,8 @@ def is_ray_initialized(): return ray.is_initialized() except ImportError: return False + except AttributeError: + return False def is_in_ray_actor(): @@ -24,3 +26,5 @@ def is_in_ray_actor(): ) except ImportError: return False + except AttributeError: + return False