Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions gpt4all-backend/bert.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ void bert_eval(

// embd norm
{
inpL = ggml_norm(ctx0, inpL, 1e-5f);
inpL = ggml_norm(ctx0, inpL, 1e-12f);

inpL = ggml_add(ctx0,
ggml_mul(ctx0,
Expand Down Expand Up @@ -403,7 +403,7 @@ void bert_eval(

// attention norm
{
cur = ggml_norm(ctx0, cur, 1e-5f);
cur = ggml_norm(ctx0, cur, 1e-12f);

cur = ggml_add(ctx0,
ggml_mul(ctx0,
Expand All @@ -429,7 +429,7 @@ void bert_eval(

// output norm
{
cur = ggml_norm(ctx0, cur, 1e-5f);
cur = ggml_norm(ctx0, cur, 1e-12f);

cur = ggml_add(ctx0,
ggml_mul(ctx0,
Expand Down