From eadb4e868bae8acd2e9b764f5827c0500ec44c34 Mon Sep 17 00:00:00 2001 From: Artus Krohn-Grimberghe Date: Mon, 9 Feb 2026 20:17:44 +0100 Subject: [PATCH] [Bugfix] Avoid duplicate k-proj weight emission in helper (#34142) Signed-off-by: Artus KG --- vllm/model_executor/models/whisper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vllm/model_executor/models/whisper.py b/vllm/model_executor/models/whisper.py index 0c777e4a5..7462d9f6e 100644 --- a/vllm/model_executor/models/whisper.py +++ b/vllm/model_executor/models/whisper.py @@ -958,8 +958,8 @@ def _create_fake_bias_for_k_proj( So that the bias for k_proj in qkv_proj can be initialized with zeros. """ for name, weight in weights: + yield name, weight if name.endswith(fake_bias_key_name): bias = torch.zeros(weight.size(0)) bias_name = name.replace("weight", "bias") - yield from [(name, weight), (bias_name, bias)] - yield name, weight + yield bias_name, bias