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

Is there a script to calculate the average acceptance length? #160

Open
Lyn-Lucy opened this issue Nov 18, 2024 · 2 comments
Open

Is there a script to calculate the average acceptance length? #160

Lyn-Lucy opened this issue Nov 18, 2024 · 2 comments

Comments

@Lyn-Lucy
Copy link

Hi, thanks for you great work! When I used the EAGLE-llama2-chat-7B you provided for testing, the average acceptance length I measured was lower than the value in the paper. The way I obtained it was to get all the accept_lengths and divide them by the total number of inferences, and finally add 1, which is the token of the last sample of the large model.

@hongyanz
Copy link
Contributor

You may refer to the link below.

#153 (comment)

@haiduo
Copy link

haiduo commented Dec 17, 2024

Hi, thanks for you great work! When I used the EAGLE-llama2-chat-7B you provided for testing, the average acceptance length I measured was lower than the value in the paper. The way I obtained it was to get all the accept_lengths and divide them by the total number of inferences, and finally add 1, which is the token of the last sample of the large model.

@Lyn-Lucy
My approach is the same as yours, and indeed it is on the low side.

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