-
Notifications
You must be signed in to change notification settings - Fork 20
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
Counting how many forward passes/steps were done when using PAIN #14
Comments
On a different note, what are the parameters for the tree object? How many branches are made and how deep does the tree go? |
You can count the steps with two methods, one is turning on the debug_lookahead, it will output debug info of each step and you can count the steps manually, the other is turning on return_dict_in_generate in model.generation method, the We use different parameters for different tasks. As methoned in the |
Thank you so much for your response. This helped me greatly. If I understand correctly, if I want to count how many draft token in total were used when using PAIN, I could just compute sum(kwargs['dls']) |
Should be sum(kwargs['dls'])-len(kwargs['dls']), because the decoding_length(i.e., |
I wanted to ask if there's a way to count how many forward passes/steps are done when using PAIN, to contrast it with standard decoding.
The text was updated successfully, but these errors were encountered: