]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : add tensor name for "result_norm" (#9907)
authorMolly Sophia <redacted>
Wed, 16 Oct 2024 10:10:21 +0000 (18:10 +0800)
committerGitHub <redacted>
Wed, 16 Oct 2024 10:10:21 +0000 (13:10 +0300)
Signed-off-by: Molly Sophia <redacted>
src/llama.cpp

index 8d44c73c8c95c1dce612e25f350043dac6ecc19a..c51b49c563156c8ed9c4b414beec52da4f381479 100644 (file)
@@ -16095,9 +16095,11 @@ struct llm_build_context {
         cur = ggml_get_rows(ctx0, cur, inp_out_ids);
 
         cur = llm_build_norm(ctx0, cur, hparams, model.output_norm, model.output_norm_b, LLM_NORM, cb, -1);
-        cur = llm_build_lora_mm(lctx, ctx0, model.output, cur);
+        cb(cur, "result_norm", -1);
 
+        cur = llm_build_lora_mm(lctx, ctx0, model.output, cur);
         cb(cur, "result_output", -1);
+
         ggml_build_forward_expand(gf, cur);
 
         return gf;