SIGN IN SIGN UP

llama : propagate the results of `graph_compute` (#9525)

* llama: propagating the results of `graph_compute` to the user interface

* llama: reverting kv_cache in case of failed compute

* llama: `llama_kv_cache_state` was removed, only the result of `llama_graph_compute` is returned

* llama: restore a kv_cache in case of failed computation

* llama: correct reverting of the entire batch.
also updates `llama_kv_cache_find_slot`, will correctly count the number of `used` cells for recurrent models

* llama: updated comments

* llama : add comments about KV cache state after error

---------

Co-authored-by: Georgi Gerganov <ggerganov@gmail.com>
M
Michael Podvitskiy committed
fb4a0ec0833c71cff5a1a367ba375447ce6106eb
Parent: 5ea926d
Committed by GitHub <noreply@github.com> on 11/13/2024, 6:00:35 PM