From 97964a4cc964b099748ef7ca595b59606458c80f Mon Sep 17 00:00:00 2001 From: xaedes Date: Thu, 29 Jun 2023 21:36:28 +0200 Subject: [PATCH] change default AdamW weight decay parameter defined in ggml to 0.0, making Adam default instead of AdamW btw: the default weight decay parameter for torch.optim.AdamW is 0.01 --- ggml.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ggml.c b/ggml.c index 451c765f9..229ddb2de 100644 --- a/ggml.c +++ b/ggml.c @@ -17916,7 +17916,7 @@ struct ggml_opt_params ggml_opt_default_params(enum ggml_opt_type type) { .adam = { .n_iter = 10000, .sched = 1.000f, - .decay = 0.001f, + .decay = 0.0f, .alpha = 0.001f, .beta1 = 0.9f, .beta2 = 0.999f,