File tree 1 file changed +6
-3
lines changed 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -943,9 +943,12 @@ extern "C" {
943
943
// Requires KV cache.
944
944
// For encode-decoder contexts, processes the batch using the decoder.
945
945
// Positive return values does not mean a fatal error, but rather a warning.
946
- // 0 - success
947
- // 1 - could not find a KV slot for the batch (try reducing the size of the batch or increase the context)
948
- // < 0 - error. the KV cache state is restored to the state before this call
946
+ // Upon non-zero return values, the KV cache state is restored to the state before this call
947
+ // 0 - success
948
+ // 1 - could not find a KV slot for the batch (try reducing the size of the batch or increase the context)
949
+ // 2 - aborted
950
+ // -1 - invalid input batch
951
+ // < -1 - error
949
952
LLAMA_API int32_t llama_decode (
950
953
struct llama_context * ctx,
951
954
struct llama_batch batch);
You can’t perform that action at this time.
0 commit comments