Skip to content

Commit 7f15cdc

Browse files
compiladearthw
authored andcommitted
llama : fix qs.n_attention_wv for DeepSeek-V2 (ggml-org#9156)
1 parent 6c4ba55 commit 7f15cdc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/llama.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16826,7 +16826,8 @@ static void llama_model_quantize_internal(const std::string & fname_inp, const s
1682616826

1682716827
// TODO: avoid hardcoded tensor names - use the TN_* constants
1682816828
if (name.find("attn_v.weight") != std::string::npos ||
16829-
name.find("attn_qkv.weight") != std::string::npos) {
16829+
name.find("attn_qkv.weight") != std::string::npos ||
16830+
name.find("attn_kv_b.weight")!= std::string::npos) {
1683016831
++qs.n_attention_wv;
1683116832
} else if (name == LLM_TN(model.arch)(LLM_TENSOR_OUTPUT, "weight")) {
1683216833
qs.has_output = true;

0 commit comments

Comments
 (0)