Skip to content

How to cache system prompt? #8947

Answered by ggerganov
arpitjjw asked this question in Q&A
Aug 9, 2024 · 4 comments · 11 replies
Discussion options

You must be logged in to vote

Yes, it will cache both "system + user". But the logic for reusing the cached prompt looks for the largest prefix between the cached data and the new input, so even if the user prompt changes, it will still reuse the system prompt

Replies: 4 comments 11 replies

Comment options

You must be logged in to vote
2 replies
@arpitjjw
Comment options

@ggerganov
Comment options

Answer selected by arpitjjw
Comment options

You must be logged in to vote
3 replies
@ggerganov
Comment options

@richtong
Comment options

@richtong
Comment options

Comment options

You must be logged in to vote
5 replies
@TuzelKO
Comment options

@ggerganov
Comment options

@TuzelKO
Comment options

@ggerganov
Comment options

@TuzelKO
Comment options

Comment options

You must be logged in to vote
1 reply
@ggerganov
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
6 participants