summaryrefslogtreecommitdiff
path: root/common/train.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'common/train.cpp')
-rw-r--r--common/train.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/common/train.cpp b/common/train.cpp
index bc15b7a0..964b156b 100644
--- a/common/train.cpp
+++ b/common/train.cpp
@@ -32,6 +32,7 @@ struct train_state * init_train_state() {
state->opt = new struct ggml_opt_context;
state->opt->ctx = NULL;
state->opt->params = ggml_opt_default_params(GGML_OPT_ADAM);
+ state->opt->params.graph_size = LLAMA_TRAIN_MAX_NODES;
state->opt->loss_after = 0.0f;
return state;