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

CPU error? #1

Open
nerdyrodent opened this issue Oct 1, 2022 · 0 comments
Open

CPU error? #1

nerdyrodent opened this issue Oct 1, 2022 · 0 comments

Comments

@nerdyrodent
Copy link

nerdyrodent commented Oct 1, 2022

The Shivam one works for me, but trying to test with CPU gives me this?

...
  File "/home/nerdy/github/diffusers_shivam/src/diffusers/models/attention.py", line 273, in forward
    hidden_states = xformers.ops.memory_efficient_attention(query, key, value)
  File "/home/nerdy/anaconda3/envs/diffusers/lib/python3.9/site-packages/xformers/ops.py", line 568, in memory_efficient_attention
    op = AttentionOpDispatch.from_arguments(
  File "/home/nerdy/anaconda3/envs/diffusers/lib/python3.9/site-packages/xformers/ops.py", line 531, in op
    raise NotImplementedError(f"No operator found for this attention: {self}")
NotImplementedError: No operator found for this attention: AttentionOpDispatch(dtype=torch.float32, device=device(type='cpu'), k=40, has_dropout=False, attn_bias_type=<class 'NoneType'>, kv_len=4096, q_len=4096)

Do I need to compile xformers differently, maybe? I'm guessing this version has something different?
"I used this revision of the xformers library pip install git+https://github.com/facebookresearch/xformers@1d31a3a#egg=xformers"

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