Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] How to store/pass past-key-values? #681

Closed
Justus-Jonas opened this issue Aug 6, 2023 · 6 comments
Closed

[Question] How to store/pass past-key-values? #681

Justus-Jonas opened this issue Aug 6, 2023 · 6 comments

Comments

@Justus-Jonas
Copy link

Hi all,

I was wondering whether it is possible to store and pass on past key values from long prefix prompts. Has anyone tried this with vLLM before?

Many thanks!

@YijiaZhao
Copy link

Common prefix prompts in a batch?

@Justus-Jonas
Copy link
Author

Hi @YijiaZhao,

thanks for your reply! Yes, indeed. I saw that you also worked on this (in Issue 680). Did you find a solution?

@YijiaZhao
Copy link

I've finished yet. I think it's easy to store the past KV cache, but hard to modify the attention for postfix calculation.

@zacharyblank
Copy link

@YijiaZhao I am looking for this too. Were you able to crack it? Thanks!

@pj-ml
Copy link

pj-ml commented Jan 18, 2024

Also looking for this.

@hmellor
Copy link
Collaborator

hmellor commented Apr 4, 2024

#2614

@hmellor hmellor closed this as completed Apr 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants