Skip to content

How to clear out llama_context state to be able to keep passing new inputs to LLaVa? #3620

Answered by ggerganov
trzy asked this question in Q&A

You must be logged in to vote

Can't guarantee it will work, but I think you just have to call llama_kv_cache_tokens_rm(ctx, -1, -1); before every new input

Replies: 5 comments 4 replies

You must be logged in to vote
1 reply
@trzy

You must be logged in to vote
1 reply
@trzy

Answer selected by trzy

You must be logged in to vote
0 replies

You must be logged in to vote
2 replies
@solix

@syntheticgio

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants