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
This commit is contained in:
parent
f175ead6ef
commit
97964a4cc9
1 changed files with 1 additions and 1 deletions
2
ggml.c
2
ggml.c
|
@ -17916,7 +17916,7 @@ struct ggml_opt_params ggml_opt_default_params(enum ggml_opt_type type) {
|
||||||
.adam = {
|
.adam = {
|
||||||
.n_iter = 10000,
|
.n_iter = 10000,
|
||||||
.sched = 1.000f,
|
.sched = 1.000f,
|
||||||
.decay = 0.001f,
|
.decay = 0.0f,
|
||||||
.alpha = 0.001f,
|
.alpha = 0.001f,
|
||||||
.beta1 = 0.9f,
|
.beta1 = 0.9f,
|
||||||
.beta2 = 0.999f,
|
.beta2 = 0.999f,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue