From 6eac39ba953acaeec396cea2969dbf413907e2ec Mon Sep 17 00:00:00 2001 From: hoangmit Date: Wed, 15 Mar 2023 18:41:38 -0400 Subject: Add RMS norm and use it (#187) * add ggml_rms_norm * update op num --- main.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'main.cpp') diff --git a/main.cpp b/main.cpp index a812d0fa..ca0fca8b 100644 --- a/main.cpp +++ b/main.cpp @@ -588,7 +588,7 @@ bool llama_eval( // norm { - cur = ggml_norm(ctx0, inpL); + cur = ggml_rms_norm(ctx0, inpL); // cur = attention_norm*cur cur = ggml_mul(ctx0, @@ -678,7 +678,7 @@ bool llama_eval( { // norm { - cur = ggml_norm(ctx0, inpFF); + cur = ggml_rms_norm(ctx0, inpFF); // cur = ffn_norm*cur cur = ggml_mul(ctx0, @@ -713,7 +713,7 @@ bool llama_eval( // norm { - inpL = ggml_norm(ctx0, inpL); + inpL = ggml_rms_norm(ctx0, inpL); // inpL = norm*inpL inpL = ggml_mul(ctx0, -- cgit v1.2.3