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

Small bug in Showo.mmu_generate? #49

Open
CladernyJorn opened this issue Oct 29, 2024 · 2 comments
Open

Small bug in Showo.mmu_generate? #49

CladernyJorn opened this issue Oct 29, 2024 · 2 comments

Comments

@CladernyJorn
Copy link

In line 221 of file .\models\modeling_showo.py, probably the shape of attention (L+1,L+1) instead of (1,1,L+1,L+1) mask is changed while iteration of generating new words. It can be fixed by adding codes like 'attention_mask = attention_mask_b.unsqueeze(0).unsqueeze(0)'.

@Sierkinhane
Copy link
Collaborator

Sierkinhane commented Oct 30, 2024

Hi, I'm not sure if you have encountered errors when using the current version.

@CladernyJorn
Copy link
Author

CladernyJorn commented Oct 31, 2024

I encountered an error when using the current version for mmu: Attention mask should be of size (1, 1, 621, 621), but is torch.Size([621, 621]).

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