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

Question about the indexing of the hidden state #104

Open
saunair opened this issue Jan 11, 2024 · 0 comments
Open

Question about the indexing of the hidden state #104

saunair opened this issue Jan 11, 2024 · 0 comments

Comments

@saunair
Copy link

saunair commented Jan 11, 2024

In the forward pass and the evaluation function, you'll seem to be indexing from the first token and then adding the 255 falses.
https://github.com/dvlab-research/LISA/blob/main/model/LISA.py#L187
What's the logic behind this? Shouldn't the output-hidden states and input-ids have a 1-1 mapping?

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