]> git.djapps.eu Git - pkg/ggml/sources/llama.cpp/commitdiff
llama : fix return value of llama_load_session_file_internal (#2022)
authorGeorgi Gerganov <redacted>
Sat, 1 Jul 2023 16:05:09 +0000 (19:05 +0300)
committerGeorgi Gerganov <redacted>
Sat, 1 Jul 2023 16:05:09 +0000 (19:05 +0300)
llama.cpp

index 3a7a0d5da802bea5bf16da1641da9644cece7d77..69c2ab01b01e7913dcacba407bd5f05f31484a32 100644 (file)
--- a/llama.cpp
+++ b/llama.cpp
@@ -3269,6 +3269,8 @@ static bool llama_load_session_file_internal(struct llama_context * ctx, const c
 
         llama_set_state_data(ctx, state_data.data());
     }
+
+    return true;
 }
 
 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) {