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 for mplug-owl v1 model code #223

Open
bellos1203 opened this issue May 9, 2024 · 0 comments
Open

Question for mplug-owl v1 model code #223

bellos1203 opened this issue May 9, 2024 · 0 comments

Comments

@bellos1203
Copy link

Hey, I have a quick question about modeling_mplug_owl.py.

What does the following line do??

torch.ones(query_features.size()[:-1], dtype=torch.long).to(query_features.device)

It seems the line is meaningless, or there is some missing variable, like the attention mask.

Thanks in advance!

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