Closed laksjdjf closed 1 year ago
Are there any extra dependencies required for this change?
Are there any extra dependencies required for this change?
it needs to install xformers library. https://github.com/facebookresearch/xformers
I did below in Paperspace gradient. it takes an hour.
git clone https://github.com/facebookresearch/xformers.git
cd xformers
git submodule update --init --recursive
pip install -r requirements.txt
python setup.py bdist_wheel
pip install dist/xformers-0.0.14.dev0-cp39-cp39-linux_x86_64.whl
memory_efficient_attention is a new feature in diffusers 0.7 https://github.com/huggingface/diffusers/releases/tag/v0.7.0
OK looks good, thanks!
apply xformers to reduce VRAM usage and improve performance.
GPU=A6000×1, batch size=2, resolution=768, step=1310![W B Chart 2022_11_9 10_23_51](https://user-images.githubusercontent.com/22386664/200715383-c8a5444b-e705-4cf8-a05b-d8596099f794.png)