From 6948a43fbbf427e69ca0d325cd7ab1daee8d131b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20Ganczarenko?= Date: Tue, 18 Aug 2026 20:43:51 +0200 Subject: [PATCH] [Bugfix] Detect all attention-spelling variants in ModelConfig.is_hybrid (#52161) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Michal Ganczarenko Signed-off-by: MichaƂ Ganczarenko Co-authored-by: Wentao Ye <44945378+yewentao256@users.noreply.github.com> --- vllm/config/model.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vllm/config/model.py b/vllm/config/model.py index 54d622743a..a5f98d8c5c 100644 --- a/vllm/config/model.py +++ b/vllm/config/model.py @@ -1850,7 +1850,7 @@ class ModelConfig: # actually contain any non-attention layers. layer_types = getattr(self.hf_config, "layer_types", None) return layer_types is None or not all( - layer == "attention" for layer in layer_types + layer in ("attention", "full_attention") for layer in layer_types ) @property