From 738ace394a6f8cf0174e90a97185d9e512c0e200 Mon Sep 17 00:00:00 2001 From: Georgi Gerganov Date: Sat, 13 May 2023 09:08:52 +0300 Subject: llama : free ggml context in set / copy state data (close #1425) --- llama.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'llama.h') diff --git a/llama.h b/llama.h index 1a65cd5..ca05645 100644 --- a/llama.h +++ b/llama.h @@ -134,7 +134,7 @@ extern "C" { // Copies the state to the specified destination address. // Destination needs to have allocated enough memory. // Returns the number of bytes copied - LLAMA_API size_t llama_copy_state_data(struct llama_context * ctx, uint8_t * dest); + LLAMA_API size_t llama_copy_state_data(struct llama_context * ctx, uint8_t * dst); // Set the state reading from the specified address // Returns the number of bytes read -- cgit v1.2.3