From 46536e5ccf52946fe05b8858c09fd744c5396593 Mon Sep 17 00:00:00 2001 From: biondizzle Date: Fri, 15 May 2026 01:54:53 +0000 Subject: [PATCH] fix: hc param renames missing leading dot .attn_hc.base -> hc_attn_base produced layers.0hc_attn_base (no dot). Need .hc_attn_base to preserve the dot separator. --- vllm/patches/deepseek_v4.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/vllm/patches/deepseek_v4.py b/vllm/patches/deepseek_v4.py index 8e2f187b..a527c357 100644 --- a/vllm/patches/deepseek_v4.py +++ b/vllm/patches/deepseek_v4.py @@ -1294,12 +1294,12 @@ class DeepseekV4Model(nn.Module): # Hadamard coding params: checkpoint has .attn_hc.base/fn/scale # and .ffn_hc.base/fn/scale; model has hc_attn_base/fn/scale # and hc_ffn_base/fn/scale (underscore not dot before base/fn/scale) - ".attn_hc.base": "hc_attn_base", - ".attn_hc.fn": "hc_attn_fn", - ".attn_hc.scale": "hc_attn_scale", - ".ffn_hc.base": "hc_ffn_base", - ".ffn_hc.fn": "hc_ffn_fn", - ".ffn_hc.scale": "hc_ffn_scale", + ".attn_hc.base": ".hc_attn_base", + ".attn_hc.fn": ".hc_attn_fn", + ".attn_hc.scale": ".hc_attn_scale", + ".ffn_hc.base": ".hc_ffn_base", + ".ffn_hc.fn": ".hc_ffn_fn", + ".ffn_hc.scale": ".hc_ffn_scale", "hc_head.hc_base": "hc_head_base", "hc_head.hc_fn": "hc_head_fn", "hc_head.hc_scale": "hc_head_scale",