From 1da0f1441d934c4fa9257fdc6807da30b52e38a3 Mon Sep 17 00:00:00 2001 From: Lukas Geiger Date: Sat, 13 Sep 2025 08:27:04 +0100 Subject: [PATCH] [Core][Multimodal] Cache `supports_kw` (#24773) Signed-off-by: Lukas Geiger --- vllm/utils/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/vllm/utils/__init__.py b/vllm/utils/__init__.py index 7984f1958ece2..f13381ecd9ff3 100644 --- a/vllm/utils/__init__.py +++ b/vllm/utils/__init__.py @@ -2082,6 +2082,7 @@ async def _run_task_with_lock(task: Callable, lock: asyncio.Lock, *args, return await task(*args, **kwargs) +@lru_cache def supports_kw( callable: Callable[..., object], kw_name: str,