Explorar el Código

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

ggml-ci
Georgi Gerganov hace 6 meses
padre
commit
9fb1042ce6
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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));