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

NotImplementedError: No operator found for memory_efficient_attention_forward #76

Open
newkenwaff opened this issue Oct 21, 2023 · 3 comments

Comments

@newkenwaff
Copy link

l'm having this issue every time l generate an image this message comes up "NotImplementedError: No operator found for memory_efficient_attention_forward"

@drdaos
Copy link

drdaos commented Oct 23, 2023

had the same problem, probably due to the updates in colab. try this quick fix until it is resolved in a better way:

!curl -Lo memfix.zip https://github.com/nolanaatama/microsoftexcel/raw/main/memfix.zip
!unzip /content/memfix.zip
!apt -y update -qq
%env LD_PRELOAD=/content/libtcmalloc_minimal.so.4

# INSERT FOLLOWIG CODE SNIPPET HERE
# Resolving Python package dependencies
!pip uninstall -y torch torchaudio torchvision xformers
!pip install torch==2.1.0+cu118 -f https://download.pytorch.org/whl/cu118/torch_stable.html
!pip install torchaudio torchvision xformers==0.0.19

!curl -Lo microsoftexcel.zip https://huggingface.co/nolanaatama/colab/resolve/main/microsoftexcel151.zip
!unzip /content/microsoftexcel.zip

@newkenwaff
Copy link
Author

Thank you so much it works now!

@mig144mfi
Copy link

@drdaos

The same phenomenon seems to be happening again due to the collaborative update.
Can I get a new state?

ERROR: pip's dependency resolver does not currently take into account all packages that are installed. This behavior is causing the following dependency conflicts
fastai 2.7.16 requires torchvision>=0.11 but is not installed.
torchtext 0.18.0 requires torch>=2.3.0, but torch 2.1.0+cu118 is installed and incompatible.

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

3 participants