]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
model: fix LFM2 missing tensors (#18105)
authorXuan-Son Nguyen <redacted>
Tue, 16 Dec 2025 18:07:43 +0000 (19:07 +0100)
committerGitHub <redacted>
Tue, 16 Dec 2025 18:07:43 +0000 (19:07 +0100)
src/llama-model.cpp

index ae8207ee1a49b05a27bd0443c0750249fba62155..c9a3c5dfa2b51cc5def3240c838f5f2bb08b1b94 100644 (file)
@@ -6236,8 +6236,8 @@ bool llama_model::load_tensors(llama_model_loader & ml) {
                 {
                     tok_embd = create_tensor(tn(LLM_TENSOR_TOKEN_EMBD, "weight"), {n_embd, n_vocab}, 0);
 
-                    output_norm = create_tensor(tn(LLM_TENSOR_OUTPUT_NORM, "weight"), {n_embd}, 0);
-                    output      = create_tensor(tn(LLM_TENSOR_OUTPUT,      "weight"), {n_embd, n_vocab}, TENSOR_NOT_REQUIRED);
+                    output_norm = create_tensor(tn(LLM_TENSOR_OUTPUT_NORM_LFM2, "weight"), {n_embd}, 0);
+                    output      = create_tensor(tn(LLM_TENSOR_OUTPUT,           "weight"), {n_embd, n_vocab}, TENSOR_NOT_REQUIRED);
 
                     if (output == NULL) {
                         output = create_tensor(tn(LLM_TENSOR_TOKEN_EMBD, "weight"), {n_embd, n_vocab}, TENSOR_DUPLICATED);