mirror of
https://github.com/nomic-ai/gpt4all.git
synced 2025-08-02 08:08:29 +00:00
bert: fix layer norm epsilon value (#1946)
Signed-off-by: Jared Van Bortel <jared@nomic.ai>
This commit is contained in:
parent
7a23b23728
commit
007d469034
@ -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,
|
||||
@ -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,
|
||||
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user