From 54631f826233dbd1c046f9a70e98bc2e25edff1a Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Thu, 22 May 2025 17:00:13 +0100 Subject: [PATCH] [Misc] Call `ndarray.tobytes()` directly instead of `ndarray.data.tobytes()` (#18347) Signed-off-by: Lukas Geiger --- vllm/multimodal/hasher.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/multimodal/hasher.py b/vllm/multimodal/hasher.py index 53e289370a9f..f6ab72f4e9b8 100644 --- a/vllm/multimodal/hasher.py +++ b/vllm/multimodal/hasher.py @@ -43,7 +43,7 @@ class MultiModalHasher: "ndarray", { "dtype": obj.dtype.str, "shape": obj.shape, - "data": obj.data.tobytes(), + "data": obj.tobytes(), }) logger.warning(