From 19af4e6dd49bdbe5c7c521092c33a94279c9ccea Mon Sep 17 00:00:00 2001 From: Harry Mellor <19981378+hmellor@users.noreply.github.com> Date: Thu, 28 May 2026 13:33:31 +0100 Subject: [PATCH] Fix `OlmoHybridForCausalLM` not initialising (#43846) Signed-off-by: Harry Mellor <19981378+hmellor@users.noreply.github.com> Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com> --- vllm/transformers_utils/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vllm/transformers_utils/config.py b/vllm/transformers_utils/config.py index e7ef83d38d..49f0b82530 100644 --- a/vllm/transformers_utils/config.py +++ b/vllm/transformers_utils/config.py @@ -430,9 +430,9 @@ def patch_legacy_rope_type(rope_parameters: dict[str, Any] | None) -> None: if "rope_type" not in rope_parameters and "type" in rope_parameters: rope_parameters["rope_type"] = rope_parameters["type"] logger.info("Replacing legacy 'type' key with 'rope_type'") - # Case 3: No rope_type field at all - cannot determine RoPE type, raise error + # Case 3: No rope_type field present - nothing to patch if "rope_type" not in rope_parameters: - raise ValueError("rope_parameters should have a 'rope_type' key") + return # Patch legacy rope_type values with warning if rope_parameters["rope_type"] == "su": rope_parameters["rope_type"] = "longrope"