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

Error while updating prompt #169

Open
Fqlox opened this issue Aug 12, 2024 · 0 comments
Open

Error while updating prompt #169

Fqlox opened this issue Aug 12, 2024 · 0 comments

Comments

@Fqlox
Copy link

Fqlox commented Aug 12, 2024

When I use stream.update_prompt(prompt)

I get :

ValueError: Incompatible shapes for attention inputs:
  query.shape: torch.Size([64, 4096, 40])
  key.shape  : torch.Size([32, 77, 40])
  value.shape: torch.Size([32, 77, 40])
HINT: We don't support broadcasting, please use `expand` yourself before calling `memory_efficient_attention` if you need to

tried without xFormers and got:

RuntimeError: The size of tensor a (8192) must match the size of tensor b (4096) at non-singleton dimension 1

How can I prevent this ?

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