]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : fix old glm4 models (#11670)
authortv1wnd <redacted>
Thu, 6 Feb 2025 21:48:51 +0000 (22:48 +0100)
committerGitHub <redacted>
Thu, 6 Feb 2025 21:48:51 +0000 (22:48 +0100)
src/llama.cpp

index aae3c69b5a653233a2d9bbd3ea21f2963b8df7bb..3d5a928a8e00e525cfbacb1f576d7201c8755f06 100644 (file)
@@ -7217,7 +7217,7 @@ struct llm_build_context {
                 struct ggml_tensor * Qcur = nullptr;
                 struct ggml_tensor * Kcur = nullptr;
                 struct ggml_tensor * Vcur = nullptr;
-                if (model.type == LLM_TYPE_1_5B || model.type == LLM_TYPE_4B || model.type == LLM_TYPE_9B) {
+                if (model.layers[il].wqkv == nullptr) {
                     Qcur = llm_build_lora_mm(lctx, ctx0, model.layers[il].wq, cur);
                     if (model.layers[il].bq) {
                         Qcur = ggml_add(ctx0, Qcur, model.layers[il].bq);