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

Reasons for the poor effect of Speculative Sampling #198

Open
JoeNan1 opened this issue Aug 26, 2024 · 1 comment
Open

Reasons for the poor effect of Speculative Sampling #198

JoeNan1 opened this issue Aug 26, 2024 · 1 comment

Comments

@JoeNan1
Copy link

JoeNan1 commented Aug 26, 2024

I tested the Speculative Sampling method with llama2-7b and llama2-70b on the a800, but their boost effect was almost zero and negative in most cases.

llama2-7b base 103.25 tokens/s
llama2-7b Speculative Sampling 104.52 tokens/s
llama2-70b base 14.55tokens/s
llama2-70b Speculative Sampling 13.41 tokens/s

@yanboliang
Copy link
Contributor

Can you print out and check if the aggregate_metrics['accept_counts'] makes sense? accept_counts means how many token prediction from the draft model has been accepted by the verifier model. If it's too low, you can't get too much performance boost from speculative sampling.

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

2 participants