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

Handling Reduced Visual Tokens During Inference in LLMs #7

Open
naajeehxe opened this issue Oct 25, 2024 · 1 comment
Open

Handling Reduced Visual Tokens During Inference in LLMs #7

naajeehxe opened this issue Oct 25, 2024 · 1 comment

Comments

@naajeehxe
Copy link

I’m not sure if the LLM can handle a different number of visual tokens than what was used during training. If N visual tokens are discarded, is there a step to adjust the dimension before feeding them into the LLM?

@UnableToUseGit
Copy link

In their code, redundant visual tokens are pruned inside LLM (decode layer[2, 6, 15, 19]). There is no step to adjust the dimension. After pruned, these rest tokens(hidden_states) will be passed in the next layer.

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