Fixed incorrectly applying RMS norm twice (#1925)

This commit is contained in:
Johannes Gäßler 2023-06-18 16:07:09 +02:00 committed by GitHub
parent 8596af4277
commit 0ede372a51
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1657,11 +1657,7 @@ static bool llama_eval_internal(
{
cur = ggml_rms_norm(ctx0, inpL);
offload_func_nr(cur);
ggml_set_name(cur, "rms_norm_inpL");
cur = ggml_rms_norm(ctx0, cur);
offload_func_nr(cur);
ggml_set_name(cur, "rms_norm_after");
ggml_set_name(cur, "rms_norm_2");
// cur = cur*norm(broadcasted)
cur = ggml_mul(ctx0, cur, model.norm);