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

Documentation #1

Open
Bachstelze opened this issue May 15, 2024 · 1 comment
Open

Documentation #1

Bachstelze opened this issue May 15, 2024 · 1 comment

Comments

@Bachstelze
Copy link

Is there somewhere a documentation about this project? How are the attention weights aggregated?

@mattneary
Copy link
Owner

Here's the code that aggregates. Nothing fancy, just averaging across layers and attention heads.

If you're curious about more advanced aggregation, I started exploring learned aggregators a few months ago in MIA. If you can produce training data that links input text to output text in some meaningful way, you can train a classifier on top of the attention values to predict that relationship.

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

2 participants