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

einops.EinopsError: Error while processing rearrange-reduction pattern "b pytorch_model.bin.index.json t h w -> (b pytorch_model.bin.index.json) pytorch_model.bin.index.json (t h w)". #29

Open
1145284121 opened this issue Oct 29, 2024 · 0 comments

Comments

@1145284121
Copy link

Allegro/allegro/models/transformers/transformer_3d_allegro.py", line 307, in forward
attention_mask_vid = rearrange(attention_mask_vid, 'b pytorch_model.bin.index.json t h w -> (b pytorch_model.bin.index.json) pytorch_model.bin.index.json (t h w)')
File "/root/miniconda3/envs/allegro/lib/python3.10/site-packages/einops/einops.py", line 591, in rearrange
return reduce(tensor, pattern, reduction="rearrange", **axes_lengths)
File "/root/miniconda3/envs/allegro/lib/python3.10/site-packages/einops/einops.py", line 533, in reduce
raise EinopsError(message + "\n {}".format(e))
einops.EinopsError: Error while processing rearrange-reduction pattern "b pytorch_model.bin.index.json t h w -> (b pytorch_model.bin.index.json) pytorch_model.bin.index.json (t h w)".
Input tensor shape: torch.Size([2, 1, 22, 45, 80]). Additional info: {}.

I tried transformer==4.40.1 and 4.37.1, all encountered this error

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