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

word-level knowledge distillation #1001

Open
ZenBel opened this issue Jul 6, 2023 · 0 comments
Open

word-level knowledge distillation #1001

ZenBel opened this issue Jul 6, 2023 · 0 comments

Comments

@ZenBel
Copy link

ZenBel commented Jul 6, 2023

Hello,

I would like to try out word-level knowledge distillation (https://arxiv.org/abs/1606.07947) and for this I need the probabilities of all tokens (or at least the top-k ones) at each decoding step. I see that it's already possible to print the probability of the generated token with the with_token_level flag but it is not clear to me how to modify the code to get the probabilities of the top-k tokens at each step.

Any help is appreciated,

Thanks,

Z

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

1 participant