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

Will vLLM supports Self-Speculative Decoding ? #2559

Closed
MeJerry215 opened this issue Jan 23, 2024 · 1 comment
Closed

Will vLLM supports Self-Speculative Decoding ? #2559

MeJerry215 opened this issue Jan 23, 2024 · 1 comment

Comments

@MeJerry215
Copy link

MeJerry215 commented Jan 23, 2024

github repo: https://github.com/dilab-zju/self-speculative-decoding

Using partial layers for guess, and achive about 1.78x speed up. No draft model, the only thing needed to be cared is kv cache.

Seems supports samping decoding. Cause the hidden size and intermediate size is same,so the kv cache is reusable, the only thing need to do is to kv cache memory reclaim when reject tokens.

What will the future of VLLM speculative sampling look like? Is there a rough plan?

@cadedaniel @LiuXiaoxuanPKU

@cadedaniel
Copy link
Collaborator

cadedaniel commented Jan 24, 2024

Hi @MeJerry215 . Once #2188 is merged, self-speculative decoding can be added easily as a replacement for the draft model. Follow along in that PR for more details.

@hmellor hmellor closed this as not planned Won't fix, can't repro, duplicate, stale 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

3 participants