summaryrefslogtreecommitdiff
path: root/main.cpp
diff options
context:
space:
mode:
authorhoangmit <hoangmit@users.noreply.github.com>2023-03-15 18:41:38 -0400
committerGitHub <noreply@github.com>2023-03-16 00:41:38 +0200
commit6eac39ba953acaeec396cea2969dbf413907e2ec (patch)
tree1c263cf2672564d1fba72b2d7e47037cea8345c3 /main.cpp
parent27944c4206a49bbe003021a2610bacaa3044e619 (diff)
Add RMS norm and use it (#187)
* add ggml_rms_norm * update op num
Diffstat (limited to 'main.cpp')
-rw-r--r--main.cpp6
1 files changed, 3 insertions, 3 deletions
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,