]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
ggml : fix bug in LBFGS optimizer (found by ggml tests)
authorGeorgi Gerganov <redacted>
Mon, 19 Jun 2023 17:43:30 +0000 (20:43 +0300)
committerGeorgi Gerganov <redacted>
Mon, 19 Jun 2023 17:43:30 +0000 (20:43 +0300)
ggml.c

diff --git a/ggml.c b/ggml.c
index 14e08f9d61fd73e6e6512020d6b0922a375790cb..4319683f5186ee1e1c63e78c606a760fca00d692 100644 (file)
--- a/ggml.c
+++ b/ggml.c
@@ -18237,7 +18237,6 @@ GGML_API void ggml_opt_init(
                 ggml_set_zero(opt->lbfgs.g);
                 ggml_set_zero(opt->lbfgs.gp);
                 ggml_set_zero(opt->lbfgs.d);
-                ggml_set_zero(opt->lbfgs.pf);
                 if (opt->lbfgs.pf) {
                     ggml_set_zero(opt->lbfgs.pf);
                 }