[NPU]bugfix: fix for dsv3.2 and dsvl2 (#17007)

Co-authored-by: Hexq0210 <893781835@qq.com>
Co-authored-by: liupeng374 <782420244@qq.com>
Co-authored-by: cy <chenyang08056032@163.com>
This commit is contained in:
JiaruiChang5268
2026-01-23 11:15:15 +08:00
committed by GitHub
co-authored by Hexq0210 liupeng374 cy
parent 7ace64d1d8
commit c0b5a180fe
5 changed files with 127 additions and 44 deletions
@@ -432,6 +432,7 @@ class ModelConfig:
self.attention_arch = AttentionArch.MLA
self.kv_lora_rank = self.hf_text_config.kv_lora_rank
self.qk_rope_head_dim = self.hf_text_config.qk_rope_head_dim
self.qk_nope_head_dim = self.hf_text_config.qk_nope_head_dim
elif "KimiVLForConditionalGeneration" in self.hf_config.architectures:
self.head_dim = 256
self.attention_arch = AttentionArch.MLA