-
-
Notifications
You must be signed in to change notification settings - Fork 7.7k
[Feature]: Add support for attention score output #11365
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
Comments
You are asking output_attentions=True or return_cross_attentions=True for getting coordinates right. These only given by vision encoder decoder models or cross encoder models. Which model? |
I don't mean to get coordinates. I am using Llama-3.1-8b, let's say I want to extract data out of the input context, then I need the attention scores to be able to visualize where the model is looking. (Pure text-based, no vision) These are ofcourse also present in decoder-only models. |
Apologise by mistakes. I have integrated score using tensor logits already. Thanks! |
I do not need the logits as well. I need the attention scores. |
Any update of this? I also need to visualize the attention scores of decoder-based models. |
This issue has been automatically marked as stale because it has not had any activity within 90 days. It will be automatically closed if no further activity occurs within 30 days. Leave a comment if you feel this issue should remain open. Thank you! |
Any update on this? |
Uh oh!
There was an error while loading. Please reload this page.
🚀 The feature, motivation and pitch
Problem
vLLM currently doesn't provide access to attention scores during inference, which are essential for model analysis and interpretability research. #11862
Feature Request
Add the ability to retrieve attention scores during model inference, similar to HuggingFace's output_attentions=True parameter.
Motivation
Need to analyze token-level relationships in model outputs
Required for building visualization tools and debugging model behavior
Critical for research into attention mechanisms
Alternatives
No response
Additional context
No response
Before submitting a new issue...
The text was updated successfully, but these errors were encountered: