Browse Source

graph : fix graph reuse reset of params (#14760)

ggml-ci
Georgi Gerganov 6 months ago
parent
commit
9fb1042ce6
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/llama-graph.cpp

+ 2 - 0
src/llama-graph.cpp

@@ -428,6 +428,8 @@ void llm_graph_result::reset() {
     t_embd        = nullptr;
     t_embd_pooled = nullptr;
 
+    params = {};
+
     inputs.clear();
 
     buf_compute_meta.resize(ggml_tensor_overhead()*max_nodes + ggml_graph_overhead_custom(max_nodes, false));