mirror of
https://github.com/ggerganov/llama.cpp.git
synced 2025-01-15 14:50:51 +01:00
update norm
This commit is contained in:
parent
b2330f57e2
commit
9d49236570
12
llama.cpp
12
llama.cpp
@ -5611,11 +5611,13 @@ struct llm_build_context {
|
|||||||
|
|
||||||
cur = inpL;
|
cur = inpL;
|
||||||
|
|
||||||
cur = llm_build_norm(ctx0, cur, hparams,
|
// norm
|
||||||
model.output_norm,
|
{
|
||||||
model.output_norm_b,
|
cur = llm_build_norm(ctx0, cur, hparams,
|
||||||
LLM_NORM, cb, -1);
|
model.output_norm, NULL,
|
||||||
cb(cur, "result_norm", -1);
|
LLM_NORM_RMS, cb, -1);
|
||||||
|
cb(cur, "result_norm", -1);
|
||||||
|
}
|
||||||
|
|
||||||
// lm_head
|
// lm_head
|
||||||
cur = ggml_mul_mat(ctx0, model.output, cur);
|
cur = ggml_mul_mat(ctx0, model.output, cur);
|
||||||
|
Loading…
Reference in New Issue
Block a user