-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Enable xformers by default #1343
Comments
@chinoll good idea 🤩 I am doing like this with colab maybe helps !pip install -qq https://github.com/camenduru/stable-diffusion-webui-colab/releases/download/0.0.14/xformers-0.0.14.dev0-cp37-cp37m-linux_x86_64.whl
!git clone https://github.com/huggingface/diffusers.git
!sed -i -e 's/if self._use_memory_efficient_attention_xformers:/if True:/g' /content/diffusers/src/diffusers/models/attention.py
!pip install -qq /content/diffusers |
I'm actually not opposed to enabling it by default in case it is correctly installed. So ok for me to maybe wrap |
Good idea, will open a for this soon :) |
Fixed in #1354 |
what is the safe way to know if its enabled from code? |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Is your feature request related to a problem? Please describe.
Diffusers are too slow to train in the default case.
Describe the solution you'd like
If xformers is installed in the environment, xformers is enabled by default.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: