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

ggml-ci
This commit is contained in:
Georgi Gerganov 2025-07-18 20:08:33 +03:00 committed by GitHub
parent 2adf8d83ac
commit 9fb1042ce6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -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));