aboutsummaryrefslogtreecommitdiff
path: root/llama.h
diff options
context:
space:
mode:
authorGeorgi Gerganov <ggerganov@gmail.com>2023-05-20 10:14:31 +0300
committerGeorgi Gerganov <ggerganov@gmail.com>2023-05-20 10:14:43 +0300
commit8a203f9fa1b24e010be8f35ebbbd6786293684cb (patch)
tree64fb298b47d2c342dc0fce70740f068f2f2b457c /llama.h
parent4fd3e29297e3246a7be291932c115636fadb0f52 (diff)
llama : fix compile warnings in llama_set_state_data()
Diffstat (limited to 'llama.h')
-rw-r--r--llama.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/llama.h b/llama.h
index fd3f21e..8623e08 100644
--- a/llama.h
+++ b/llama.h
@@ -138,7 +138,7 @@ extern "C" {
// Set the state reading from the specified address
// Returns the number of bytes read
- LLAMA_API size_t llama_set_state_data(struct llama_context * ctx, const uint8_t * src);
+ LLAMA_API size_t llama_set_state_data(struct llama_context * ctx, uint8_t * src);
// Save/load session file
LLAMA_API bool llama_load_session_file(struct llama_context * ctx, const char * path_session, llama_token * tokens_out, size_t n_token_capacity, size_t * n_token_count_out);