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 scripts to calculate the overall acceptance rate? #62

Open
sugar1946 opened this issue Apr 18, 2024 · 2 comments
Open

Is there scripts to calculate the overall acceptance rate? #62

sugar1946 opened this issue Apr 18, 2024 · 2 comments

Comments

@sugar1946
Copy link

I am trying to calculate the acceptance rate for evaluation. I ran:

python -m eagle.evaluation.gen_ea_alpha_vicuna --ea-model-path ~/models/EAGLE-Vicuna-7B-v1.3/ --base-model-path ~/models/vicuna-7b-v1.3/ --model-id ess-vicuna-7b-fp16-alpha --temperature 1

However, this seems to only generates an output decoded file with alpha per question? How do I get the overall alpha rate as in the paper?

@Liyuhui-12
Copy link
Collaborator

After obtaining the result file, you can run the eagle/evaluation/alpha.py file to get the acceptance rate.

@yukavio
Copy link

yukavio commented Aug 27, 2024

After obtaining the result file, you can run the eagle/evaluation/alpha.py file to get the acceptance rate.

eagle/evaluation/gen_ea_alpha_llama2chat.py could't been excuted. It seems to be because the ea_model forward interface has changed.

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