EAGLE icon indicating copy to clipboard operation
EAGLE copied to clipboard

Is there a script to calculate the average acceptance length?

Open Lyn-Lucy opened this issue 1 year ago • 2 comments

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 avatar Nov 18 '24 03:11 Lyn-Lucy

You may refer to the link below.

https://github.com/SafeAILab/EAGLE/issues/153#issuecomment-2454707075

hongyanz avatar Nov 18 '24 03:11 hongyanz

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.

haiduo avatar Dec 17 '24 12:12 haiduo