[Revert][Bugfix] Restore MiniCPM-V 4.6 ViT QKV weight loader (#49193)
Signed-off-by: wjinxu <1299461899@qq.com> Co-authored-by: wjinxu <1299461899@qq.com>
This commit is contained in:
@@ -651,9 +651,9 @@ class MiniCPMV4_6ProcessingInfo(MiniCPMVProcessingInfo):
|
|||||||
class MiniCPMV4_6ViTWindowAttentionSelfAttn(nn.Module):
|
class MiniCPMV4_6ViTWindowAttentionSelfAttn(nn.Module):
|
||||||
hf_to_vllm_mapper = WeightsMapper(
|
hf_to_vllm_mapper = WeightsMapper(
|
||||||
orig_to_new_stacked={
|
orig_to_new_stacked={
|
||||||
"q_proj": ("qkv_proj", "q"),
|
".q_proj": (".qkv_proj", "q"),
|
||||||
"k_proj": ("qkv_proj", "k"),
|
".k_proj": (".qkv_proj", "k"),
|
||||||
"v_proj": ("qkv_proj", "v"),
|
".v_proj": (".qkv_proj", "v"),
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user