(OUTDATED) How to install XFormers and run Stable Diffusion 1.5x faster on 4GB RAM
XFormers is a library by facebook research which increases the efficiency of the attention function, which is used in many modern machine learning models, including Stable Diffusion. First we look at why the XFormers is so effective, then we actually install XFormers locally to achieve a 1.5x speed boost.
Discord: https://discord.gg/s8rVscu2pM
Profiling Outcomes: https://docs.google.com/spreadsheets/d/1uknU0S0czTj2NqgI0qPEWSENhoh4oTiaseBrh6AMzBI/edit?usp=sharing
00:00 - Summary
00:45 - XFormer Explanation
09:32 - Initial Benchmark
11:16 - Install Webui
14:17 - Install Python
16:42 - Install CUDA
18:26 - Verify Webui Installation
22:22 - Install Visual Studio
23:48 - Install XFormers
32:10 - Results
-------- Links --------
Article I stole (B I G thanks to Matthieu Toulemont): https://www.photoroom.com/tech/stable-diffusion-100-percent-faster-with-memory-efficient-attention/
Github Guide: https://github.com/AUTOMATIC1111/stable-diffusion-webui/wiki/Xformers
Reddit Guide: https://www.reddit.com/r/StableDiffusion/comments/xz26lq/automatic1111_xformers_cross_attention_with_on/
Rentry guide: https://rentry.org/sdg_faq#xformers-increase-your-its-more-cards-supported
Xformers Github: https://github.com/facebookresearch/xformers
Webui repo: https://github.com/AUTOMATIC1111/stable-diffusion-webui
Download Visual Studio Installer: https://visualstudio.microsoft.com/downloads/
Download CUDA 11.3: https://developer.nvidia.com/cuda-11.3.0-download-archive
Download Python 3.10: https://www.python.org/downloads/release/python-3100/
Git for Windows: https://git-scm.com/downloads
-------- Music --------
This Video: https://www.youtube.com/watch?v=5mgYnwhM4eg&ab_channel=RelaxMusicMeditation
-------- Thumbnail --------
Images from (many thanks): https://twitter.com/StuffyAi/status/1579542236597215232
#stablediffusion #aiart #xformers #tutorials #techtutorials
Видео (OUTDATED) How to install XFormers and run Stable Diffusion 1.5x faster on 4GB RAM автора React Энциклопедия
Видео (OUTDATED) How to install XFormers and run Stable Diffusion 1.5x faster on 4GB RAM автора React Энциклопедия
Информация
28 ноября 2023 г. 10:16:10
00:33:28
Похожие видео