From: Georgi Gerganov Date: Mon, 19 Jun 2023 17:43:30 +0000 (+0300) Subject: ggml : fix bug in LBFGS optimizer (found by ggml tests) X-Git-Tag: gguf-v0.4.0~588 X-Git-Url: https://git.djapps.eu/?a=commitdiff_plain;h=18b35625c3c19c64b7818a12460ba5ddb006dfdc;p=pkg%2Fggml%2Fsources%2Fllama.cpp ggml : fix bug in LBFGS optimizer (found by ggml tests) --- diff --git a/ggml.c b/ggml.c index 14e08f9d..4319683f 100644 --- 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); }