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

How to reproduce average acceptance length? #153

Open
garipovroma opened this issue Oct 24, 2024 · 1 comment
Open

How to reproduce average acceptance length? #153

garipovroma opened this issue Oct 24, 2024 · 1 comment

Comments

@garipovroma
Copy link

Hello,

Thank you for your work and contribution to the community.

I've been reproducing the numbers from the EAGLE-2 paper, particularly Table 1 for the L2-7B model. However, I haven't been able to find the code that calculates $\tau$ (average acceptance length). While I found that it's possible to compute acceptance length by modifying evaluation/gen_ea_answer_llama2chat.py and model/ea_model.py (as mentioned in this issue #146), I am concerned that this approach may introduce inaccuracies due to discrepancies with your approach to measure $\tau$. Could you please confirm whether this is how you measured $\tau$ and provide your code for measuring average acceptance length, along with a smaller example of how to run it?

Thank you!

@Liyuhui-12
Copy link
Collaborator

The average acceptance length can be calculated by dividing the total number of generated tokens by the number of steps, which can be obtained from the output files.

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