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

[FEA] Feature to extract attention values from transformer heads #745

Open
vivpra89 opened this issue Sep 20, 2023 · 0 comments
Open

[FEA] Feature to extract attention values from transformer heads #745

vivpra89 opened this issue Sep 20, 2023 · 0 comments

Comments

@vivpra89
Copy link

🚀 Feature request

Ability to extract attention weights from various heads of transformer

Motivation

Plotting attention provides insights into the inner-workings and user behaviors that business teams can relate with. This is easily available with pytorch / Tensorflow.

Is there a way to convert the trained model to PT / TF models to capture the attention values?

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant